To calculate calories in food, sum the energy each macronutrient contributes — 4 kcal per gram of carbohydrate, 4 kcal per gram of protein, and 9 kcal per gram of fat — using the Atwater system that appears on every nutrition label; to turn that number into a daily intake target, also estimate your Total Daily Energy Expenditure (TDEE) with the Mifflin-St Jeor equation and an activity multiplier, then subtract 500 kcal to lose weight or add 500 kcal to gain it.

Most readers searching for this are juggling two related questions at once. The first is mechanical: how does anyone know that a banana is 105 calories or that a tablespoon of olive oil is 119? The second is personal: once you know what food contains, how do you decide how much of it to eat in a day? Both halves matter, and the Calorie Calculator handles the second half — your daily target — so you can compare the food-side number against the number you should actually be consuming.

how to calculate calories in food
How to Calculate Calories in Food and Your Daily Needs

How food calories are actually measured

The "calorie" printed on a food label is shorthand for a kilocalorie — one thousand of the small-c calories that physicists use. A kilocalorie is the heat needed to raise one kilogram of water by one degree Celsius. Food scientists used to measure that heat directly by burning a dried food sample in a bomb calorimeter, but the modern shortcut is the Atwater system, which breaks every food into its macronutrients and assigns each one a fixed energy value.

MacronutrientEnergy per gramEnergy per ounce
Carbohydrate4 kcalabout 113 kcal
Protein4 kcalabout 113 kcal
Fat9 kcalabout 255 kcal
Alcohol7 kcalabout 198 kcal

Multiply the grams of each macro by its factor and you get the food's energy. A 30 g slice of bread with roughly 15 g of carbs, 2 g of protein, and 0.5 g of fat works out to 60 + 8 + 4.5, roughly 73 kcal from macros — close to the 75 to 80 kcal that labels typically print. The small gap is real: fibers, sugar alcohols, and certain proteins are digested less efficiently than the textbook factors assume, so labels round slightly in the consumer's favor.

Outside the lab, most people rely on label data, restaurant nutrition guides, or a recipe breakdown that sums the macros of every ingredient. That gives the food-side number — but it does not tell you what to do with it.

Why your daily calorie target also matters

Knowing the calories in food is half the answer. The other half is knowing what your body burns in a day, so you can compare intake to expenditure. The number that does that job is called Total Daily Energy Expenditure, or TDEE.

MetricWhat it measuresWhat it leaves out
BMR (basal metabolic rate)Calories burned at complete restMovement, exercise, digestion
TDEE (total daily energy expenditure)Calories burned across a real dayBody composition, illness, hormones

Two people with the same BMR can sit hundreds of calories apart in real life. A desk worker and a construction worker with identical resting metabolism will burn very different totals once steps, lifting, and the thermic effect of food are counted. TDEE captures that gap, which is why nutrition planning is built on it rather than on resting numbers. The Calorie Calculator produces exactly that figure plus a weight-goal target on one screen.

How to calculate your daily calorie target

  1. Choose your sex, then enter your age in years, weight in kilograms, and height in centimeters.
  2. Pick the activity level that best matches your typical week, from sedentary (little or no exercise) through extra active (hard daily training or a physical job).
  3. Read your maintenance calories, called TDEE, as soon as you finish the inputs, then flip the goal toggle to lose, maintain, or gain weight to see your daily target.

Everything runs locally in your browser, so your age, weight, and height never leave your device. The goal toggle is the most useful control: the same person at the same activity level can see three different daily targets side by side without re-entering anything.

What the math inside the calculator actually does

Under the hood the Calorie Calculator combines two well-known formulas. The first is the Mifflin-St Jeor equation, published in 1990 and widely treated as the most accurate general-population predictor of basal metabolic rate:

  • Men: BMR = 10 × weight(kg) + 6.25 × height(cm) − 5 × age(years) + 5
  • Women: BMR = 10 × weight(kg) + 6.25 × height(cm) − 5 × age(years) − 161

That resting figure is then scaled by an activity multiplier to produce TDEE. The five standard multipliers come from the historical Harris-Benedict activity factors:

Activity levelMultiplierTypical week
Sedentary1.2Little or no exercise
Lightly active1.3751–3 days per week
Moderately active1.553–5 days per week
Very active1.7256–7 days per week
Extra active1.9Hard daily training or a physical job

For example, a 30-year-old man who is 180 cm tall, weighs 80 kg, and is moderately active gets a BMR of 10·80 + 6.25·180 − 5·30 + 5 = 800 + 1125 − 150 + 5 = 1,780 kcal. Multiplying by 1.55 gives a maintenance TDEE of 2,759 kcal. Switching to "lose weight" subtracts 500 kcal for a daily target of 2,259 kcal; switching to "gain weight" adds 500 kcal for 3,259 kcal.

That 500 kcal step comes from the long-standing convention that one pound of body fat stores roughly 3,500 kcal of energy, so a daily change of about 500 kcal lines up with about 0.45 kg (1 lb) per week. As a safety net, the calculator never lets a target drop below 1,000 kcal per day, because very low intakes should only be attempted under professional supervision. The companion guide How to Calculate Calorie Intake: BMR, TDEE & Target walks through the same numbers in more depth.

Why activity level can swing the answer by hundreds of calories

The activity multiplier is the single largest source of variation in the final number for most healthy adults, and it is also the one most people estimate poorly. A person who picks "lightly active" but actually trains five times a week will under-report their true TDEE; a person who picks "moderately active" for a desk job plus a single Saturday hike will over-report it. Because these multipliers are population averages, treat the calculator's output as a well-grounded starting point rather than a final verdict: track your weight for two to three weeks and nudge intake up or down if the trend does not match your goal.

When to override the calculator's number

The Mifflin-St Jeor equation and the Atwater factors are population averages, and they assume an adult without unusual metabolic circumstances. The Calorie Calculator does not account for body composition, pregnancy, medical conditions, medications, or individual metabolic variation, and it is not medical or nutritional advice. If any of those situations apply — pregnancy, an endocrine condition, a recent surgery, competitive sport — talk to a qualified doctor or registered dietitian before changing your intake. For the general case, however, the combination of an Atwater-based food count and a Mifflin-St Jeor TDEE target remains the standard, transparent way to translate calories in food into a daily plan.