How this calculation works
Convert both offers to the same quantity dimension before dividing price by total content. Mass becomes kilograms, volume becomes litres and counts stay individual items. The percentage comparison treats offer A as the baseline; a negative saving means offer B is more expensive per unit.
Unit price = total offer price ÷ (quantity per pack × pack count × base-unit conversion)A worked example
A 500 g pack costing 20 has unit price 20/0.5 = 40 per kilogram. A 1 kg pack costing 36 has unit price 36 per kilogram. Offer B saves (40−36)/40 × 100 = 10% compared with A.
Good to know
Compare mass with mass, volume with volume or items with items. Pack counts must be positive whole numbers. Price is for the entire multipack, not each pack. Quality, waste, usable yield and density are not inferred; include charges and discounts consistently.
Reference: OpenStax: ratios and unit rates (opens in a new tab) ↗
A larger package can have a higher unit price
The price printed on the front of a package answers how much you pay, not how much one comparable unit costs. Divide the offer price by its full net quantity to reveal the rate. A lower shelf price can still mean a higher cost per kilogram when the package contains less product.
The multi-part ratio calculator compares proportions. Unit price adds a money numerator to a comparable quantity denominator. Keep the physical dimension unchanged during conversion: grams can become kilograms, but grams do not become millilitres unless a separately known density justifies that conversion.
Treat a multipack price as one complete offer
If a two-pack of 250 g containers costs 18 in total, enter total price 18, quantity per pack 250 g and pack count 2. Its combined content is 500 g and its unit price is 36 per kilogram. Entering 18 as though it were the price of each container would double the cost.
Compare that offer with a 1 kg bag costing 40. The larger bag costs more per kilogram even though it contains more product. The tool’s percentage uses offer A as the baseline: a 10% saving relative to 40 per kilogram corresponds to 36 per kilogram. Reversing the offers changes the percentage denominator.
Price comparison is only one purchase consideration
Use a consistent total price after discounts and necessary charges. The retail discount calculator can work out a reduced price before you enter it here. If delivery applies to a whole order, allocate it using a stated approach rather than adding the full delivery fee to every product.
A lower unit price may be less useful if the extra quantity expires or is wasted. Product concentration, edible yield, brand quality and the number of usable doses may differ even when the package weights match. The tool compares your entered measures; it does not decide whether two products are interchangeable.
A few questions, answered
Can I compare grams with kilograms?
Yes. Both are converted to kilograms. Millilitres and litres are similarly converted to litres.
Why is my saving negative?
A negative B-versus-A saving means offer B costs more per comparable unit than offer A.
What if offer A is free?
Its unit price is zero. A percentage saving relative to that zero baseline is undefined, so the tool keeps that distinction visible.