Everyday

Unit Price Calculator

Compare two pack sizes by price per gram, ml or piece and see which is cheaper and by how much.

By Nitin Raturi · Last reviewed

Your worksheet

How to use the Unit Price Calculator

Compare two packs of the same product by price per unit.

  1. Enter each pack’s price.
  2. Enter each pack’s quantity in the same unit.
  3. Read which pack is cheaper per unit and by how much.

Good to know

  • Compare per 100 g or per litre to make labels easier to check.

Unit price = price ÷ quantity. Use the same unit for both packs.

Pack A price (₹)

What the first pack costs.

How to fill it in

  • Enter rupees, for example 99.

Pack A quantity

How much is in the first pack: grams, ml, pieces, loads.

How to fill it in

  • Use the same unit for both packs: 1 kg is 1,000 g.

Example

₹99 for 500 g is ₹0.1980 a gram, ₹19.80 per 100 g.

Pack B price (₹)

What the second pack costs.

How to fill it in

  • Enter rupees.

Pack B quantity

How much is in the second pack, in the same unit as pack A.

How to fill it in

  • Enter a number above 0.

Example

Bigger is not always cheaper: ₹85 for 1 against ₹399 for 5 makes the single pack 6.1% cheaper per unit.

Tip: OpenStax’s detergent: $0.2342 against $0.1999 a load, so the 80-load pack wins.

Better buy

Pack B is 9.1% cheaper

Pack A costs ₹0.1980 per unit and pack B ₹0.1800 per unit. Buying 1,000 units at pack B’s rate saves ₹18.00.

Pack A per unit
₹0.1980
Pack B per unit
₹0.1800
Pack A per 100 units
₹19.80
Pack B per 100 units
₹18.00

Both quantities are in the same unit (g, ml, pieces) and the products are the same quality. A cheaper unit price only helps if you use it all.

How this calculator works

  1. Step 1Price₹ per packWhat each pack costs.
  2. Step 2Unit priceprice ÷ quantityCost of one gram, ml or piece.
  3. Step 3Comparelower winsAnd by how much.

Packs come in different sizes, so the sticker price does not tell you which is cheaper. Dividing the price by the quantity gives the unit price, which can be compared directly.

The calculator also checks equal value exactly, by cross-multiplying, so two packs with the same unit price are reported as the same.

Worked example: 500 g or 1 kg

₹99 for 500 g, or ₹180 for 1,000 g
Unit price
price ÷ quantity
  1. Pack A99 ÷ 500₹0.1980 a gram
  2. Pack B180 ÷ 1,000₹0.1800 a gram
  3. Per 100 g₹19.80 vs ₹18.00
  4. Pack B cheaper by9.1%

Read the result

  • Pack A: ₹99 for 500 g₹19.80
  • Pack B: ₹180 for 1 kg₹18.00
Price per 100 units

Bigger is not always cheaper: ₹85 for one against ₹399 for five makes the single pack 6.1% cheaper per unit.

  • Detergent per load$0.2342 vs $0.199964 loads for $14.99 against 80 for $15.99: the larger pack wins.
  • ₹10 for 3, ₹20 for 6Same valueExactly the same unit price.

Assumptions and limits

  • Same unitGrams with grams, ml with ml.
  • Same productQuality and brand matter too.
  • WasteA big pack is dearer if part is thrown away.
  • OffersEnter the price after any discount.

Price per unit is the fairest way to compare packs. Discounts and tax change the price itself.

To apply one or more discounts, use the discount calculator. The GST calculator adds or removes tax, and the unit converter puts packs into the same units.

Common mistakes

  • Mistake: Comparing 1 kg with 500 ml as if the same.

    Instead: Convert to one unit first.

  • Mistake: Assuming the family pack is cheaper.

    Instead: Work out the unit price for both.

Checking the method

A separate script compares every pair with exact fractions and cross-multiplication and reproduces OpenStax Examples 5.66 and 5.67.

Read how we test our calculators, or browse more everyday tools.

Frequently asked questions

Is ₹180 for 1 kg cheaper than ₹99 for 500 g?

Yes: ₹0.1800 a gram against ₹0.1980, 9.1% cheaper.

Is the bigger pack always cheaper?

No. ₹85 for one against ₹399 for five makes the single pack 6.1% cheaper per unit.

How do I find the unit price?

Divide the price by the quantity, using the same unit for both packs.

Which detergent is the better buy in OpenStax’s example?

The 80-load pack: $0.1999 a load against $0.2342.

What if they cost the same per unit?

It says so: ₹10 for 3 and ₹20 for 6 are the same value.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 4 Nov 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release.