Unit Price Calculator
Compare two products by their true price per unit to see which is the better deal.
- 1
Product B — price per unit
5 ÷ 900 = 0.0056 - 2
Product A — price per unit
3 ÷ 500 = 0.0060
Formula
How this is calculated
For each product you enter a total price and a quantity. The calculator divides the price by the quantity to get the price per single unit: unit price = price ÷ quantity. It does this for both products, then compares the two results — the lower price per unit is flagged as the better value. If the two unit prices are exactly equal, both are marked as costing the same; if an input is missing, zero or negative, that product is left out of the comparison.
The key assumption is that both quantities are expressed in the same unit (grams, millilitres, sheets, or individual items) and in the same currency. The tool is unit-agnostic: it never converts between units, so 500 g versus 0.9 kg would be compared incorrectly — you must normalise to one unit yourself. Quantities of zero are rejected to avoid dividing by zero.
Results are shown to four decimal places for precision on small per-unit costs. Note that unit price alone ignores real-world factors like spoilage, storage limits, or only needing a small amount — a lower price per unit only saves money if you actually use what you buy.
About this calculator
Stores often package the same product in different sizes, making it hard to tell which is actually cheaper. This calculator divides each product's price by its quantity to give the price per unit, then highlights the better value. Always enter both quantities in the same unit — grams, millilitres, sheets or individual items.
The lower price per unit is the better deal for that quantity, but remember to factor in whether you will actually use the larger pack before it spoils or expires. A lower unit price on a bulk size is only a saving if nothing goes to waste.
Frequently asked questions
Divide the total price by the quantity. The product with the smaller result costs less per gram, millilitre or item.
Usually, but not always — compare the unit prices. And only buy bulk if you will use it before it goes off.
Any unit works as long as both products use the same one, such as grams, millilitres or number of items.
Also known as
TG we-Calculate Editorial Team. (2026). Unit Price Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/unit-price-calculator
TG we-Calculate Editorial Team. "Unit Price Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/unit-price-calculator.
TG we-Calculate Editorial Team, "Unit Price Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/unit-price-calculator
@misc{wecalculate_unit_price_calculator, title = {Unit Price Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/unit-price-calculator}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
