HomeGuides › How to calculate unit price: the simple way to find the best deal

How to calculate unit price: the simple way to find the best deal

To calculate unit price, divide the total price by the total quantity in the package: unit price = total price ÷ quantity. For example, a 32-ounce bottle of juice that costs $4.99 has a unit price of $0.156 per ounce ($4.99 ÷ 32). Once every option is reduced to the same per-unit cost, the cheapest "better buy" is the one with the lowest unit price, even when the sticker price looks higher.

That single calculation quietly saves the average American household hundreds of dollars a year on groceries, cleaning supplies, baby formula, and bulk staples. Yet most shoppers still rely on the front-of-package price, which is exactly what marketers want. This guide walks through the unit price formula, real grocery-aisle examples, the mistakes that trip people up, and a few advanced tactics for spotting fake "bulk discounts." Plug your own numbers into our unit price calculator at any step to skip the math.

What is unit price and why does it matter?

Unit price is the cost of one standard measurement (one ounce, one pound, one liter, one sheet, one tablet) of a product. It exists so you can compare two items that are sold in different sizes without doing mental gymnastics in aisle seven.

Retailers in most US states are required to print unit pricing on a shelf tag underneath the product. The shelf tag usually shows the price per ounce, per pound, per 100 sheets, or per fluid ounce in small print next to the retail price. Nineteen states plus several major cities have unit pricing laws on the books, but enforcement and rounding rules vary, which is why the number you calculate at home is often more accurate than the one on the tag.

Unit price matters because package sizes are designed to confuse you. A "family size" cereal box can have a higher cost per ounce than the regular box. A 12-pack of soda can be more expensive per can than the 24-pack on sale two aisles over. The only way to know is to convert every option to the same unit.

The unit price formula

The unit price formula is straightforward:

Unit price = Total price ÷ Total quantity

Three rules make it reliable:

  • Use the same units for everything you compare. Don't compare price per ounce to price per pound. Convert one side first (1 pound = 16 ounces).
  • Use the after-coupon, after-tax price when it applies. A 20% off coupon changes the unit price; sales tax on non-food items does too.
  • Round to enough decimal places to see the difference. Price per ounce often comes out to fractions of a cent. Round to three decimals (for example, $0.156) so a $0.01 difference doesn't disappear.

For percentages, fees, and similar everyday math, our percentage calculator and discount calculator handle the side calculations.

How to calculate unit price step by step

Here is the exact process to find unit price for any two products on a shelf.

  1. Identify the package size in a standard unit. Look at the front or side of the package for the weight, volume, or count: 16 oz, 1.5 lb, 750 mL, 200 sheets, 60 tablets.
  2. Convert both products to the same unit. If one is in ounces and the other in pounds, multiply pounds by 16 to get ounces. If one is in milliliters and the other in fluid ounces, use 1 fl oz = 29.5735 mL.
  3. Subtract any coupon or instant discount from the shelf price. Use the price you will actually pay at the register, not the marked price.
  4. Divide price by quantity. $7.49 for 24 oz becomes $7.49 ÷ 24 = $0.312 per ounce.
  5. Round both unit prices to three decimal places. This keeps small but meaningful differences visible.
  6. Compare the unit prices, not the package prices. The lowest number wins, regardless of which box is bigger.
  7. Sanity check the result. If a "bulk" pack is somehow more expensive per unit than the small pack, you probably mixed up units or forgot a sale price.
  8. Factor in shelf life and storage. The cheaper unit price only matters if you will actually use the product before it expires or takes over your pantry.

Worked examples from the grocery aisle

Three quick scenarios show how the unit price formula plays out in real shopping.

Example 1: Olive oil

You are choosing between two bottles of the same brand of extra virgin olive oil:

  • Bottle A: 17 fl oz at $9.99
  • Bottle B: 33.8 fl oz (1 liter) at $17.49

Bottle A: $9.99 ÷ 17 = $0.588 per fl oz.
Bottle B: $17.49 ÷ 33.8 = $0.517 per fl oz.

The bigger bottle is about 12% cheaper per ounce. If you use olive oil regularly, Bottle B is the better buy.

Example 2: Toilet paper (mixed units)

Toilet paper is the classic trap because "double rolls" and "mega rolls" mean different things by brand.

  • Pack A: 12 regular rolls, 264 sheets per roll, $8.99
  • Pack B: 6 mega rolls, 396 sheets per roll, $7.49

Pack A: 12 × 264 = 3,168 sheets. $8.99 ÷ 3,168 = $0.00284 per sheet (or $0.284 per 100 sheets).
Pack B: 6 × 396 = 2,376 sheets. $7.49 ÷ 2,376 = $0.00315 per sheet ($0.315 per 100 sheets).

