Unit Price Calculator

Compare 2, 3, or 4 grocery items side by side.

Everyday 2-4 items Mixed units
Rate this calculator · 5.0 (1)

Compare unit prices

Price per oz, lb, gallon, or liter · up to 4 items

Instructions — Unit Price Calculator

  1. Choose how many items you want to compare (2, 3, or 4).
  2. Enter the total price and quantity for each item.
  3. Pick the unit on the label: oz, lb, g, kg, fl oz, pt, qt, gal, ml, L, or each.
  4. The calculator returns the price per unit as printed (for example $0.42 per oz) and the price per pound or per gallon, then highlights the lowest-cost item.

Formulas

Basic unit price: price ÷ quantity = unit price

Cross-unit comparison: convert each item to a common base — grams for weight, millilitres for volume, each for count — then divide price by base quantity.

Percentage cheaper: ((alternative unit price - best unit price) ÷ best unit price) × 100.

Reference

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 sales threshold. Compare unit prices in identical units (price per pound or per liter) for the cleanest read. Store brands typically run 10-40% cheaper per unit than name brands, though promotional prices on name brands can flip that.

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 math
unit price = price ÷ quantity
price per lb = (price ÷ oz) × 16
price per kg = (price ÷ g) × 1,000
price per gal = (price ÷ fl oz) × 128
price per L = (price ÷ ml) × 1,000

Unit 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.

Did you know

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.

Tiered pricing surprises

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.

Cereal box, 2015
18 oz / $3.99
$0.2217/oz
Cereal box, 2024
14 oz / $4.49
$0.3207/oz (+45%)

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.

Tip

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%.

FAQ

Unit price is the total cost of a product divided by the quantity it contains, expressed per standard measurement: per ounce, per pound, per liter, per gallon, or per item. It lets shoppers compare two packages of different sizes head to head.
Divide the total price by the weight in pounds. A 12-oz jar at $4.99 weighs 0.75 lb, so price per pound is 4.99 ÷ 0.75 = $6.65/lb. The calculator does this for you and converts ounces, grams, and kilograms to a common base.
Not always. Studies of retail shelf data show 15-25% of large packages cost more per unit than the smaller size, sometimes because the smaller size is on promotion. Always check the per-unit number on the shelf tag or run the math.
Convert both to the same base. 1 oz = 28.3495 g, 1 lb = 453.592 g. The calculator handles this automatically: it normalizes weight items to grams and volume items to millilitres before computing price per pound or per gallon.
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 and Federal Reserve data show shrinkflation lifted effective grocery prices roughly 5-10% across several staple categories in recent years.
Tags sometimes round to two decimals or use a different base unit (per 100 g instead of per kg, for example). This calculator shows four decimals so small differences between items are easy to see.
Yes, within the same group: weight items can be compared regardless of whether they are in ounces, pounds, grams, or kilograms; volume items the same way. Comparing weight to volume requires knowing the density of the product.