This calculator converts the weight of a food (in grams) into calories using the energy density you provide, typically from a nutrition label or food database. You enter the grams and the calories per 100 grams (or per serving), and it returns the total calories in that portion. The result is an estimate, because real foods vary in composition, but it matches the standard method used on packaged food labels.
Formula
The calculator uses the direct proportion:
Calories = (grams of food × calories per 100 g) ÷ 100
Where:
- grams of food – the weight of your portion, in grams (g)
- calories per 100 g – the energy density of the food, in kilocalories (kcal) per 100 grams
- Calories – the energy in your portion, in kilocalories (kcal)
On food labels, “calories” actually mean kilocalories (kcal). One kcal = 1,000 small calories, but in everyday language we just say “calories.”
Worked Example
Using the default values in the calculator: you have 100 grams of a food that provides 150 kcal per 100 g.
- Write down the formula: Calories = (grams × calories per 100 g) ÷ 100
- Plug in the numbers: Calories = (100 × 150) ÷ 100
- Multiply: 100 × 150 = 15,000
- Divide by 100: 15,000 ÷ 100 = 150
So 100 g of that food gives you 150 kcal. If you ate 250 g, the calculator would give (250 × 150) ÷ 100 = 375 kcal.
Why Convert Grams to Calories?
Most nutrition labels list calories per serving and also per 100 g (or per 100 ml for liquids). If you weigh your food, you often need to convert that weight into calories to track your intake. This is common for:
- Counting calories for weight management
- Logging meals in a food diary app
- Comparing two products with different serving sizes
- Calculating the energy content of a recipe you made from scratch
Weighing food in grams is more accurate than using cups or spoons because volume can vary with how you chop, pack, or scoop the food. A cup of flour can weigh anywhere from 120 g to 150 g depending on how it’s scooped, but 100 g is always 100 g.
How to Find the Calories per 100 g
You need the energy density of the food. The most reliable sources are:
- Nutrition facts label – Look for “calories” and check if it’s per serving or per 100 g. In many countries, the label shows both.
- USDA FoodData Central – A free database with nutrition info for thousands of foods, including generic items like “chicken breast, raw” or “apple, with skin.”
- Packaged food websites – Many brands list full nutrition info online.
- Kitchen scales with apps – Some scales have built-in databases, but they can be outdated.
If you only have the calories per serving and the serving size in grams, you can calculate per 100 g first: (calories per serving ÷ serving size in g) × 100. For example, a serving is 50 g and has 75 kcal: (75 ÷ 50) × 100 = 150 kcal per 100 g.
Common Mistakes and How to Avoid Them
Getting the right number depends on using the correct energy density and weight. Watch out for these pitfalls:
- Using per-serving calories instead of per-100 g. If a label says “150 calories per serving” and a serving is 40 g, you must use 150 per 40 g, not per 100 g. Convert first.
- Weighing cooked vs. raw food. Cooking changes weight because water is lost or absorbed. The label usually specifies “raw” or “cooked.” Use the matching state.
- Ignoring edible parts. For a banana, you weigh the flesh, not the peel. For a chicken leg, you weigh the meat, not the bone.
- Rounding too early. If you round 37.5 kcal to 38 kcal for each of 10 items, you’ll be off by 5 kcal. Keep one decimal place until the final answer.
- Confusing kcal with kJ. Some labels use kilojoules (kJ). To convert kJ to kcal, divide by 4.184. For example, 1,000 kJ ÷ 4.184 ≈ 239 kcal.
Limits of the Gram-to-Calorie Calculation
The calculator assumes the food is exactly the same as the value you enter for calories per 100 g. In reality, natural foods vary:
- Two apples of the same weight can differ in sugar content by 10–20%.
- Meat can have more or less fat depending on the cut and the animal.
- Cooked foods vary with added oil, butter, or sauces.
For packaged foods, the label is legally required to be reasonably accurate, but it’s still an average. Also, the calorie value on labels is calculated using the Atwater system, which assigns standard energy values to protein, fat, and carbohydrates. That system doesn’t account for how well your body digests a specific food. For example, the calories from a high-fiber food may be slightly overestimated because fiber isn’t fully digested. For most people, the difference is small enough not to matter for weight tracking.
If you are tracking calories for medical reasons, consult a dietitian or doctor. This calculator is a general tool, not medical advice.
Alternatives to Weighing in Grams
If you don’t have a scale, you can still estimate calories using:
- Measuring cups and spoons – Use the label’s serving size (e.g., 1 cup, 2 tbsp). Less accurate than weighing, but convenient.
- Portion guides – A palm of meat, a fist of carbs, a thumb of fat. These are rough visual estimates.
- Calorie counting apps – Many apps let you log food by serving size or by grams. They often have a large database, but entries can be user-submitted and inaccurate.
- Food labels on prepackaged items – If you eat the whole package, just read the total calories on the label.
Weighing in grams is the most precise method for home use. A digital kitchen scale costs little and lasts for years.
Frequently Asked Questions
How many calories are in 100 grams of chicken breast?
It depends on whether it’s raw or cooked and if the skin is on. A typical value for raw, skinless chicken breast is about 120 kcal per 100 g. Cooked (roasted, no skin) it’s about 165 kcal per 100 g because water is lost and the same nutrients are concentrated in less weight.
Do I weigh food raw or cooked for calories?
Use the same state as the nutrition information you’re referencing. If the label says “raw,” weigh it raw. If it says “cooked,” weigh it cooked. Mixing them up is a common source of error.
Why do some labels show calories per 100 g and others per serving?
Different countries have different labeling regulations. The European Union requires per 100 g/ml, while the US uses per serving, but many US labels also show per 100 g. Always check which one you’re using.
Is a calorie from a gram of fat different from a calorie from a gram of protein?
Yes, in terms of energy density. Fat provides 9 kcal per gram, while protein and carbohydrates provide 4 kcal per gram. Alcohol provides 7 kcal per gram. That’s why high-fat foods are more calorie-dense.
Can I use this calculator for liquids?
Yes, but for liquids you typically use milliliters (ml) rather than grams. If the label gives calories per 100 ml, you can enter the ml as “grams” and the same calculation works, because 1 ml of water weighs 1 g. For other liquids, the density is close enough for most purposes.
How accurate are calorie counts on food labels?
Labels are allowed a 20% margin of error in the US, and actual values can vary. For whole foods, the variation is larger. So treat the result as an estimate, not a precise number.
Related
Formula used
in g | Grams of food | g | 100 | 0 | 10000 in c | Calories per 100 g | kcal | 150 | 0 | 900 out cal | Calories in your portion | kcal | g * c / 100 | 0
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, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Measuring Light Speed & Wavelength: How It Works
- Draco Race Blox Fruits: How to Get It
- Forza Horizon 6: Unlock Legend Island & Earn Horizon Legend
- Clean Hair Dryer Filter: Improve Airflow
- How to Automatically Create a Table of Contents
- No Loss Persistence: Data Protection at Every Boundary