Pack A is roughly 10% cheaper per sheet, even though Pack B feels cheaper at checkout.

Example 3: Coffee on sale

  • Bag A: 12 oz at $11.99, no coupon
  • Bag B: 28 oz at $19.99, $3 off digital coupon

Bag A: $11.99 ÷ 12 = $0.999 per oz.
Bag B: ($19.99 - $3.00) ÷ 28 = $16.99 ÷ 28 = $0.607 per oz.

The coupon changes everything. Bag B is almost 40% cheaper per ounce once the discount is applied.

Side-by-side comparison table

Here is a quick reference for how unit price reshapes the "obvious" choice.

ProductPackage APackage BBetter buy
Olive oil17 oz / $9.99 = $0.588/oz33.8 oz / $17.49 = $0.517/ozB (12% less)
Toilet paper3,168 sheets / $8.99 = $0.284/100 sheets2,376 sheets / $7.49 = $0.315/100 sheetsA (10% less)
Coffee (with $3 coupon on B)12 oz / $11.99 = $0.999/oz28 oz / $16.99 net = $0.607/ozB (39% less)
Greek yogurt32 oz / $5.49 = $0.172/oz4 × 5.3 oz / $4.99 = $0.235/ozA (27% less)
Laundry detergent92 loads / $14.99 = $0.163/load146 loads / $19.99 = $0.137/loadB (16% less)

Common mistakes to avoid

The unit price formula is simple, but a few mistakes consistently lead shoppers to the wrong "better buy."

  • Trusting the shelf tag without checking. Shelf tags can be outdated, use weird rounding, or quote a different unit (per oz vs per 100 sheets) than the product next to it. Recalculate when the gap looks suspicious.
  • Comparing different units. Per pound vs per ounce is the most common error. Convert before you compare.
  • Ignoring sales and coupons. A 25% off sale on the bigger size often flips which product is cheaper per unit.
  • Forgetting taxes on non-food items. In most states, groceries are not taxed but paper goods, cleaning supplies, and personal care items are. Add tax before dividing if you want apples-to-apples.
  • Bulk buying perishables you can't finish. A 30% lower unit price is meaningless if you throw out half the package. Factor in real consumption, not theoretical savings.
  • Confusing "count" with "volume." A 24-pack of small water bottles can have less total water than a 12-pack of large bottles. Always divide by the underlying measurement (oz or mL), not the number of containers.

Advanced tips for serious shoppers

Once you have the basic formula down, a few advanced tactics push your savings further.

  • Build a personal "unit price ceiling" for staples. If you know your household pays $0.15 per load of detergent at the lowest sale, you stop buying when the unit price drifts above that and stock up when it drops below.
  • Track unit price over time, not just per trip. "Sale" prices at one store can still be higher per unit than the everyday price at another. A simple notes app entry per staple beats memory.
  • Watch out for shrinkflation. Brands quietly drop a 16 oz package to 14 oz at the same price. The unit price goes up roughly 14%. Always recompute when the box looks new.
  • Use unit price to decide between brands and store brands. Store brands are often 20-40% cheaper per unit for nearly identical products. Run the math on the things you buy weekly first.
  • Apply the concept beyond groceries. Cost per kilowatt-hour for electricity, cost per mile on a car loan, and cost per square foot of housing are all unit prices. The same logic that ranks two yogurts also ranks two mortgages or two auto loans.
  • Convert subscriptions into a unit cost. A streaming service at $14.99/month is $0.50 per day. A warehouse club membership at $60/year is about $5 per month. The math is the same; the unit is just "day" or "month."

Related concepts: cost per unit, markup, and break-even

Unit price has cousins in business math that use the same divide-by-quantity logic, and understanding them sharpens your shopping eye too.

  • Cost per unit (for businesses) divides total production cost by units produced. It tells a small business what each item costs to make, before profit. Our markup calculator and profit margin calculator take that cost and price it for sale.
  • Break-even price is the unit price at which revenue equals total cost. The break-even calculator handles the full version, but the building block is still total ÷ quantity.
  • Price per ounce vs price per use matters for concentrated products. A 2x concentrated detergent at the same price per ounce as the regular version is actually half the price per load. Always divide by the unit you actually consume.
  • Average cost over time applies to investments too. The SIP calculator uses the same logic: total invested divided by total units (shares) bought equals your average cost per share.

If you are shopping smarter to free up cash for goals, pair this habit with our savings goal calculator, the monthly savings guide, or the emergency fund playbook. Saved grocery dollars are some of the easiest dollars to redirect.

