How to Calculate Unit Price (and Actually Spot the Cheaper Pack)
Unit price is what one item costs per standard measure, like per ounce, per gram, per liter, or per sheet, instead of per package. You get it by dividing the total price by the total quantity. It’s the only number that lets you compare a 12 oz bag against a 5 lb bag honestly, because it strips away the package size and leaves you with a single, comparable rate.
The formula
Unit price = Price ÷ Quantity
Price is what’s on the tag. Quantity is the amount in the package, expressed in a consistent unit (ounces, grams, liters, sheets, whatever the product is sold in). The result is a rate: dollars per ounce, cents per gram, price per liter. Once every package is converted to the same rate, comparing them is just comparing three plain numbers, no mental math about “well this one’s bigger but costs more” required.
Worked example: three bags of coffee
Say you’re standing in the coffee aisle looking at the same beans sold in three sizes.
| Package | Price | Quantity | Price per ounce | vs. the best deal |
|---|---|---|---|---|
| Small bag | $8.99 | 12 oz | $0.749/oz | 39.4% more |
| Medium bag | $19.99 | 32 oz | $0.625/oz | 16.2% more |
| Bulk bag | $42.99 | 80 oz (5 lb) | $0.537/oz | Best value |
Here’s the math behind each row:
- Small bag: 8.99 ÷ 12 = $0.749 per ounce
- Medium bag: 19.99 ÷ 32 = $0.625 per ounce
- Bulk bag: 42.99 ÷ 80 = $0.537 per ounce
The bulk bag has the lowest cost per ounce, so it’s the reference point. To find how much worse the other two are, divide their unit price by the bulk bag’s unit price and subtract 1: 0.749 / 0.537 = 1.394, meaning the small bag costs 39.4% more per ounce than the bulk bag. Run the same division for the medium bag (0.625 / 0.537 = 1.162) and it comes out 16.2% more expensive per ounce.
The medium bag looks like a safe middle choice, but it’s actually the weakest step of the three: you pay almost 2.7x the price of the small bag for only 2.67x the coffee. The bulk bag is the only size that rewards you for buying more, and you only see that once you run the division. On the shelf, the medium bag’s own per-unit sticker usually just says “cheaper than small,” which is true and still incomplete.
Converting units before you compare
The coffee example above was easy because every bag listed its weight in ounces. Real shelves aren’t that considerate. Say you’re picking between two bottles of the same laundry detergent: Brand A is 50 fl oz for $6.99, Brand B is 1.5 L for $8.49. You can’t divide price by quantity yet, because fluid ounces and liters aren’t the same unit.
Convert one to match the other first. One liter is 33.814 fl oz, so Brand B’s 1.5 L bottle holds 50.72 fl oz, almost the same volume as Brand A. Now the division is fair:
- Brand A: 6.99 ÷ 50 = $0.140 per fl oz
- Brand B: 8.49 ÷ 50.72 = $0.167 per fl oz
Brand B costs about 19.7% more per fluid ounce than Brand A, and in this case its sticker price is the higher one too. The trap gets worse when the cheaper-looking sticker sits on the smaller or differently-measured bottle. In that case the total price alone points you the wrong way, and only the converted unit price catches it.
Where unit price matters most
Coffee and detergent are easy to picture, but the same math pays off anywhere a product is sold in more than one size or measurement system:
- Paper towels and toilet paper, priced per sheet or per 100 sheets, since roll count alone ignores how many sheets are actually on each roll
- Diapers, priced per diaper rather than per box. Box sizes jump around by brand and age range, so “box price” tells you almost nothing
- Laundry pods and dishwasher tabs, priced per load: pod count varies by brand, and some loads need two anyway
- Pet food, priced per pound, where a “value” bag can cost more per pound than the mid-size one
- Skincare and cosmetics, priced per ml or oz. Luxury packaging inflates the sticker price without changing the fill volume by much
In every one of these, the total price on the shelf tag is close to useless on its own. The unit price is the number that actually answers “which one is cheaper.”
Try it with your own numbers
Enter the price and quantity for two or more packages below and the calculator does the division for you, including the best-value badge and the percentage gap.
The lowest price per unit is the best deal.
Calculated in your browser, never sent to a server.
Common mistakes
Comparing different base units without converting first. If one label shows price per ounce and another shows price per pound, or one shows price per milliliter and another price per liter, you can’t line the numbers up directly. Convert both to the same unit before comparing, or the smaller-looking number might actually be the worse deal.
Assuming the bigger package is always cheaper per unit. It usually is, but not always. Limited-time promotions, private-label pricing, and multi-buy deals on smaller sizes regularly beat the large economy pack. The worked example above shows a case where it holds, but always check the math rather than the size on the front of the box.
Trusting the shelf tag’s unit price blindly. Store shelf tags calculate unit price automatically, but they sometimes round to a base unit that makes cross-brand comparison awkward, one product tagged per 100g and the next per kg on the same shelf, for instance. Read the fine print on the tag, not just the big number.
Buying bulk you won’t use in time. A lower price per ounce only saves you money if you actually use the whole package before it spoils or expires. A 5 lb bag of coffee beans that goes stale before you finish it erases the discount entirely, and for perishables like produce, dairy, or spices, the “best value” on paper can turn into wasted money and a wasted product.
Frequently asked questions
What’s the difference between unit price and total price? Total price is what you pay at checkout for the whole package. Unit price is that total divided by the quantity inside, so it tells you the rate you’re paying per ounce, gram, or liter rather than the one-time amount on the receipt.
Why do stores show unit price on shelf tags? Many regions require it by law, so shoppers can compare package sizes and brands on equal footing without doing the division themselves. It’s meant to stop package-size tricks, like a “family size” that actually costs more per unit than the regular size.
How do I compare products with different units, like ounces and grams? Convert one to match the other before comparing (there are 28.35 grams per ounce), then apply the unit price formula to both using that shared unit. Comparing $0.75 per ounce against $0.03 per gram directly, without converting, will give you a meaningless result.
Does the lowest unit price always mean the best purchase? Not automatically. It means the lowest cost per unit of the product, but you should also weigh whether you’ll use the full quantity before it expires, whether you have room to store it, and whether the smaller pack is a better fit if you only need it once.