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.