The shelf price lies to you in a very specific way: it makes the big bag look like a bargain and the small bag look like a rip-off, when the truth is exactly the opposite about as often as you would expect. A unit price calculator strips away the packaging and answers the only question that matters at the grocery store: how much am I paying for each ounce, pound, liter, or item? Once you know that number, the best deal is obvious, and the marketing on the bag stops working on you.
The math itself is simple: unit price equals total price divided by quantity. A $8.99 bag holding 12 ounces of coffee costs about $0.75 per ounce, while a $17.49 bag of 32 ounces costs about $0.55 per ounce — the bigger bag really is cheaper here, by roughly 27 percent. But swap in a sale price, a premium brand, or a multipack with a hidden markup, and the ranking flips. That is why the small unit-price label printed on the shelf edge matters more than the big price tag, and why comparing two sizes of the same product beats guessing from the package alone.
Mixed units are where most shoppers give up, and where this calculator earns its keep. One pound is 16 ounces, one kilogram is 1,000 grams or about 35.27 ounces, one liter is about 33.81 fluid ounces, and a US gallon is 128 fluid ounces. Enter each product in whatever unit its label uses — ounces, pounds, grams, kilograms, fluid ounces, milliliters, liters, or a simple count — and every option is converted to a common base before it is ranked. Weight, volume, and count are kept separate, because comparing a price per ounce with a price per item would be meaningless.
How to use the Unit Price Calculator
- Pick what you are comparing — weight, volume, or count — so every option converts to the same base unit.
- Enter each product's price, quantity, and unit exactly as printed on the label. Leave any row blank to ignore it.
- Click Compare prices to see each option's unit price, price per 100 units, and how much more it costs than the cheapest option.
- Pick the best value you will actually use — a bulk deal is only a deal if the food gets eaten before it expires.
Smart unit-price habits
- Compare like with like: the same product across sizes, or store brand against name brand — not different products.
- Check the shelf-edge unit price when you shop, but verify it: stores occasionally mislabel it, and sale tags can hide it.
- For count items, count what you actually use: a 24-pack of paper towel rolls is only cheaper if each roll lasts as long.
- Note the lowest unit price you have seen for staples like coffee, rice, and detergent, so you recognize a genuine sale.
When the cheapest unit price is the wrong choice
Unit price is the right tiebreaker, not the whole decision. A 5-pound bag of coffee that goes stale before you finish it costs more per cup than the smaller bag you actually drink. Perishables, pantry space, and cash flow all matter: tying up $40 in bulk toilet paper is fine, but tying up $40 in bulk berries that spoil in a week is not. Use this calculator to find the cheapest option, then buy the cheapest option you will genuinely finish. If you need other everyday money math, try the Discount Calculator or the Tip Calculator — both live in the Everyday and Finance sections.
Frequently asked questions
How do you calculate unit price?
Divide the total price by the quantity: a $8.99 bag of 12 ounces of coffee costs $8.99 divided by 12, or about $0.75 per ounce. This calculator does the division for up to four products at once and ranks them from cheapest to most expensive per unit.
Is the biggest size always the best value?
Usually, but not always. Bulk sizes normally have a lower unit price, yet sale prices, premium brands, and multipack markups can flip the ranking. Compare the unit price, not the package size, and check whether you will actually use the whole amount before it expires.
How do I compare ounces to pounds or grams to kilograms?
Convert everything to one unit first: 1 pound equals 16 ounces, 1 kilogram equals 1,000 grams or about 35.27 ounces, and 1 liter equals about 33.81 fluid ounces. This calculator converts weight, volume, and count automatically, so mixed units compare fairly.
What is a good unit price for groceries?
There is no single good number, because it depends on the product and your store. The useful habit is comparing like with like: the same brand and product across sizes, or store brand versus name brand, and tracking the lowest unit price you have seen so you recognize a genuine deal.
All calculations are for personal budgeting use. Prices and package sizes should be checked against the label in store.