Pack prices are designed to be incomparable. One bag of rice is $4.50 for 500 g, the next is $7.00 for a kilo, a third is priced in ounces — and the biggest number on the shelf, the pack price, is precisely the one that tells you nothing about value. The figure that does is the unit price: what a fixed, standard amount of the product costs. Divide out the pack sizes and the marketing falls away — $0.90 per 100 g against $0.70 per 100 g is a comparison anyone can make in a second. This calculator does the dividing and the unit conversion for up to four products at once, by weight, volume or count, and highlights the winner.
How unit price is calculated
The formula is a single division, with a unit conversion in front of it when the packs disagree:
Unit price = price ÷ quantity (quantity first converted to a common unit)
All quantities are converted into one base unit — grams for weight, millilitres for volume, items for count — using exact factors: 1 kg = 1,000 g, 1 oz = 28.3495 g, 1 lb = 453.592 g, 1 litre = 1,000 mL, 1 US gallon = 3,785.41 mL. The price is then divided by the quantity and scaled to a readable amount: per 100 g for weight, per 100 mL for volume, per single item for count. Scaling changes nothing about the ranking — it simply turns $0.009 per gram into $0.90 per 100 g, a number human beings can compare while standing in a shop. The lowest unit price wins, and the summary under the table tells you how much cheaper per unit it is than the most expensive option you entered.
Worked example
Compare the two rice bags pre-filled above. Product A: $4.50 for 500 g → 4.50 ÷ 500 × 100 = $0.90 per 100 g. Product B: $7.00 for 1 kg → 7.00 ÷ 1,000 × 100 = $0.70 per 100 g. B's pack costs $2.50 more at the till, yet gram for gram it is about 22% cheaper — buying A to "save money" means paying $0.90 for what B sells at $0.70. The third row shows why conversion matters: Product C at $3.25 for 12 oz looks like the cheapest pack of the three, but 12 oz is only 340 g, so its unit price is $0.96 per 100 g — the most expensive of the three. Pack price ranks them C, A, B; unit price ranks them B, A, C. Only one of those rankings is true.
Where unit prices help — and where they stop
Many supermarkets print a unit price on the shelf edge, and it is worth using — with two checks. First, confirm the basis is the same across the shelf: one brand per 100 g and another per kg is legal in some places and quietly breaks the comparison. Second, remember the calculation assumes the packs are otherwise equal. Unit price cannot see quality, and it cannot see waste: the 5 kg bargain is not a bargain if a third of it expires, and for things like coffee, cheese or olive oil, the better-tasting option at a slightly higher unit price is often the rational buy. Use the unit price to eliminate the options that are simply overpriced for what they are — which, in a typical aisle, is most of the decision — then choose among the survivors on quality. Run that habit across a weekly shop and it is worth real money: the same basket, bought by unit price instead of pack price, routinely costs 10–20% less.
Frequently asked questions
What is a unit price?
A unit price is the cost of a standard amount of a product — per 100 grams, per litre, per item — rather than the price of the whole pack. It is the only fair way to compare packs of different sizes: the pack with the lower unit price gives you more product for your money.
How is unit price calculated?
Divide the price by the quantity, after converting the quantity into a common unit. A $4.50 pack of 500 g costs 4.50 ÷ 500 = $0.009 per gram, which is $0.90 per 100 g. This calculator does the conversion and the scaling for you.
Why compare per 100 g instead of per gram?
Because per-gram prices are tiny fractions like $0.009, which are hard to read and compare at a glance. Per 100 g (or per 100 mL for liquids) gives friendly numbers like $0.90 versus $0.70 — the same comparison supermarkets print on shelf labels.
Can I compare a pack priced in ounces with one in grams?
Yes — that is exactly what this calculator is for. Enter each pack with its own unit (ounces, pounds, grams, kilos, millilitres, litres) and everything is converted to the same base before comparing: 1 oz = 28.3495 g and 1 lb = 453.592 g.
Is a lower or higher unit price better?
Lower. The unit price is what each standard amount costs you, so the lowest figure is the best value — that product is highlighted here. Just remember to compare like with like: similar quality, and a pack size you will actually use before it expires.
Can I compare a solid with a liquid, or items with weights?
Not meaningfully. A price per 100 g and a price per 100 mL measure different things, and a per-item price only compares with other per-item prices. That is why this calculator has separate weight, volume and count modes — compare within the mode that matches all your products.
Is the biggest pack always the best value?
Usually, but not always — promotions on smaller packs regularly beat the bulk price per unit, which is the whole reason to check. And a giant pack is only cheaper if you use it all: food that expires and goes in the bin had an effective unit price of infinity.
What does the unit price on a supermarket shelf label mean?
It is this same calculation, printed small under the main price — per 100 g, per kg or per litre depending on the product and country. It is worth checking: the basis sometimes changes between brands on the same shelf, and packs occasionally show a unit price that does not match their actual size.
Is this unit price calculator free and private?
Yes. It is free with no sign-up, and the calculation runs entirely in your browser — the prices you enter never leave your device.