molecalculator

Moles & Molar Mass

Dollar per Gram Calculator: Convert Any Price

Calculator No. 01-9038 · Updated · Formula and assumptions shown below

Price per gram 0.2500 USD/g
Price per kilogram
250.00 USD/kg
= Price per gram × 1000
Total price
25 USD
Set in the form below
Weight
100 g
Set in the form below
You enter
Total price (USD), Weight (g)
You get
Price per gram (USD/g), Price per kilogram (USD/kg)
Rounding
4 dp · 2 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

This calculator converts a total price and weight into a dollar-per-gram figure, and also shows the cost per kilogram for easy comparison. You enter the price in dollars and the weight in grams (or kilograms, ounces, or pounds), and the calculator returns the price per gram and the price per kilogram.

Formula

The core formula is simple division:

Price per gram = Total price ÷ Weight in grams

If your weight is in kilograms, ounces, or pounds, convert it to grams first:

  • 1 kg = 1000 g
  • 1 oz = 28.3495 g
  • 1 lb = 453.592 g

The calculator also shows price per kilogram (ppg × 1000), which is the standard unit for bulk commodities like spices, metals, or chemicals.

Worked Example

Using the defaults: price = $25.00, weight = 100 g.

Price per gram = 25 ÷ 100 = $0.2500/g

Price per kilogram = 0.2500 × 1000 = $250.00/kg

So a 100-gram bag that costs $25 is equivalent to buying at $250 per kilogram. This matches the calculator output.

Assumptions

  • Price is in US dollars (you can use any currency; the math is the same).
  • Weight is the net weight of the product, not including packaging.
  • No discounts or taxes are included; you enter the final price you actually pay.

Why Use Price per Gram?

Price per gram is the fairest way to compare products of different sizes. A 50-gram jar at $8 looks cheaper than a 120-gram jar at $18, but the per-gram price tells the truth: $0.16/g vs. $0.15/g – the larger jar is actually the better deal.

This metric is common for:

  • Spices, herbs, and coffee
  • Precious metals (gold, silver)
  • Bulk chemicals and reagents
  • Skincare and cosmetics
  • Protein powders and supplements

How to Use the Calculator

  1. Enter the total price you paid (in dollars).
  2. Enter the weight in grams. If your label shows kilograms, multiply by 1000; if ounces, multiply by 28.3495; if pounds, multiply by 453.592.
  3. Press Calculate. The first result is the price per gram; the second is the price per kilogram.

For example, a 2.5 kg bag of flour costs $4.50. Convert weight to grams: 2.5 × 1000 = 2500 g. Price per gram = 4.50 ÷ 2500 = $0.0018/g. Price per kg = $1.80/kg.

Common Mistakes and Misconceptions

Mistake 1: Forgetting to convert units. If you enter weight in kilograms but treat it as grams, your result will be off by a factor of 1000. Always convert to grams first.

Mistake 2: Using gross weight instead of net weight. The weight on the package often includes the container. For accurate per-gram cost, use the net weight (the product only), which is usually listed on the label.

Mistake 3: Confusing price per gram with price per kilogram. Price per kilogram is 1000 times the price per gram. A $0.50/g item costs $500/kg – that’s expensive for most foods but cheap for gold.

Misconception: “Buying in bulk is always cheaper.” Not necessarily. Some stores price smaller packages at a lower per-gram rate to attract buyers who can’t afford the larger size. Always check the unit price label, which many supermarkets print on the shelf tag.

Real-World Examples

Here are a few typical comparisons:

  • Coffee: A 340 g bag at $12.99 → $0.0382/g → $38.20/kg. A 1 kg bag at $32.00 → $0.032/g → $32.00/kg. The larger bag is cheaper per gram.
  • Gold: Spot price around $60 per gram (varies daily). A 1 oz coin (31.1 g) at $1,900 → $61.09/g. A 10 g bar at $620 → $62.00/g. The coin is slightly better per gram.
  • Protein powder: A 2 lb tub (907 g) at $25 → $0.0276/g → $27.56/kg. A 5 lb tub (2268 g) at $55 → $0.0243/g → $24.25/kg. The bigger tub wins.

Limitations of This Calculator

This calculator only handles the arithmetic of unit pricing. It does not account for:

  • Shipping costs – if you buy online, add shipping to the total price before calculating.
  • Quality differences – a cheaper per-gram product may be lower quality or less pure.
  • Waste – if you discard part of the product (e.g., bones in meat), the usable cost per gram is higher.
  • Currency – the calculator assumes USD, but the math works for any currency; just keep the same currency in price and result.

For precious metals, the spot price changes constantly, so always use the current market price, not a historical one.

Frequently Asked Questions

How do I convert price per ounce to price per gram?
Divide the price per ounce by 28.3495. For example, $10/oz ÷ 28.3495 = $0.3527/g.

Is price per gram the same as unit price?
Unit price is usually expressed per 100 g or per kg on supermarket labels. Price per gram is the same concept but scaled down. To get per 100 g, multiply per gram by 100.

Why do some products list price per 100 g instead of per gram?
Because per-gram figures are often tiny (e.g., $0.003/g) and hard to compare quickly. Per 100 g gives a more readable number. To convert per 100 g to per gram, divide by 100.

Can I use this for gold and silver?
Yes, but remember that the price per gram for precious metals is based on the spot price plus a premium. The calculator shows what you actually paid per gram, which may be higher than the spot price.

What if I buy in pounds or ounces?
Convert to grams first using the factors above. For example, 1 pound = 453.592 g. Then divide the total price by that number.

Does this calculator include tax?
No, you enter the total price you paid, including any tax or shipping, so the result reflects your true cost per gram.

Related

Formula used
in price | Total price | USD | 25 | 0
in w | Weight | g | 100 | 0.000001
out ppg | Price per gram | USD/g | price / w | 4
out ppk | Price per kilogram | USD/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

The whole Moles & Molar Mass section →