This calculator works out the price per gram of any product: you enter the total price and the total weight (in grams, or any other unit), and it returns the cost per gram. The result lets you compare two packages of different sizes and weights to see which one is genuinely better value.
Formula
The price per gram is simply the total price divided by the total weight:
Price per gram = Total price ÷ Total weight
- Total price (p) – the amount you pay for the whole package, in your local currency (e.g., dollars, euros, pounds).
- Total weight (w) – the net weight of the product, in grams. If your package lists weight in kilograms, multiply by 1000 to get grams.
- Price per gram (ppg) – the cost of one gram, in the same currency.
- Price per kilogram (ppkg) – the cost of 1000 grams, which is often easier to compare across large packages.
Worked Example
You are comparing two bags of coffee: a 500 g bag for $12.99 and a 250 g bag for $7.49. Which is cheaper per gram?
For the 500 g bag:
Price per gram = $12.99 ÷ 500 g = $0.02598 per gram
Price per kilogram = $0.02598 × 1000 = $25.98 per kg
For the 250 g bag:
Price per gram = $7.49 ÷ 250 g = $0.02996 per gram
Price per kilogram = $0.02996 × 1000 = $29.96 per kg
The 500 g bag is cheaper per gram ($0.026 vs $0.030), so it is the better value if you will use all the coffee before it goes stale.
Assumptions
- The weight is the net weight (product only, not including packaging).
- The price is the final price you pay, including any taxes or discounts.
- The comparison assumes you will actually use the entire product – buying a larger pack is only a saving if nothing is wasted.
Why Use Price per Gram?
Retailers often package the same product in different sizes, and the unit price (price per 100 g, per kg, or per litre) is not always displayed on the shelf. Even when it is, it may be in a different unit than you are used to. Calculating price per gram gives you a single, consistent number to compare any two packages, regardless of size. This is especially useful for:
- Groceries – rice, pasta, flour, nuts, dried fruit, spices.
- Bulk items – cleaning supplies, pet food, laundry detergent.
- Cosmetics and toiletries – creams, shampoos, soaps.
- Precious metals – gold and silver are quoted per gram or per troy ounce.
How to Use the Calculator
- Enter the total price of the package (e.g., $12.99).
- Enter the net weight in grams (e.g., 500). If the label says 0.5 kg, type 500.
- Read the price per gram and price per kilogram.
- Repeat for the other product and compare the two numbers – the lower one is the better deal per unit weight.
Common Mistakes and Misconceptions
Mistake 1: Using gross weight instead of net weight. The net weight is the product only, without packaging. If you use the gross weight (including the jar or box), you will underestimate the price per gram. Always check the “net weight” on the label.
Mistake 2: Mixing up grams and kilograms. A common error is comparing a 500 g bag with a 1 kg bag without converting. 1 kg = 1000 g. If you enter 1 instead of 1000, the price per gram will be 1000 times too high.
Mistake 3: Ignoring the serving size. Sometimes a product that is cheaper per gram is not actually cheaper per serving if the serving size is larger (e.g., a concentrated detergent that requires less per load). Price per gram is a good starting point, but for some products, cost per use matters more.
Misconception: “Bigger is always cheaper.” Not always. Sometimes a smaller package is on sale, or the larger package is a “premium” version. Always calculate the actual price per gram rather than assuming.
When Price per Gram Is Not Enough
For many products, price per gram is the right metric, but there are exceptions:
- Perishable goods: A large pack of fresh meat or produce may go bad before you can eat it. The effective cost per gram is higher if you throw some away.
- Concentrates: A concentrated juice or cleaner may cost more per gram but require less per use, so cost per serving is more meaningful.
- Nutritional density: For food, price per gram of protein or per calorie can be more informative than price per gram of product.
- Quality differences: A cheaper per gram product may be lower quality (e.g., chocolate with more sugar vs. higher cocoa content). Price per gram does not capture quality.
Frequently Asked Questions
How do I convert price per kg to price per gram? Divide the price per kg by 1000. For example, $10 per kg is $0.01 per gram (10 ÷ 1000 = 0.01).
What if the weight is in ounces or pounds? Convert to grams first: 1 ounce = 28.3495 g, 1 pound = 453.592 g. For example, a 16 oz (1 lb) bag is 453.6 g.
Is price per gram the same as unit price? Yes, unit price is the general term for price per standard unit (per gram, per kg, per litre). Price per gram is a specific unit price.
Why do some products show price per 100 g instead of per gram? Because the numbers are easier to read – $2.50 per 100 g is more intuitive than $0.025 per gram. To compare, just multiply the per-100 g price by 10 to get per kg, or divide by 100 to get per gram.
Does the calculator include taxes and discounts? Only if you enter the final price you actually pay. If you have a coupon or a loyalty discount, subtract that from the price before entering it.
Can I use this for gold or silver? Yes, but note that precious metals are often quoted per troy ounce (31.1035 g), not per regular ounce. Convert the weight to grams first, and use the spot price you are quoted.
Related
Formula used
in p | Total price | currency | 12.99 | 0 in w | Total weight | g | 500 | 0.001 out ppg | Price per gram | currency/g | p / w | 4 out ppkg | Price per kilogram | currency/kg | ppg * 1000 | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- ug to ppb Calculator: Convert Micrograms per Liter1.00 ppb
- Grams to Moles Chemistry: How to Convert0.2000 mol/L
- Convert ug/l to ppb Calculator
- CPP Calculator Ontario: How CPP Is Calculated162.12 $/month
- Grams to Moles to Molecules: How to Convert0.2000 mol/L
- Organic Chemistry Reaction Calculator: How It Works