Article — Unit Price Calculator
Unit Price Calculator: Find the Best Deal Across Grocery Sizes
A unit price calculator divides total price by quantity to show cost per ounce, pound, gallon, liter, gram, or each. A 12-oz jar of peanut butter at $4.99 costs $0.4158 per oz, which is $6.65 per pound — the apples-to-apples figure used to compare it to a 40-oz tub at $7.99 ($0.1998/oz, $3.20/lb).
The math is one line. The work is in keeping units straight and remembering that shelf tags sometimes lie by rounding. This calculator handles up to four items at once, accepts eleven different units, and flags the best deal automatically.
What unit price means
Unit price is the total cost of a product divided by the quantity it contains, expressed in a standard measurement. The standard varies by category: per ounce or per pound for solid food, per fluid ounce or per gallon for liquids, per gram or per kilogram in metric markets, per 100 ml on European cosmetics, and per each for items sold individually.
Unit price strips away packaging tricks. A 36-pack of paper towels at $24.99 looks cheaper than two 18-packs at $11.99 each ($23.98). Per roll, the 36-pack is $0.694 and the 18-pack is $0.666. The smaller pack wins by 4%, even though it costs less in absolute terms only on the second-pack purchase. Without the per-unit math, the comparison is impossible to do in your head.
How to calculate unit price
The formula is total price divided by quantity. For mixed-unit comparisons, convert both items to a common base before dividing. The calculator normalises weight items to grams, volume items to millilitres, and count items as “each” before comparing.
unit price = price ÷ quantityprice per lb = (price ÷ oz) × 16price per kg = (price ÷ g) × 1,000price per gal = (price ÷ fl oz) × 128price per L = (price ÷ ml) × 1,000Unit price on shelf tags
FTC guidance under the Fair Packaging and Labeling Act recommends shelf labels show a per-unit price for most packaged goods, and many states require it for retailers above a defined annual sales threshold. California, New York, Massachusetts, Connecticut, Rhode Island, and Vermont all have unit pricing rules on the books, with retailer-size cutoffs ranging from $1 million to $2 million in annual sales.
The format on the tag should show the unit price next to the package price, with the unit explicit (per oz, per lb, per 100 ml). Tags rounded to two decimals can hide differences smaller than half a cent, which on a frequently bought item adds up over a year. The calculator on this page reports four decimals so close calls actually resolve.
The first US unit-pricing law passed in Massachusetts in 1971. By 1975 unit-price tags had spread to most chain supermarkets in the Northeast. The federal recommendation came later, in a 1976 update to the FPLA, and remains advisory rather than mandatory at the national level.
Comparing mixed units
Three groups handle most grocery comparisons: weight, volume, and count. The calculator lets you mix units within a group freely. A 1-kg bag of rice can be compared directly to a 2-lb bag because both are weight items — the math normalises them to grams before deciding which one is cheaper per pound.
Cross-group comparisons (weight vs. volume) need product density to convert. A bottle of olive oil is sold by volume (fl oz or ml), but is sometimes packaged in weight units in bulk grocery. The conversion factor depends on density: olive oil is about 0.92 g/ml, so 100 ml = 92 g. The calculator does not assume density, so weight items and volume items are listed separately when both appear.
When bulk beats the unit price
Bulk usually wins on unit price — warehouse clubs (Costco, Sam’s Club, BJ’s) typically run 10-30% below supermarket per-unit prices on shelf-stable goods. The exception is promotional pricing on the standard size, which can flip the comparison. A 12-oz coffee on sale at 25% off ($7.49) at $0.624 per oz beats the same brand’s 24-oz size at regular price ($14.99) at $0.625 per oz by a thread.
Perishables flip the math the other direction. A 1-pound block of cheese at $5.99 ($5.99/lb) might look worse than a 3-pound block at $14.99 ($5.00/lb), but if half the larger block goes mouldy before you eat it, the effective unit price is $10 per usable pound. The calculator does not account for waste — that part is up to you.
Retail shelf studies have repeatedly found that on 15-25% of products, the larger pack actually has a higher unit price than the smaller pack. Reasons range from promotional cycles on the small size, premium packaging on the large size, and old stock priced to clear. Always check the per-unit math even when the package screams “value size”.
Shrinkflation and unit price history
Shrinkflation is when a manufacturer reduces package size while keeping the sticker price the same or close to it, raising the per-unit price without obviously raising the shelf price. BLS Consumer Price Index data has tracked package-size effects since 2015 in several CPI components, including ice cream, paper goods, and cereal.
Recent BLS analysis shows shrinkflation lifted effective grocery prices roughly 5-10% across several staple categories during the 2021-2023 inflation period, on top of headline inflation. The Federal Reserve’s research notes that consumers are slower to detect shrinkflation than overt price hikes, which is one reason package downsizing has become a routine response to input-cost pressure.
Unit price by category
Unit-price norms vary by category. USDA Economic Research Service data tracks retail food prices and helps anchor what “normal” looks like:
- White rice = $0.80-$1.30/lb depending on brand and region
- Whole milk = $0.55-$0.85 per quart, $2.20-$3.40 per gallon
- Eggs = $1.80-$3.50 per dozen, with notable spikes during avian flu outbreaks
- Ground beef = $4.50-$6.50/lb for 80/20
- All-purpose flour = $0.40-$0.65/lb in 5-lb bags
- Toilet paper = $0.40-$0.80 per equivalent roll (a moving target as roll sizes shrink)
Unit price mistakes to avoid
Three mistakes recur in shelf-tag comparisons. The first is rounding too aggressively — treating $0.42/oz and $0.43/oz as identical when on a weekly purchase the gap is real money over a year. The second is comparing different bases without converting; a tag at “per 100 ml” is not directly comparable to one at “per oz”. The third is ignoring the promotional cycle; supermarket loss leaders rotate through a roughly 4-6 week period on staples, and timing a stock-up purchase to the bottom of the cycle beats almost any bulk discount.
Pick five staples you buy every week and write down their baseline unit price the next time they are on sale. That gives you a reference point. Anything within 5% of the baseline is “buy”; anything more than 15% above is “wait”. Across a year this single habit cuts grocery spend on staples by roughly 10-15%.