Ingredient Cost Calculator
Enter a package price and size, plus the amount used, to find the ingredient cost.
What this calculator prices
This tool converts a grocery price tag into a real recipe cost. Enter the package price ($5 at the default), the package size in grams (500 g) and the amount the recipe actually uses (100 g). It returns two numbers: the cost per gram ($0.01 at the defaults) and the cost of the amount used ($1.00). Everything else on this page builds from those two outputs.
The formula behind the numbers
The first step divides price by size to get a unit cost. Dividing $5 by 500 g gives $0.01 per gram, which is the only number you need to remember for that package. The second step multiplies the unit cost by the amount used: $0.01 × 100 g = $1.00. The arithmetic is linear, so doubling the amount used exactly doubles the cost — a 200 g scoop of the same package costs $2.00.
The per-gram figure also lets you compare packages of different sizes on equal footing. A $5 / 500 g package and an $8 / 1,000 g package cannot be compared by shelf price alone; converting both to cost per gram gives $0.01 versus $0.008, which shows the larger package is 20% cheaper per gram before you account for waste.
Worked example at the defaults
Step by step with the defaults: divide $5 by 500 g to get $0.01 per gram, then multiply $0.01 by 100 g to get $1.00. If the recipe used the whole package, the cost would simply be the $5 price tag; using 100 g means one fifth of the package, and indeed $1.00 is one fifth of $5. That cross-check works for any fraction — use half the package and you pay half the price.
Unit costs for common package sizes
| Package price | Package size | Cost per gram | 100 g used |
|---|---|---|---|
| $2 | 1,000 g | $0.002 | $0.20 |
| $5 | 500 g | $0.01 | $1.00 |
| $8 | 250 g | $0.032 | $3.20 |
| $12 | 200 g | $0.06 | $6.00 |
| $4 | 100 g | $0.04 | $4.00 |
Every row uses the same formula as the calculator, so you can verify any cell by hand: price ÷ size, then × 100. Notice how a small package at a modest shelf price can carry a heavy unit cost — the $4 / 100 g package costs four times more per gram than the $5 / 500 g one.
What moves the unit price
- Package format: grated, shredded or pre-cut versions often cost 30–50% more per gram than blocks
- Brand tier: store brands commonly run 20–40% below name brands on a per-gram basis
- Seasonality: fresh produce prices can swing ±50% across the year
- Bulk packaging: larger sizes are usually cheaper per gram, but not always
When bulk is not cheaper
The cost-per-gram figure is only a saving if you use everything you buy. A 1 kg bag of specialty flour at $0.004 per gram loses to a 500 g bag at $0.006 per gram if half of the large bag goes stale unused: you effectively paid $2 for 500 g of usable flour, which is $0.004 × 2 = $0.008 per usable gram. Price per gram of what you will actually use, not per gram printed on the label.
Common costing mistakes
Three errors show up repeatedly. First, mixing units: a package sized in ounces must be converted to grams before comparing (1 oz ≈ 28.35 g), otherwise the unit cost is wrong by a factor of about 28. Second, forgetting that the calculator prices only the ingredient itself — oil for the pan, salt and seasonings are separate line items even when they feel too small to count. Third, costing recipes at a sale price: if an ingredient is discounted only twice a year, cost your recipes at the regular price and treat the discount as a bonus.
Units in this calculator
Both the package size and the amount used are in grams, so the ratio holds as long as they match. For fluids such as milk or oil, convert millilitres to grams first using density: water and milk are close to 1 g per ml, while oil is about 0.92 g per ml, so 100 ml of oil weighs roughly 92 g.
Building a full recipe cost from line items
Run each ingredient through this calculator separately and add the results to get the whole recipe cost. With the defaults here, one ingredient contributes $1.00; a ten-ingredient recipe might total $6–$12 depending on whether cheese, meat or nuts dominate. Divide that total by the number of servings to get a per-plate cost, which is the number that matters when pricing a menu item or deciding whether home cooking genuinely saves money.
Where the money actually goes
Recipe costs concentrate in a few ingredients. Protein and cheese typically account for 50–70% of a savory recipe’s total, while flour, rice, onions and water-based items contribute pennies. Cost the three or four most expensive ingredients precisely and estimate the rest — the error stays under roughly 10% while the work drops by two thirds.
Frequently asked questions
How do I calculate the cost of an ingredient?
Divide the package price by its size to get a per-gram cost, then multiply by the amount used. For a $5 / 500 g package, that is $0.01 per gram, so 100 g of it costs $1.00.
How much does 100 g of a $5 / 500 g package cost?
Exactly $1.00, because 100 g is one fifth of the 500 g package and one fifth of $5 is $1.00.
Can I use ounces or millilitres?
Yes, as long as the package size and the amount used are in the same unit. If one is in ounces, convert first: 1 oz ≈ 28.35 g. For fluids, 1 ml of water or milk ≈ 1 g, while oil is about 0.92 g per ml.
Does this give the total recipe cost?
No, it prices one ingredient. Run each ingredient through the calculator and add the results; a typical ten-ingredient savory recipe totals $6–$12.
Is a bigger package always cheaper per gram?
Usually but not always. An $8 / 1,000 g package at $0.008 per gram beats a $5 / 500 g package at $0.01 per gram only if you finish it before it spoils.
Should I cost recipes at sale prices?
No. Cost recipes at the regular shelf price so your per-plate figures hold all year, and treat occasional discounts as margin rather than planning on them.
How do I price a recipe per serving?
Cost every ingredient, add the totals, then divide by servings. A $10 batch split into 4 containers costs $2.50 per serving.
What does a $0.01 per gram ingredient mean in practice?
A typical 100 g portion costs $1.00, a 50 g portion $0.50, and a full 500 g package $5.00. Small changes in the unit cost barely register on cheap items but matter a lot on cheese, meat and nuts.
Method and sources
- Unit-price identity: cost per unit = price / size; ingredient cost = unit cost x amount used.