Guide
Comparing products by unit price: price per 100 g, kilogram, ounce, litre or item
Shop labels often print a unit price in small type, but the units differ from one shelf to the next: one brand per 100 grams, another per kilogram, a third per ounce. A bigger pack is not always the better value either. This page takes products you describe in a few words, converts everything to one common unit and ranks them, so the cheapest option is obvious.
How to enter products
Type one product per line as a name, a price and a size, separated by commas or vertical bars. The size is a number followed by a unit: g, kg, mg, oz, lb, ml, cl, L, fl oz, pt, qt, gal, or a count word such as ct, pack, each or sheets. A multipack is written with an x, as in 6 x 330 ml, and its sizes are multiplied. If you leave the name out, the products are called Item 1, Item 2 and so on. Currency symbols and thousands commas in the price are ignored, and the currency can be set for the display.
The basis
Choose how the price per unit is shown: per 100 g or 100 mL, per kilogram or litre, per ounce or US fluid ounce, or per pound or US gallon. Counted items are always priced per item. The same choice applies to weights and volumes, so you can use the metric basis for a list in grams and the US basis for a list in pounds without retyping anything. All the sizes are converted exactly, with 453.59237 grams to the pound, 28.349523125 to the ounce and 3.785411784 litres to the US gallon.
The ranking
The table lists each product by rank with its price, size, price per unit and how much more it costs than the best, as a percentage. The summary names the best value and the next best, and says how much more the dearest costs than the cheapest. The percent more is the unit price divided by the best unit price, minus one, so 34% more means a third dearer for the same amount.
Edge cases
At least two products are needed, and up to 30 are allowed. A price must be above zero and a size must be a positive number. A unit the page does not know produces a message that lists the ones it does. Mixing a weight and a volume gives a message naming the two products. Pints, quarts and gallons are the US ones, and imperial sizes are not offered. The tool compares prices as written, so check whether a shelf price includes tax or a loyalty discount.
A worked example
Store brand at 3.20 for 500 g costs 0.64 per 100 g. Name brand at 4.79 for 750 g costs 0.6387, and the bulk bag at 9.50 for 2 kg costs 0.475. The bulk bag ranks first, the name brand is 34.46% dearer, and the store brand is 34.74% dearer. For drinks, a 2 L bottle at 2.19, six 330 mL cans at 5.49 and a 1.5 L own-brand bottle at 1.59 cost 1.095, 2.7727 and 1.06 per litre, and the cans are 161.6% more than the cheapest. Laundry sheets at 80, 50 and 160 count cost about 0.15, 0.17 and 0.125 per item.
Limits
The cheapest unit price is not always the best buy. A large pack saves money only if you use it all before it spoils, and a cheaper product can be of a different quality. The page does not compare nutrition, ingredients or the strength of a concentrate. It also cannot read a size in words, such as a dozen, so enter 12 ct.
Related tools
- Discount Calculator works out the sale price when a product is marked down before you compare it.
- Percentage Calculator checks the percent difference between any two prices.
- Price per Square Foot Calculator applies the same idea to floors, rents and land.
- Tip Calculator is the other small calculator for shop and restaurant totals.
Checked against the current version of the Unit Price Calculator on .

