Skip to content

Unit price calculator

Compare several package sizes on one fair basis—by mass, volume, or item count.

PRICE ÷ TOTAL AMOUNT

Enter products to compare

Prices and quantities stay in this browser tab. Nothing is uploaded.

Comparison type

Choose one dimension for the whole comparison. Weight, volume, and count cannot be mixed.

Product 1
Product 2

Unit price comparison

Rank1

B

Best value

Price per g0.0042

Total comparable amount: 1,000 g

Rank2

A

Price per g0.005

Total comparable amount: 500 g

How to compare unit prices

  1. Choose Mass, Volume, or Count before entering products. Use Mass for labels such as grams, kilograms, ounces, and pounds; Volume for millilitres, litres, US fluid ounces, and US gallons; and Count for eggs, rolls, sheets, pods, or other individual pieces. One comparison deliberately stays inside one dimension.
  2. For each product, enter the shelf price, the number of packages included in that price, and the amount inside each package. A three-pack of 250 g bags is package count 3 and amount per package 250 g. Product names are optional, but short names make the sorted result easier to read.
  3. Add more rows when you have more than two offers. Each row may use a different compatible unit: a 500 g bag can be compared with a 1 kg bag, or a 16 US fl oz bottle with a 1 L bottle. Select Compare unit prices after every required field is positive.
  4. Read rank 1 as the lowest price for one base unit. Mass results use price per gram, volume results use price per millilitre, and count results use price per item. Use Copy results if you want a plain-text snapshot for a note or shopping list.

What the calculator normalizes

First, the calculator finds total comparable quantity: package count × amount per package × the selected unit conversion factor. One kilogram becomes 1,000 grams; one pound becomes 453.59237 grams; one litre becomes 1,000 millilitres; and one US fluid ounce becomes 29.5735295625 millilitres. Count needs no physical conversion.

Unit price is package price ÷ total comparable quantity. Every product is ranked using the full unrounded result. The screen normally shows no more than two decimal places and removes trailing zeroes, but it shows additional useful digits or scientific notation when a very small per-gram or per-millilitre price would otherwise look like zero.

Two products tie when their full calculated unit prices are equal within normal floating-point tolerance. A displayed tie is not produced merely because two different rates round to the same cents. This matters when many low-cost pieces or tiny mass units make the visible numbers look similar.

Worked comparison examples

500 g bag versus 1 kg bag

Product A costs 2.50 for one 500 g bag: 2.50 ÷ 500 = 0.005 per gram. Product B costs 4.20 for one 1 kg bag: 1 kg becomes 1,000 g, so 4.20 ÷ 1,000 = 0.0042 per gram. Product B ranks first even though its shelf price is higher.

Multipacks of individual items

A three-package offer containing four items per package costs 12. Its total count is 3 × 4 = 12 items, so the unit price is 1 per item. Another package costs 9 for eight items, or 1.125 per item. The first offer is cheaper per item, although it costs more at checkout.

An exact tie across units

A 500 g package at 5 costs 0.01 per gram. A 1 kg package at 10 also costs 10 ÷ 1,000 = 0.01 per gram. Both receive rank 1. Package size, storage, and the amount you can spend now can decide between tied offers.

Use the result carefully

Frequently asked questions

Can I compare ounces with pounds?

Yes. Both are mass units, so the calculator converts them to grams before ranking. You can likewise compare millilitres, litres, US fluid ounces, and US gallons inside Volume mode.

Why is the result per gram or per millilitre?

A small common base unit keeps unlike package labels comparable. Very small rates receive extra displayed digits so a valid price is not shown as zero.

Can I enter a bundle or case?

Yes. Put the number of packages in the bundle under Number of packages and the labeled amount in one package under Amount per package. Do not multiply them yourself as well, or the quantity will be counted twice.

What if two products show the same rounded price?

Ranks use the unrounded calculation. They are tied only when the underlying rates match within numerical tolerance, even if both visible values round to the same display.

Does the cheapest unit price mean I should buy it?

Not necessarily. Check total checkout cost, expected use, shelf life, storage, quality, and waste. This result answers only which entered offer costs less for the same measured amount.