Unit Price Calculator

Compare the unit price of two products to find the better value.

🧮

Enter your values and click Calculate

Enter the price and quantity of two products to instantly calculate and compare their unit prices side by side. Works for any unit of measurement — grams, ml, kg, litres, fl oz, count, sheets, or anything else — as long as both products use the same unit. Quickly identify which pack size or brand offers the best value per unit and see exactly how much you save by choosing the better option. Ideal for grocery shopping, bulk buying comparisons, and any purchase where size and price vary. Larger pack sizes are not always cheaper per unit — this calculator removes the guesswork by doing the math instantly so you can make the best buying decision at the shelf without mental arithmetic. The savings percentage output shows the relative difference, helping you decide whether the price gap is large enough to justify switching brands or buying in bulk. Even a seemingly small difference in unit price — just a few cents per 100g — can add up to meaningful savings across a year of regular purchases, which is why unit price comparisons are one of the most practical everyday applications of simple math.

How It Works

Unit price is calculated by dividing each product's total price by its quantity: unit price = price ÷ quantity. The two unit prices are then compared directly — the lower one is better value. The savings percentage shows how much cheaper the better-value option is relative to the worse one: savings % = (higher unit price − lower unit price) ÷ higher unit price × 100. For example, if Product A costs $0.008 per gram and Product B costs $0.0072 per gram, Product B is better value and the savings are (0.008 − 0.0072) ÷ 0.008 × 100 = 10%. Both products must use the same unit of measurement for the comparison to be valid — mixing grams for one product and ounces for another would produce a meaningless result since the units are not equivalent.

Examples

$3.99 for 500g vs $6.49 for 900g
Comparing two pack sizes of the same grocery product.
Result: Product B is better value — lower cost per gram despite the higher sticker price.
$1.20 for 12 items vs $1.89 for 20 items
Comparing small versus large multipack at the store.
Result: Product B is better value — lower cost per item.
$4.50 for 750ml vs $5.99 for 1000ml
Comparing two bottle sizes of the same beverage or cleaning product.
Result: Product B is better value — lower cost per ml.

Frequently Asked Questions

What units can I use?
Any unit — grams, ml, oz, litres, count, sheets, metres, or anything else. The only requirement is that both products use the same unit so the comparison is meaningful. Mixing grams for one and ounces for another will produce an invalid comparison.
Why does the unit price show four decimal places?
For small quantities like cost per gram or per ml, four decimal places are needed to show a meaningful difference between similar products. At two decimal places, products costing $0.006 vs $0.008 per gram would both round to $0.01 and appear identical.
Can I compare products with different quantities?
Yes, that is exactly what this calculator is designed for. The unit price calculation normalizes each product to a common 'per unit' cost so you can compare a small pack against a large pack directly, regardless of size difference.

Related Calculators