Unit price

Calculate a price per kilogram, liter or item and compare two offers.

Changing modes clears your inputs and result.

The result is per kilogram for g/kg, per liter for mL/L, or per item. Example: 3 for 500 g → 6 per kg. Quantity must be strictly positive. No mass/volume conversion or additional fees.

Both dots and commas are accepted as decimal separators.

Your inputs stay in your browser.

Method and assumptions

Method version 1.0.0 · Updated

Calculate a unit price

Formula: Unit price = price / quantity in kg, L or items

The result is per kilogram for g/kg, per liter for mL/L, or per item. Example: 3 for 500 g → 6 per kg. Quantity must be strictly positive. No mass/volume conversion or additional fees.

price
Pack price
quantity
Pack quantity
unit
Quantity unit
precision
Money decimal places
Compare two offers

Formula: Compare price A / quantity A and price B / quantity B

Compare the same currency and quantity type. g and kg are compatible, as are mL and L; mass, volume and items cannot be mixed. Comparison uses exact prices before display rounding: two identical displayed prices can still have a cheaper offer.

priceA
Offer A price
quantityA
Quantity A
unitA
Unit A
priceB
Offer B price
quantityB
Quantity B
unitB
Unit B
precision
Money decimal places

All amounts use the same currency, without conversion. Choose 0, 2 or 3 decimal places for your needs. Rounded to nearest, ties up.