Skip to content
K Knidox Search…
Finance · Shopping

Cost Per Unit Calculator

Work out the price per gram, millilitre, or item and see which pack is actually the better deal.

Product A
g
Amount in the pack.
Product B
g
Amount in the pack.
The unit both prices share, e.g. g, ml, oz, or item.
Try a comparison
Unit price
Product A
$0.007000/ g
Product BBetter value
$0.006667/ g

Product B is the better value — about 4.8% cheaper per g.

Unit price — lower is better

Cost per unit is price ÷ quantity. A $3.50 bag holding 500 g costs $3.50 ÷ 500 = $0.0070 per gram; a $5.00 bag of 750 g costs $5.00 ÷ 750 ≈ $0.0067 per gram. The bigger bag wins — it’s about 4.8% cheaper per gram despite the higher sticker price.

What cost per unit means

The unit price is what one gram, millilitre, ounce, or single item actually costs you. Shelf tags show the total pack price, which makes packs of different sizes hard to compare at a glance. Dividing the price by the quantity strips out the pack size so you compare like with like — the only fair way to tell which option gives you more for your money.

unit price = price ÷ quantity

Divide the pack price by how many units it contains; the option with the lower unit price is the better value.

Worked example

Two bags of the same rice: Product A is $3.50 for 500 g, Product B is $5.00 for 750 g.

  1. 1
    Put both prices in the same units. Both bags are measured in grams, so no conversion is needed here.
  2. 2
    Find the unit price of Product A. $3.50 ÷ 500 g = $0.0070 per gram.
  3. 3
    Find the unit price of Product B. $5.00 ÷ 750 g ≈ $0.0067 per gram.
  4. 4
    Compare the two unit prices. $0.0067 is lower than $0.0070, so Product B costs less per gram.
  5. 5
    Work out how much cheaper. ($0.0070 − $0.0067) ÷ $0.0070 × 100 ≈ 4.8%, so B is about 4.8% cheaper per gram.

Unit-price tips that catch people out

Small habits that stop the shelf tag from fooling you.

TipWhy it matters
Convert to the same unit firstA $2 / 500 g pack and a $2 / 1 kg pack look level until you notice one is grams and one is kilograms — always match units before dividing.
Watch shrinking pack sizesA cheaper sticker often hides a smaller pack; the unit price exposes the real cost when a 1 L bottle quietly becomes 900 ml.
Compare per use, not per packFor detergent or capsules, divide by loads or doses rather than weight — that is the unit you actually spend.
Round to the same decimalsUnit prices are tiny, so compare them at the same number of decimal places to avoid misreading $0.007 as cheaper than $0.0067.
Use the store’s own unit priceShelf tags list a unit price, but sometimes in different units per brand; recompute when they don’t match.

Bigger packs are not always cheaper

Buying in bulk usually lowers the unit price, but not always. Promotions on small packs, multi-buy deals, and premium “family size” pricing can flip the maths, so the large box occasionally costs more per unit than the small one. The unit price is the only reliable check. And a lower unit price is only a saving if you’ll use it all — a giant pack that expires or goes stale before you finish it is more expensive than the small one you actually consume.

How do I compare products sold in different units?
Convert both to the same unit before dividing. If one pack is in grams and another in kilograms, turn the kilograms into grams (× 1000) first; for ounces versus grams, convert one side so both prices are per gram or both per ounce. Only then does price ÷ quantity give a fair comparison.
Is the bigger size always cheaper per unit?
No. Bulk usually lowers the unit price, but sales on small packs, multi-buys, and premium family-size pricing can make the large pack cost more per unit. Always divide price by quantity and compare — do not assume the big box wins.
How do I read the percent difference?
The tool takes the higher unit price minus the lower one, divides by the higher, and multiplies by 100. So if A is $0.0070/g and B is $0.0067/g, B is about 4.8% cheaper per gram — you pay roughly 4.8% less for the same amount.
What quantity should I enter for detergent or capsules?
Enter the number of loads, doses, or pieces rather than the weight, and set the unit label to “loads” or “doses”. That gives the cost per use, which is what you actually spend, and avoids being misled by heavier but weaker formulas.
Why are the unit prices such small numbers?
Because you are dividing a few dollars by hundreds of grams or millilitres, the price per single unit is often a fraction of a cent. That is normal — compare the figures at the same number of decimal places so a tiny difference is not overlooked.
Can I compare just one product on its own?
Yes. Turn off “Compare a second product” and the tool simply reports Product A’s unit price. That is handy for checking a single item against a shelf tag or a price you remember from another store.