Unit Price Calculator

Compare the real price of two products by their unit price — cost per gram, ml, ounce or item — even if they're sold in different sizes and units.

Calculated in your browser. No data sent to servers.

Formula reviewed Nov 2026

Try an example

$
$

Best value

-

-

Product A per unit

-

Product B per unit

-

Savings

-

How to use this calculator

Enter the price, size and unit for two products. The calculator normalises both to a common base unit and tells you which is the better value — and by how much.

The formula behind this result

Unit price = Price ÷ (Size × Conversion factor to base unit). Base units are grams for weight, millilitres for volume, and count for items. Comparing on the same base unit gives a direct price-per-unit comparison.

Frequently asked questions

Does this work with products in different units?

Yes. For example, one product priced per kilogram and another per pound can be compared because both are normalised to price-per-gram before comparison.

Why do some products appear cheaper per unit but not per package?

Because the package sizes differ. A larger package at a higher price can still be better value per unit — which is exactly what this calculator reveals.

Should I always buy the lowest unit price?

No. Consider whether the larger package will actually be consumed before it expires, storage space, and whether you need that quantity.

Explore more