Home › Business & Money Math › Unit Price Calculator

Unit Price Calculator

Unit price is a package's total price divided by its quantity in one standard unit, such as ounces, pounds or items. Enter two prices and sizes in the same unit; the lower price per unit is the better buy. Example: $4.80 for 24 oz is $0.20 per ounce, while $5.76 for 32 oz is $0.18 per ounce.

Compare package deals fairly by reducing each to its price per unit.

How the Unit Price Calculator works

A unit price calculator divides the total price of a package by the quantity it contains to reveal the cost of a single, standardized unit such as one ounce, one pound, one liter, one square foot, or one count. The core formula is straightforward: Unit Price = Total Price / Quantity, often written as UP = P / Q, where P is the dollar amount on the price tag and Q is the measured size of the package. To make two products genuinely comparable, both must be expressed in identical units before the division happens, because $0.20 per ounce and $0.20 per gram are not the same number even though the digits match.

Using the calculator takes three steps. Step 1: enter the price and quantity of Item A. Step 2: optionally enter the price and quantity of Item B, measured in the same unit as Item A (convert first if the labels differ: 1 lb = 16 oz, 1 kg = 1000 g, 1 gal = 128 fl oz, 1 L = 33.814 fl oz). Step 3: read the price per unit for each item, which one is the better buy, and how much cheaper it is per unit in percent.

Before you type the numbers in, adjust for multi-pack counts (a 12-pack of 16 oz bottles equals 192 fl oz total before division), net versus gross weight (use net weight printed on the nutrition panel, not shipping weight), buy-one-get-one offers (effective quantity doubles while price stays the same), and coupons or instant rebates (subtract the discount from P before dividing). For coupon math, the corrected formula becomes UP = (P - D) / Q, where D is the dollar discount. For percent-off promotions, the formula expands to UP = P x (1 - r) / Q, where r is the discount rate expressed as a decimal.

Keep one rule in mind: a lower sticker price does not automatically mean a lower unit price. A 32 oz jar for $5.76 looks more expensive than a 24 oz jar for $4.80, yet the larger jar wins on unit cost. Doing the division takes the guesswork out of the choice.

Example calculation

Three worked scenarios show how the unit price calculator changes a buying decision in real money terms.

Scenario 1: Olive oil at the grocery store. Bottle A holds 16.9 fl oz and costs $8.49. Bottle B holds 33.8 fl oz and costs $14.99. Bottle C holds 67.6 fl oz (a bulk-club size) and costs $24.49. Dividing each price by ounces gives Bottle A at $0.502 per fl oz, Bottle B at $0.443 per fl oz, and Bottle C at $0.362 per fl oz. A household that uses 67.6 fl oz of olive oil per year saves about $9.46 by buying one large bottle instead of four small ones, assuming the oil stays fresh.

Scenario 2: Toilet paper with a coupon. Brand X sells a 12-roll mega pack for $14.99 with 264 sheets per roll, total 3,168 sheets. Brand Y sells an 18-roll value pack for $19.49 with 198 sheets per roll, total 3,564 sheets, and a $3.00 manufacturer coupon. Brand X comes out to $0.00473 per sheet. Brand Y after the coupon becomes ($19.49 - $3.00) / 3,564 = $0.00463 per sheet. Brand Y is cheaper by about $0.32 across the full pack, but only after the coupon applies.

Scenario 3: Ground coffee comparison across pack sizes.

ProductSizePriceUnit priceRank
House roast bag12 oz$8.99$0.749 / oz3
House roast can30.5 oz$14.49$0.475 / oz2
Warehouse-club tub48 oz$18.99$0.396 / oz1
Single-serve pods (24 ct)~9.5 oz brewed equivalent$13.99$1.472 / oz4

The warehouse-club tub costs less than half per ounce compared to single-serve pods. Over a year, a two-cup-per-day drinker who consumes roughly 18 oz of ground coffee per month saves about $232 versus pods and about $76 versus the small bag. These three scenarios demonstrate that unit pricing rewards three behaviors at once: buying larger when storage allows, applying coupons before comparing, and treating convenience formats (pods, snack packs, single-serve) as a separate premium category.

Tips for using the Unit Price Calculator

  • Always check the printed net weight, not the package volume. A cereal box may look big yet contain only 12 oz of product because of settling space, which makes the per-ounce math worse than the shelf size suggests.
  • Match units before dividing. A 750 mL wine bottle at $14 and a 1.5 L bottle at $26 must both convert to milliliters first: $0.01867 per mL versus $0.01733 per mL, a 7.2% savings on the larger size.
  • Watch the unit on the shelf tag itself. Some stores price meat per pound, deli items per 100 grams, and bulk bins per ounce on adjacent shelves, which can make the printed tag misleading without manual recalculation.
  • Factor in spoilage risk for perishables. A 5 lb bag of spinach at $0.80 per oz beats a 1 lb bag at $1.20 per oz only if you can eat all 5 lb before it wilts. Discard one third and the real cost jumps 50%.
  • Beware shrinkflation. A box that dropped from 16 oz to 14 oz while keeping the same $4.99 price raised the unit price from $0.312 per oz to $0.356 per oz, a 14% hidden increase that does not appear on the price tag itself.
  • Recalculate when packaging changes. Manufacturers frequently shift between ounces, count, and grams to obscure increases. Re-run the unit price every three to six months on staples you buy on autopilot.

