Unit price calculator

Compare the price per unit of two to four items and see which is cheapest.

How it works

  1. Choose how many items to compare and type a unit label such as g or ml
  2. Type each item's price and quantity, and the number of packs if more than one
  3. Read the price per unit and which item is cheapest

How the price per unit is worked out

For each item the unit price is the price ÷ (quantity × packs). Quantity is the amount in one pack and packs is how many packs the price covers, with 1 as the default. A 6-pack of 330 ml cans for 4.50 is typed as price 4.50, quantity 330 and packs 6, which is 4.50 ÷ 1,980 = 0.002273 per ml. The page opens on a 400 g item at 2.40 (0.006 per g) against a 1,000 g item at 5.00 (0.005 per g). Choose 2, 3 or 4 items; only the boxes for those items are shown. Prices and quantities must be more than 0.

Cheapest, and by how much

The cheapest item is the one with the lowest price per unit; if two or more match to within a tiny margin, all are named, and if every item matches the result says All the same. The table shows each item compared with the cheapest as a percentage: in the opening example A costs 20% more per unit than B, since 0.006 ÷ 0.005 = 1.2. The Cheapest vs dearest tile shows the other direction, how much less the cheapest costs than the most expensive, which is 16.67% here. The two numbers differ because they divide by different prices.

The unit label and conversions

The unit is free text, up to 12 characters, and is shared by every item. It is only a label for the headings. The page does not convert between units, so type all quantities in the same unit: 1 kg as 1,000 if the others are in grams. Mixing grams and kilograms in the boxes gives a wrong comparison. Unit prices are shown with at least 2 and up to 6 decimals because per-gram or per-millilitre prices are small.

What it does not compare

Only the price per unit is compared. Quality, brand, freshness, shelf life, discounts that apply at a certain quantity, loyalty prices and the chance of wasting part of a large pack are not part of the calculation. Prices are used as typed, with no tax added. Amounts have no currency symbol. This is an estimate, not financial advice.

Frequently asked questions

How do I compare a multipack with a single item?

Type the multipack price, the size of one pack as quantity and the number of packs. A 6-pack of 330 ml cans at 4.50 is quantity 330 and packs 6, so 4.50 ÷ 1,980 = 0.002273 per ml.

How do I work out the price per 100 g?

Multiply the unit price by 100. With 2.40 for 400 g the price per g is 0.006, so 0.60 per 100 g. Or count in hundreds: type 4 as the quantity for 400 g, set the unit label to 100g, and the price per unit is the price per 100 g.

Can I compare items in different units?

Not directly. The page does no conversion. Type every quantity in one unit, for example grams for all items, and use 1,000 for a kilogram.

What does the percentage next to each item mean?

How much more that item costs per unit than the cheapest. With 0.006 against 0.005 per g, the first item is 20% dearer. The Cheapest vs dearest tile says the cheapest costs 16.67% less.

Why is the unit price shown with so many decimals?

Per-gram and per-millilitre prices are small, such as 0.002273, and rounding to 2 decimals would make different items look equal. Up to 6 decimals are shown.