Unit Price Comparison, Explained
After reading this you can look at two packages of different sizes and prices and say, in a few seconds, which one actually costs less per gram, millilitre or piece.
What unit price is, with one hook
Two jars of the same coffee sit on the shelf. The small one costs 3.50 for 500 grams. The large one costs 5.90 for 1000 grams. Which is cheaper?
The larger price tag makes the big jar look expensive, and the smaller number makes the little jar look thrifty. Neither instinct is reliable. The honest comparison is price divided by quantity: how much you pay for one unit of the thing.
The small jar costs 3.50 / 500 = 0.0070 per gram. The large jar costs 5.90 / 1000 = 0.0059 per gram. The large jar is cheaper by 0.0011 per gram, about 16 percent less. That gap is invisible on the price tags and obvious in the unit price.
When to use it, and when not
Unit price works whenever you can measure both packages in the same unit: grams, millilitres, pieces, sheets, washes, or servings. Rice, detergent, batteries, paper towels, medication tablets, and drinks all compare cleanly.
It stops being a fair comparison when the products differ in a way you actually care about. A 40 percent cocoa chocolate and an 85 percent cocoa chocolate have the same unit (grams) but are not the same product. Concentrated detergent that cleans twice as many loads at the same weight is cheaper per wash even if it looks the same per gram. In those cases pick the unit that matches the benefit: cost per wash, cost per serving, cost per active dose.
When package sizes use different units on the label (one in grams, one in ounces), convert both to a single unit before dividing. Comparing 0.0070 per gram against 0.20 per ounce tells you nothing until the units match.
The formula and why it works
The unit price is a rate. You divide the total price by the total quantity to get the price for exactly one unit.
Here u is the unit price, P is the price you pay at the register, and Q is the quantity in the package measured in your chosen unit. The units of u follow directly: if P is in currency and Q is in grams, then u is currency per gram.
To compare two options, compute u_A = P_A / Q_A and u_B = P_B / Q_B. The smaller number is the better value. The reason division works is that it cancels the effect of package size. A big package and a small package both collapse to the same yardstick: one unit.
It helps to see the saving as a percentage. If option B has the lower unit price, the fraction you save by buying B rather than A is:
s is the share of the per-unit cost you avoid by choosing B. Multiply by 100 for a percentage.
Worked example with the demo numbers
These are the tool's default values, so you can press Calculate and reproduce every figure.
- Option A:
3.50for500g. Unit price u_A = 3.50 / 500 = 0.0070 per gram. - Option B:
5.90for1000g. Unit price u_B = 5.90 / 1000 = 0.0059 per gram. - Compare:
0.0059 < 0.0070, so option B is cheaper per gram. - Saving per gram:
0.0070 - 0.0059 = 0.0011. - As a percentage: s = (0.0070 - 0.0059) / 0.0070 = 0.157, about 15.7 percent.
The numbers per gram look tiny. Scale them to a real purchase and the point sharpens. Buy 2000 grams of coffee over a month. At A's rate that costs 2000 \times 0.0070 = 14.00. At B's rate it costs 2000 \times 0.0059 = 11.80. You keep 2.20 every month for the same coffee.
Reading and interpreting the result
The tool names the cheaper option and shows both unit prices. Three things are worth checking before you trust it.
First, confirm the quantities are in the same unit. The tool divides whatever you type. If you enter 500 for grams in one box and 1 for litres in the other, the arithmetic is correct and the comparison is meaningless.
Second, look at the size of the gap. A difference of 15.7 percent, as above, is real money. A difference of 0.5 percent is within the noise of rounding, promotions, and your own time. Do not walk to another aisle to save half a percent.
Third, ask whether you will use the whole package. A larger package with a lower unit price is only cheaper if you finish it. Yogurt that spoils or bulk spice that goes stale before you use half of it can cost more per gram actually eaten than the small package you would have finished.
Shrinkflation hides here. A manufacturer holds the price at 3.50 and quietly cuts the package from 500 g to 440 g. The tag looks unchanged. The unit price rises from 0.0070 to 3.50 / 440 = 0.0080 per gram, an 11.4 percent increase. Unit price is where that increase becomes visible.
See the break-even for yourself
The interesting question is not "which is cheaper today" but "how much would the big package's price have to rise before the small one wins". Move the price and watch the winner flip.
Common mistakes
Comparing the wrong unit. Toilet paper priced per roll is a trap because rolls hold different sheet counts and sheet sizes. Compare per sheet, or better, per square metre.
Ignoring tax. If one price includes tax and the other does not, the comparison is off. If you need to add or strip tax first, the VAT / Sales Tax Calculator does that.
Forgetting the discount. A "3 for 2" offer changes the effective price you pay. Work out the real total first with the Discount Calculator, then feed that price into the unit-price division.
Trusting the shelf label blindly. Shelf unit-price labels are sometimes computed in the wrong unit, or not updated during a promotion. Doing the division yourself takes two seconds and catches those errors.
Chasing pennies. Unit price is a filter, not a full budget. A saving of 0.0011 per gram matters on a weekly staple and is irrelevant on a jar you buy once a year.
Related tools
Unit price answers "cheaper per unit right now". Other everyday-money questions build on it.
For goods you keep and use over time, cost per gram is less useful than Price Per Use, which spreads a purchase over its whole life. A recurring service has no per-gram figure at all: the Subscription Cost Calculator shows its true yearly cost. Small repeated purchases add up faster than intuition suggests, which the Cost of a Habit Calculator makes concrete. When you shop across borders, convert prices to one currency first with the Currency Converter so the unit prices are comparable.
Frequently asked questions
Is the bigger package always cheaper per unit?
No. It usually is, but not always. Retailers sometimes price a "family size" higher per unit to catch shoppers who assume bulk is cheaper. The demo shows the large jar winning by 15.7 percent, but you have to check each time. That is the whole point of dividing.
What unit should I use?
Use the unit that matches the benefit you buy. Grams or millilitres for most groceries, sheets for paper, washes for detergent, servings for anything you eat, and doses for medication. As long as both options use the same unit, the comparison is fair.
How do I handle two different units on the labels?
Convert both to a single unit first. If one label reads 500 g and the other reads 1.1 lb, turn the pound figure into grams (about 499 g) before dividing. Feeding mismatched units into the tool gives a mathematically correct but useless answer.
Does a lower unit price mean I should buy the big one?
Only if you will use all of it. A lower price per gram on a package you cannot finish before it spoils raises your cost per gram actually consumed. Match the package to how much you really use.
How big a gap is worth acting on?
There is no fixed threshold, but a useful rule is to act on differences above roughly 5 percent on items you buy often, and ignore differences under about 1 percent. In the worked example the gap was 15.7 percent, clearly worth it.
This is an educational estimate, not financial advice. Talk to a qualified adviser before making money decisions.