Skip to content
Processing locally — files never leave your device

Unit Price Calculator

Compare up to four products by total price and total quantity. The tool calculates price per unit and highlights the best deal.

NameTotal priceTotal quantityPrice per unit
$0.0100 / unit
$0.0083 / unit · BEST
$0.0087 / unit
Bloggers — embed this widget for free

Add this tool to your own site with one line of HTML. Free forever — just keep the small credit link.

How to use Unit Price

  1. Give each option a short name so you can tell the rows apart.
  2. Enter the total price you pay for each option.
  3. Enter the total quantity each option contains, using the same unit for every row.
  4. Read the price per unit calculated automatically for each row.
  5. The lowest price per unit is highlighted in green and marked BEST.

Unit price calculator: find the genuinely cheapest option

Sticker price tells you what you pay; unit price tells you what you actually get for the money. This tool compares up to four products by dividing each total price by its quantity, then highlights the lowest cost per unit. Below is why unit pricing beats gut instinct, how to set up a fair comparison, and the situations where the cheapest unit price is still the wrong choice.

The unit price formula

Unit price = total price ÷ total quantity

The trick is keeping the quantity in one consistent unit. A $3.50 box of 200 g and a $5.00 box of 320 g become $0.0175 and $0.0156 per gram — so the bigger box wins by about 11% per gram, a gap you would miss by eyeballing the prices.

Why "bigger is cheaper" is a myth

Shoppers tend to assume the family size always costs less per unit, and stores know it. Studies of supermarket shelves regularly find larger packages priced higher per unit than mid-size ones — a pattern sometimes called the "quantity surcharge." Promotional pricing and odd pack sizes muddy the picture further. Calculating the per-unit cost is the only reliable way to cut through it.

Setting up a fair comparison

  • Use one unit for every row. Convert ounces to grams, or count to weight, before you enter the numbers.
  • Include unavoidable costs. Roll shipping and non-recoverable tax into the total price so online and in-store options compete fairly.
  • Compare what you consume. Cost per serving or per usable portion is often more meaningful than cost per gram, especially when packaging or waste differs.

When the lowest unit price is the wrong call

Cheapest per unit isn't automatically the smartest buy:

  • Perishables:a bulk pack you can't finish before it spoils wastes money no matter the unit price.
  • Storage limits: warehouse-size packs need space you may not have.
  • Cash flow: a lower unit price can still mean a larger upfront outlay than your budget allows this week.
  • Quality and preference:two products at the same unit price may differ in quality, brand, or taste in ways the number can't capture.

Unit pricing on the shelf label

Many regions require stores to print a unit price on the shelf tag, usually in small print beside the main price. When it's missing, inconsistent (one item per 100 g, another per kg), or you're shopping online, doing the math yourself with this calculator keeps the comparison honest.

Related calculators

Frequently asked questions

What units should I use?
Any unit you like, as long as it is the same one for every row. Compare grams against grams, fluid ounces against fluid ounces, or sheets against sheets. Mixing units (grams in one row, ounces in another) makes the comparison meaningless, so convert to a common unit first.
How is the price per unit calculated?
It is simply total price divided by total quantity. A 500 g jar at $4.99 works out to $0.00998 per gram; a 900 g jar at $7.49 is $0.00832 per gram — so the larger jar is cheaper per gram even though it costs more overall.
Are multipacks like "12-pack" supported?
Yes. Enter 12 as the quantity and the price is divided by 12 to give the cost per individual item. This is the fastest way to see whether a bulk pack genuinely beats buying singles.
Why is the bigger package not always the better deal?
Retailers sometimes price larger sizes higher per unit, betting that shoppers assume "bigger equals cheaper." Calculating the unit price exposes these cases, where a mid-size pack or even the small one wins.
Does it factor in shipping or tax?
Not automatically. For an honest comparison, add shipping and any non-recoverable tax into the total price field before comparing. Two products with the same shelf price can differ once delivery is included.
Should I always buy the lowest unit price?
Usually, but not always. Buying more than you will use before it expires — especially perishables — can waste money even at a lower unit price. Storage space and the risk of spoilage are real costs the calculator cannot see.
How do I compare items sold by count against items sold by weight?
You cannot compare them directly. Pick the attribute that matters to you (cost per serving, per gram, or per item) and express both products in that single unit before entering them.

More tools you might find useful in the same flow.

Built by Muhammad Tahir · About