When unit price is not the only thing that matters

Lowest unit price is usually the right answer, but not always. Quality, ingredient list, brand trust, dietary needs, and storage limits can all justify paying more per unit. A glass-bottled olive oil at $0.70/oz can beat a plastic jug at $0.50/oz if the quality matters to you. A six-pack you will finish beats a 30-pack you will throw away.

The point of calculating unit price is not to always buy the cheapest option, but to make the trade-off visible. Once you know you are paying a 20% per-ounce premium for a brand you trust, the choice is conscious instead of accidental, which is the whole game.

Ready to stop guessing in the aisle? Bookmark our unit price calculator and run any two products through it in seconds: enter price and size for each option, get the per-unit cost and the better buy instantly. Use it on your next grocery trip, on Amazon, on warehouse club runs, and on subscription boxes. A 60-second habit can shave hundreds off your annual spending and feed straight into bigger goals tracked in our savings hub and business hub.

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 formula to calculate unit price?
The unit price formula is: unit price = total price divided by total quantity. For example, $4.99 for 32 ounces equals $0.156 per ounce ($4.99 / 32 = $0.156).
How do I find the unit price of an item?
Take the shelf price, subtract any coupons, then divide by the package size in a standard unit (ounce, pound, sheet, load). The result is the cost per unit, which lets you compare products of any size.
What does price per unit mean?
Price per unit is the cost of one standard measurement of a product, such as one ounce of olive oil, one sheet of paper towel, or one load of detergent. It standardizes prices across different package sizes.
Is unit price the same as cost per unit?
In shopping, the terms are used interchangeably. In business, cost per unit usually refers to production cost per item made, while unit price refers to the selling price per measurement. The math (total / quantity) is identical.
How do I compare prices when units are different?
Convert both products to the same unit first. For example, change pounds to ounces (1 lb = 16 oz) or liters to fluid ounces (1 L = 33.814 fl oz), then divide each price by the converted quantity.
Is a bigger package always a better buy?
No. Bigger packages are often cheaper per unit but not always. Sales, coupons, shrinkflation, and 'family size' premiums sometimes make the smaller package the better buy. Always calculate unit price to confirm.
What is a unit pricing shelf tag?
A unit pricing shelf tag is the small label under a product that shows the price per ounce, per pound, per 100 sheets, or per other standard unit. About 19 US states require them, but the calculation at home is often more precise.
How accurate are shelf unit prices in stores?
They are usually close but not always reliable. Tags can be outdated after sales, use inconsistent units between brands, or round in ways that hide a few cents of difference. Recalculating takes 10 seconds with a calculator.
How do I calculate unit price with a coupon?
Subtract the coupon value from the shelf price first, then divide by the package size. A $19.99 bag of coffee with a $3 coupon is $16.99 net; dividing by 28 ounces gives $0.607 per ounce.
What is the better buy between two products?
The better buy is the option with the lower unit price after coupons and tax, assuming you will use the product before it expires. Lowest cost per ounce, pound, or sheet wins.
Does unit price include sales tax?
By default, no. Most stores list pre-tax unit prices. If you want a true comparison on taxable items like paper goods or cleaning supplies, add the sales tax to the shelf price before dividing.
How do I calculate unit price for things sold by count, like batteries or rolls?
Divide the total price by the number of units. For example, a 12-pack of batteries for $9.99 is $9.99 / 12 = $0.832 per battery. For rolls, you can also calculate price per sheet by multiplying rolls by sheets per roll.
Can I use unit price for online shopping?
Yes. Amazon, Walmart, and most grocery delivery apps now show price per unit on product pages. If they do not, copy the price and size into a unit price calculator before adding the item to your cart.
How much money can I save by checking unit prices?
Studies suggest unit price comparison saves 10-25% on grocery and household spending. For a family spending $800 a month on these categories, that is $80-$200 monthly, or roughly $1,000-$2,400 a year redirected to savings or debt payoff.

Related guides

How to calculate CAGR: formula, Excel method, and worked examples · How to Use Reverse CAGR to Project Future Value · CAGR vs Average Annual Return: What's the Difference? · How to Calculate Price Per Unit: Formula, Conversions, and Worked Examples

Muhammad Zohaib AmeerFounder & Personal Finance Researcher

Muhammad Zohaib Ameer is the founder of The Money Calcs. He personally builds, tests and researches every calculator and guide on the site — translating the standard financial formulas used by banks and lenders into free, plain-English tools. His focus is accuracy and clarity: helping everyday people understand mortgages, loans, savings, investing, retirement and debt without jargon, sign-ups or sales pitches.