To calculate price per unit, divide the total price by the quantity in the package: price per unit = total price ÷ quantity. A $4.99 bag that weighs 32 ounces costs $0.156 per ounce ($4.99 ÷ 32 = $0.1559, rounded to $0.156). Once every option is expressed in the same unit — per ounce, per pound, per 100 grams, or per item — the cheapest choice is simply the one with the lowest price per unit.
That one-line formula is the most reliable money-saver in any grocery aisle, hardware store, or online cart. The catch: products are sold in mismatched sizes and units on purpose, so you have to convert, handle coupons, and round carefully before the numbers mean anything. This guide centers the exact price per unit calculation with worked examples in cents per ounce, dollars per pound, per 100 grams, and per count, plus multipack and coupon math. Drop your own numbers into our unit price calculator at any point to skip the arithmetic.
The price per unit formula
The formula has just two inputs:
Price per unit = Total price ÷ Quantity
"Total price" is what you actually pay — after coupons, before tax in most U.S. stores. "Quantity" is the package size measured in a single standard unit: ounces, pounds, grams, fluid ounces, or a count of items. The result tells you what one unit costs, which is the only fair way to size up a small package against a giant one.
Three rules keep the answer trustworthy:
- Pick one unit and stick to it. Never compare a price per ounce against a price per pound directly. Convert one side first (16 oz = 1 lb).
- Use the price you will really pay. Subtract coupons and instant discounts before dividing, and add sales tax on taxable items if you want a true head-to-head.
- Keep enough decimal places. Price per ounce often lands in fractions of a cent, so round to three or four decimals so a real difference doesn't vanish.
For how businesses define the term, see Investopedia's explanation of unit cost. For the broader walkthrough on shelf tags and shopping strategy, see our guide on how to find the better buy. Shelf tags won't always do this for you: unit pricing is required in only 10 U.S. jurisdictions, according to NIST.
How to calculate price per unit step by step
Here is the exact sequence for any two products you want to compare.
- Read the real package size. Find the weight, volume, or count printed on the label (16 oz, 2 lb, 750 g, 60 capsules). Ignore marketing words like "family size."
- Convert both items to the same unit. If one is in pounds and the other in ounces, multiply pounds by 16. If one is in grams, decide whether you're comparing per gram or per 100 grams.
- Subtract any coupon or discount. Use the net price you'll hand over at the register, not the sticker.
- Divide price by quantity. Price per unit = net price ÷ quantity.
- Round to three or four decimals. This keeps a penny-per-ounce gap visible instead of rounding it away.
- Compare the unit prices, not the package prices. The lowest number wins, no matter which box is bigger or carries the lower sticker.
Worked example: cents per ounce
Cents per ounce is the standard way to compare snacks, cereal, oil, and detergent. A 24-ounce jar of peanut butter costs $7.49. Work it out:
- Total price = $7.49
- Quantity = 24 oz
- Price per unit = $7.49 ÷ 24 = $0.312 per ounce
To read it in cents, multiply by 100: $0.312 × 100 = 31.2 cents per ounce. Now any rival jar reduced to cents per ounce compares instantly. A 40-ounce jar at $11.49 works out to $11.49 ÷ 40 = $0.287 per ounce (28.7 cents), so here the bigger jar is the cheaper price per ounce — about 8% less.
Worked example: dollars per pound (with a unit conversion)
Meat, produce, coffee, and nuts are often priced per pound, but the package may be labeled in ounces. This is where conversions matter most. Compare two coffee bags:
- Bag A: 12 oz at $8.99
- Bag B: 2 lb at $21.99
First put both in the same unit. There are 16 ounces in 1 pound, so:
- Bag A: 12 oz = 0.75 lb → $8.99 ÷ 0.75 = $11.99 per pound
- Bag B: 2 lb → $21.99 ÷ 2 = $11.00 per pound ($10.995, rounded)
Bag B is cheaper per pound by about $0.99, roughly 8% less. Prefer cents per ounce? Divide each price by its ounces: Bag A is $8.99 ÷ 12 = $0.749 per ounce, and Bag B is $21.99 ÷ 32 = $0.687 per ounce. Either unit names the same winner, as long as both products use it.
Worked example: price per 100 grams
Imported foods, supplements, and many online listings use grams. Price per gram produces tiny numbers, so most shoppers compare price per 100 grams (often labeled cost per 100g) to keep things readable. Take a 250-gram block of cheese at $5.49 and use one formula every time:
Price per 100 g = Price ÷ grams × 100
- Price per gram = $5.49 ÷ 250 = $0.02196 per gram
- Price per 100 g = $0.02196 × 100 = $2.196 per 100 g (about $2.20)
Or do it in one line: $5.49 ÷ 250 × 100 = $2.196, about $2.20 per 100 g. Dividing first and then multiplying by 100 gives the same answer; the mistake to avoid is comparing a per-gram price ($0.022) with a per-100 g price ($2.20).
Worked example: price per count (items)
Batteries, eggs, K-cups, diapers, and paper rolls are sold by count, so the "unit" is one item. A 12-pack of AA batteries at $9.99 is simply:
- $9.99 ÷ 12 = $0.8325 per battery (about 83 cents each)
Count math hides a trap: a "24-pack" of small water bottles can hold less total liquid than a "12-pack" of large ones. When the items differ in size, divide by the underlying measurement (ounces or grams), not the number of containers. For paper towels you can go a layer deeper and compute price per sheet — multiply rolls by sheets per roll, then divide the price by total sheets.
Handling multipacks and coupons
Multipacks and coupons are where shoppers most often get price per unit wrong. For a multipack, find the total quantity first, then divide once.
A variety pack has 6 bags at 1.5 oz each for $4.50. Total quantity = 6 × 1.5 = 9 oz. Price per unit = $4.50 ÷ 9 = $0.50 per ounce. Dividing $4.50 by 6 bags ($0.75 per bag) answers a different question — price per bag — so be clear about which unit you want.
For coupons, subtract the discount before dividing. The coupon-adjusted formula is:
Price per unit = (Price − Discount) ÷ Quantity
Example: a 28-ounce bag of coffee is $19.99 with a $3 digital coupon. Net price = $19.99 − $3.00 = $16.99. Price per unit = $16.99 ÷ 28 = $0.607 per ounce. A percentage-off deal works the same way once you know the dollar discount; our discount calculator and percentage calculator turn "20% off" into the exact dollars to subtract. On taxable items, add tax with the sales tax calculator before dividing if you want the all-in price per unit.
A comparison table across package sizes
This table puts the four unit types side by side, so you can see how price per unit — not sticker price — decides the cheapest option. Each row shows the math and the winner.
| Product | Package A | Package B | Lower price per unit |
|---|---|---|---|
| Peanut butter (per oz) | 24 oz / $7.49 = $0.312/oz | 40 oz / $11.49 = $0.287/oz | B (about 8% less) |
| Coffee (per lb) | 12 oz = 0.75 lb / $8.99 = $11.99/lb | 2 lb / $21.99 = $11.00/lb | B (about 8% less) |
| Cheese (per 100 g) | 250 g / $5.49 = $2.20/100 g | 400 g / $7.99 = $2.00/100 g | B (about 9% less) |
| Batteries (per count) | 12-pack / $9.99 = $0.833 each | 24-pack / $17.49 = $0.729 each | B (about 12% less) |
| Coffee with $3 coupon (per oz) | 12 oz / $8.99 = $0.749/oz | 28 oz / $16.99 net = $0.607/oz | B (about 19% less) |
| Snack multipack (per oz) | 9 oz total / $4.50 = $0.500/oz | 18 oz bag / $7.20 = $0.400/oz | B (about 20% less) |
Bigger usually wins on price per unit, but not always. A coupon, a sale, or a "premium" multipack can flip the result, which is exactly why you run the numbers instead of guessing.
How to calculate price per unit in Excel
Put the price in column B and the quantity in column C, then copy the formula down to rank any number of products:
- Price per unit:
=B2/C2 - With a coupon (dollar discount in D2):
=(B2-D2)/C2 - Per 100 grams (grams in C2):
=B2/C2*100
Sort the result column from smallest to largest and the best value is at the top.
Common rounding mistakes
Most wrong answers come from sloppy rounding or mismatched units, not from the formula itself. Watch for these:
- Rounding too early. Round $0.3120833 to $0.31 before comparing, and two products that differ by half a cent per ounce can look identical. Round only at the final step, and keep three to four decimals.
- Rounding to the wrong place. Cents-per-ounce values are small, so "$0.16" hides real gaps. Use $0.156 instead of $0.16 so a one-cent-per-ounce difference still shows.
- Mixing units mid-calculation. Comparing $0.31 per ounce against $4.96 per pound is meaningless. Convert first (1 lb = 16 oz), then compare like with like.
- Per gram vs per 100 grams. $0.022 per gram and $2.20 per 100 grams are the same number scaled by 100. Pick one unit and apply it to both products.
- Forgetting the coupon before dividing. Subtracting the discount after you divide gives the wrong price per unit. Always use (Price − Discount) first.
- Dividing by containers instead of contents. For multipacks of different sizes, divide by total ounces or grams, never by the number of packs.
A quick sanity check catches most errors: if the "bulk" option somehow costs more per unit than the small one, you probably mixed units, skipped a coupon, or divided by the wrong number.
Why price per unit beats the sticker price
Sticker prices are designed to make comparison hard. A "family size" box can cost more per ounce than the regular box, and a 12-pack on an endcap can beat a 24-pack that isn't on sale. Price per unit strips away the packaging games and leaves one number you can rank. Spread across a year of groceries, household goods, and online orders, that 30-second habit reliably trims a meaningful slice off your spending — money you can redirect to savings or debt payoff.
It also travels beyond the grocery store. Cost per kilowatt-hour, cost per square foot, cost per mile, and cost per dose are all just price per unit with a different label. Master the divide-by-quantity move once and you can compare almost anything fairly.
Try it yourself
Run your own numbers in the free Unit Price Calculator — instant, private, no sign-up.
Open the Unit Price Calculator →Frequently asked questions
- What is the price per unit formula?
- The price per unit formula is: price per unit = total price / quantity. When a coupon applies, subtract it first: price per unit = (price - discount) / quantity. Always measure quantity in one consistent unit, such as ounces, pounds, grams, or count, so the two products you compare are truly apples-to-apples before you divide.
- How do I calculate price per ounce?
- Divide the total price by the number of ounces in the package. For a $4.99 item weighing 32 ounces, that's $4.99 / 32 = $0.156 per ounce, or about 15.6 cents per ounce when you multiply by 100. If the package is labeled in pounds, convert first using 16 ounces = 1 pound, then divide the price by total ounces.
- How do you calculate cost per 100g?
- Divide the price by the weight in grams, then multiply by 100: price per 100 g = price / grams x 100. A 250-gram block at $5.49 is $5.49 / 250 x 100 = $2.20 per 100 grams. Using price per 100 grams instead of price per gram keeps the numbers readable while staying a fair comparison.
- How do I calculate price per unit with a coupon?
- Subtract the coupon from the price before you divide: price per unit = (price - discount) / quantity. A $19.99 bag of coffee with a $3 coupon has a net price of $16.99. Divided by 28 ounces, that's $16.99 / 28 = $0.607 per ounce. Subtracting the coupon after dividing gives the wrong answer, so always adjust the price first.
- How do I find price per unit for a multipack?
- Add up the total quantity across all items, then divide once. A 6-pack of 1.5-ounce bags is 6 x 1.5 = 9 ounces total, so $4.50 / 9 = $0.50 per ounce. Dividing by the number of bags instead gives price per bag, a different figure. For multipacks of different sizes, divide by total ounces or grams, not the pack count.
- Is a bigger package always cheaper per unit?
- No. Larger packages are often cheaper per unit, but coupons, sales, shrinkflation, and 'premium' multipacks can make a smaller size cheaper per unit. The only way to know is to calculate price per unit for each option. Bigger usually wins, yet running the quick division protects you from the cases where it doesn't.
Sources
Figures in this guide were checked against these sources on October 14, 2026. Limits and rates change each year — confirm the current numbers before you act.
Related guides
How to Find the Better Buy Using Unit Price · How to find the original price from a sale price · Cost-plus pricing: how to price a product from your costs up · How to Add and Remove VAT From a Price: The Divide-Don't-Subtract Rule