Skip to content
AZ Tools

Unit Price Comparator

Compare grocery and shopping items by price-per-unit (price per gram, mL, or piece). Mass, volume, and count groups with imperial and metric units.

RankNamePriceQuantityUnitPrice /gvs best
29.980e-3+47.9%
★6.750e-3★ best
30.01318+95.3%

Price-per-unit is normalized to /g (mass), /mL (volume), or /piece (count). Cheapest = best deal.

How to use

  1. Pick a unit group: mass for foods sold by weight, volume for liquids, count for individual items.
  2. Add a row for each product: name, price, quantity, and the unit it's sold in.
  3. Rows are ranked by price-per-base-unit. The cheapest gets a star; others show their markup.

About this tool

Show

The 500 g bag at 4.99 or the 2 kg sack at 13.50 — which is actually cheaper? Enter each item's price, quantity and unit, and everything is normalised to a common base (grams, millilitres or pieces) and ranked. The cheapest is starred and every other line shows how much more it costs per unit, as a percentage, so a difference that looks like small change on the shelf becomes a number you can act on.

Mass, volume and count are handled as separate groups because they cannot be compared to each other. A litre of oil and a kilogram of flour are both "one unit" and the comparison means nothing; the tool will not let you mix them, which is a feature rather than a missing one. Within volume, the US units are the US ones: a US fluid ounce is 29.57 ml and an imperial fluid ounce is 28.41, about four percent smaller, so a recipe or a bottle labelled in British fluid ounces is not the same measure. The cup is worse — the US customary cup used here is 236.6 ml while the US legal cup on nutrition labels is 240, a gap of one and a half percent hiding under the same word.

What the arithmetic cannot see is what is in the package. Drained weight and net weight are different numbers on a tin of beans, and comparing the larger figure on one brand against the smaller on another produces a confident wrong answer. Concentrates, dilutable syrups and anything sold by dry weight that you then hydrate all need the comparison done after preparation, not on the label. And the honest limit of unit pricing in general: the cheaper unit price is only cheaper if you use the whole thing. Bulk packs that spoil, go stale or sit unused are more expensive per unit consumed than the small pack you finish, and no calculator can weigh that for you.

Everything runs in the browser, which makes it usable standing in an aisle with no signal. Many countries now require unit prices on shelf labels — the EU and the UK among them — so this is often a cross-check on a number already printed rather than one nobody has computed.

Frequently asked questions

Why does the unit matter?

You can't compare $4.99 for 500g directly to $13.50 for 2kg. Normalizing to price-per-gram lets you compare apples to apples: 500g→$0.00998/g vs 2kg→$0.00675/g. The bulk wins by 32%.

Are US or metric units used?

Both, within their group. For volume the imperial units are explicitly US (US fl oz ≠ UK fl oz). For mass, oz/lb are international avoirdupois. If you need a specific country's gallon or pint, do the conversion first.

Does it save my shopping list?

Yes — the rows are saved to your browser's localStorage, so reopening the page restores them. Nothing is sent anywhere.

Is the lowest unit price always the better buy?

Only if you will use all of it. A larger pack wins on paper and loses in practice when the surplus is thrown away, needs storage you do not have, or ties up money you would rather keep. Unit price answers one question — what a gram or a millilitre costs — and the honest comparison is unit price against the amount you will actually consume before it spoils.

Why does the shelf label sometimes disagree with this?

Because the two may be measuring different things. A label can quote per-litre for a concentrate that gets diluted, per-item where the items differ in size, or drained weight for something sold in liquid — and net weight including packaging is a different number again. When a comparison matters, read which basis the shelf used before assuming one of you is wrong.

Related tools