How to use this calculator
- Enter your own values in the labeled fields. Check the units and assumptions before comparing results. Only the fields needed for your selected calculation mode are shown.
- Your answer updates automatically. Review the calculation steps to see exactly how it was calculated.
- Copy, share, save, or download your result. Saved inputs stay on this device.
How the calculation works
Convert both quantities to kilograms, liters or item counts, then divide total package price by that quantity. Use item count for multipacks and leave it at one for ordinary packages. Comparisons require the same quantity kind: grams cannot be compared directly with milliliters without density. Quality and wastage can still affect value.
A worked example
A $6 package of 500 g costs $12/kg. A $10 package of 1 kg costs $10/kg, so package B has the lower unit price.
Reading your result
Use the main result together with its units and supporting figures. Display values are rounded; calculations keep their underlying precision. A change in inputs or assumptions can change the answer. Compare the step-by-step working with your intended use before relying on an estimate.
Frequently asked questions
Can I compare grams with pounds?
Yes. Both are converted to kilograms.
Can I compare mass and liquid volume?
No. Select matching quantity kinds.
Sources & methodology
NIST: international unit conversion factors ↗
Formula review: October 24, 2026. Read our methodology.