Is the bigger package always cheaper?

No. The largest package is often the cheapest per unit, but not always. Stores sometimes price a middle size most aggressively, and a big pack can carry a "quantity surcharge" — a higher price per ounce than a smaller size of the same product. One study cited by Consumer Reports found that up to 25 percent of brand-name products were a poorer value in the larger size at some supermarkets. Divide before you grab the biggest box.

Shelf tags don't always settle it. Unit pricing is required in only 10 U.S. jurisdictions — Connecticut, Maryland, Massachusetts, New Hampshire, New Jersey, New York, Oregon, Rhode Island, Vermont and Washington, D.C. — and most states have no unit-pricing rule at all, according to NIST. Where tags do exist, they often aren't recalculated for sale prices, coupons or loyalty discounts, so a promotion can flip which package wins.

Finally, compare on the unit you actually use. Concentrated laundry detergent at $0.10 per fl oz that washes twice as many loads as standard detergent at $0.07 per fl oz works out about 30 percent cheaper per load, even though it costs more per ounce. When strength differs, per load, per cup or per serving beats per ounce.

How to compare grams vs ounces

Shelf tags mix US and metric units, so convert every package to one unit before you divide: 1 oz = 28.35 g, 1 lb = 16 oz, 1 kg = 35.27 oz and 500 g = 17.64 oz. Then divide each price by its ounces and rank the results.

PackagePriceSize in ozPrice per ozRank
2 lb bag$6.2932.00$0.1971
1 kg bag$7.4935.27$0.2122
16 oz bag$3.4916.00$0.2183
500 g bag$3.9917.64$0.2264
3 × 12 oz multipack$9.9936.00$0.2785

The biggest package here, the 36 oz multipack, ranks last, while the 2 lb bag wins. Size alone told you nothing; the price per ounce did.

Mistakes and pitfalls that distort unit price comparisons

The most expensive mistake is comparing unit prices across different units without converting. A 1.75 L bottle of mouthwash at $9.99 and a 50 fl oz bottle at $8.49 cannot be ranked until both are expressed in the same unit. 1.75 L equals 59.18 fl oz, so the larger bottle is $0.169 per fl oz and the smaller is $0.170 per fl oz, a near tie that looks like a wide gap if you accidentally compare per liter to per ounce.

A second pitfall is ignoring the bundle discount on multi-buy promotions. A buy-3-for-$10 deal on items priced at $3.99 each lowers the effective per-item price to $3.33, dropping the unit price by 16.5 percent, but the shelf tag rarely reflects this until checkout.

A third pitfall is using packaging weight instead of edible or usable weight. Frozen shrimp sold by the bag often includes a glaze of ice that can be 15 to 25 percent of total weight, so a $14.99 / 2 lb bag at $7.50 per lb is really closer to $9.40 per lb of actual shrimp. The same applies to canned tuna in water (drained weight is what counts) and bone-in meats.

Fourth, watch for psychological pricing that exploits unit-blindness, such as $0.99 single-serve items that look cheap but compute to $4 to $6 per pound, far above the bulk equivalent.

Related on this site

step-by-step unit price guide · apply a coupon or % off first · add sales tax · percent cheaper · pricing for sellers: markup

How we calculate this

This tool uses the standard formula shown above, runs entirely in your browser and stores nothing you type. Results are estimates for planning — not financial, tax or legal advice. Background reading: NIST — U.S. retail pricing laws and regulations. Found an error? Tell us and we will fix it.

Unit Price Calculator — frequently asked questions

Why compare unit price instead of the total price?
Because package sizes differ. Unit price turns every package into the cost of one ounce, pound or item, so a 32 oz jar for $5.76 ($0.18 per ounce) can be compared fairly with a 24 oz jar for $4.80 ($0.20 per ounce). The lower unit price is the better buy, as long as you will use the extra quantity.
What is the formula for unit price?
Unit price = total price ÷ quantity. A 24 oz jar for $4.80 is $4.80 ÷ 24 = $0.20 per ounce. Put both items in the same unit first (1 lb = 16 oz, 1 kg = 1,000 g, 1 gal = 128 fl oz). With a coupon, subtract it first: (price − coupon) ÷ quantity. With a percent-off deal, use price × (1 − discount rate) ÷ quantity.
Can I trust the unit price on the shelf tag?
Usually, but check it. Unit pricing is required in only 10 U.S. jurisdictions, and where tags exist they often aren't recalculated for sale prices, coupons or loyalty discounts. Consumer Reports has found tags with the wrong math, such as one showing $1.14 per pound for ketchup that actually cost $1.20 per pound. Dividing price by size yourself takes seconds.
What's the difference between unit price and retail price?
Retail price is what you pay for the whole package; unit price is that total divided by the quantity inside. A 32 oz jar priced at $5.76 has a retail price of $5.76 and a unit price of $0.18 per ounce. Retail price tells you what leaves your wallet today; unit price tells you which package is the better value.

Guides & articles

Related calculators

Markup Calculator · Profit Margin Calculator · Break-Even Calculator · ROI Calculator · CAGR Calculator · Sales Tax Calculator

📋 Embed this calculator on your site

Free for any blog or website — just copy the code below and paste it into your page. The credit link helps support free tools.

Tip: adjust the iframe height if needed (try 600–800).