HomeCalculators & ConvertersCalorie Calculator: Maintenance, Deficit, Burn | StatsUnlock

Calorie Calculator: Maintenance, Deficit, Burn | StatsUnlock

Calorie Calculator

Free calorie calculator for maintenance, weight loss, lean bulk and body recomposition, with calories burned walking, by steps, on an incline treadmill, StairMaster, rowing machine, bike or by heart rate. Also converts macros and grams to calories, totals homemade recipes and estimates calories for pregnancy, breastfeeding and children.

Maintenance & TDEECalorie DeficitBulk & RecompCalories BurnedMacros to CaloriesRecipesKids

By the StatsUnlock Team · Last updated: · Formulas: Mifflin-St Jeor (1990), 2011 Compendium METs, ACSM, Keytel (2005), IOM (2005)

🧮 1. Calorie Calculator

Inputs

Adults 18 to 100. Under 18? Use Kids & Teens.
Children and teens, 3 to 18 years.
Without shoes.
Morning weight, light clothing.
⚙ Advanced: formula, body fat, target weight
Gives an estimated time to reach it.
0 for flat. Most treadmills go up to 12 to 15%.
From a chest strap or watch. Most accurate between 90 and 150 bpm.
Use kcal per 100 g from the label, in the same state you weigh it (raw or cooked).

Your daily calories

___kcal/day
Press Calculate
Maintenance calories
___
Calculation
BMR (Mifflin-St Jeor) × activity = TDEE; TDEE ± goal = target
___

Calculate first, then download your result as a plain text file.

📊 2. Your Calorie Results and Calorie Charts

Enter your details in the calorie calculator above, then press Calculate. Your calories, macros, charts and downloads will appear here. The calorie charts below are ready now.

Calorie Charts: How Many Calories Do You Need and Burn?

These reference tables apply to everyone. After you calculate in Daily Calories mode, the green table switches to your own numbers and highlights your goal.

Table 2.1 Daily calories by goal (example: man, 30, 70 kg, 175 cm, moderately active)

GoalCalories a dayvs maintenanceWeekly changeProtein
Lose 1 kg (2.2 lb) a week1,500 kcal (floor)-1,056-0.96 kg126 g
Lose 0.75 kg (1.65 lb) a week1,731 kcal-825-0.75 kg126 g
Lose 0.5 kg (1.1 lb) a week2,006 kcal-550-0.50 kg112 g
Lose 0.25 kg (0.55 lb) a week2,281 kcal-275-0.25 kg112 g
Maintain weight2,556 kcal+0+0.00 kg84 g
Body recomposition (lose fat, build muscle)2,300 kcal-256-0.23 kg140 g
Lean bulk (slow muscle gain)2,811 kcal+256+0.23 kg126 g
Bulk (faster gain)3,067 kcal+511+0.46 kg112 g

Mifflin-St Jeor BMR 1,649 kcal × 1.55 = maintenance 2,556 kcal. Weekly change uses 7,700 kcal per kg. What to conclude: a 0.5 kg-a-week loss means about 2,000 kcal a day for this man, not a crash diet.

Table 2.2 Estimated calories needed per day by age, sex and activity (adults)

AgeWomen: not activeWomen: moderately activeWomen: activeMen: not activeMen: moderately activeMen: active
19 to 301,800 to 2,0002,000 to 2,2002,4002,400 to 2,6002,600 to 2,8003,000
31 to 501,8002,0002,2002,200 to 2,4002,400 to 2,6002,800 to 3,000
51 and older1,6001,8002,000 to 2,2002,000 to 2,2002,200 to 2,4002,400 to 2,800

Source: Dietary Guidelines for Americans, 2020 to 2025 (USDA and HHS), as of 2026. Estimates for average-sized adults and not for pregnancy or breastfeeding. What to conclude: most adults need 1,600 to 3,000 kcal a day; use the calculator for your own size.

Table 2.3 Calories burned in 30 minutes by activity and body weight

ActivityMETs55 kg (121 lb)70 kg (154 lb)85 kg (187 lb)100 kg (220 lb)
Walking, 3.0 mph3.5101129156184
Walking, 3.5 mph (brisk)4.3124158192226
Walking, 4.0 mph5.0144184223263
Hiking6.0173221268315
Running, 6 mph9.8283360437515
Running, 8 mph11.8341434527620
StairMaster9.0260331402473
Rowing machine, moderate7.0202257312368
Rowing machine, vigorous8.5245312379446
Exercise bike, moderate6.8196250303357
Exercise bike, vigorous8.8254323393462
Elliptical / cross trainer5.0144184223263
Swimming, freestyle slow5.8167213259305
Swimming, freestyle fast9.8283360437515
HIIT / circuit training8.0231294357420
Push-ups and calisthenics, vigorous8.0231294357420
Weight lifting, vigorous6.0173221268315
Jump rope11.8341434527620
Yoga, Hatha2.57292112131

Gross calories from MET × 3.5 × kg ÷ 200 × 30, using the 2011 Compendium of Physical Activities. What to conclude: StairMaster, running and jump rope burn the most per minute; a heavier person burns more for the same activity.

Table 2.4 Incline treadmill calories: 30 minutes at 3.0 mph (4.8 km/h)

Incline55 kg70 kg85 kg100 kg
0%95121147173
2%119152184217
5%155197240282
8%191243295347
10%215273332390
12%239304369434
15%275349424499

ACSM walking equation, gross calories. What to conclude: going from flat to 12% incline more than doubles the calories burned at the same speed.

Table 2.5 Calories burned by steps (3 mph pace, height 170 cm)

StepsDistance55 kg70 kg85 kg100 kg
1,0000.7 km (0.4 mi)28354351
2,0001.4 km (0.9 mi)567186101
5,0003.5 km (2.2 mi)139177215253
7,5005.3 km (3.3 mi)209266323380
10,0007.1 km (4.4 mi)278354430506
15,00010.6 km (6.6 mi)418531645759

Stride 41.5% of height (70.6 cm); ACSM walking equation. Taller people cover more distance per step and burn more. What to conclude: 10,000 steps burns roughly 280 to 500 kcal depending on body weight.

Table 2.6 Calories per gram of each macronutrient

Nutrientkcal per gram10 g gives100 g gives
Protein440 kcal400 kcal
Carbohydrate440 kcal400 kcal
Fat990 kcal900 kcal
Alcohol770 kcal700 kcal
Fibre (if listed separately)about 220 kcal200 kcal

Atwater general factors used on food labels (Southgate & Durnin, 1970). What to conclude: fat carries more than twice the calories per gram of protein or carbohydrate.

Table 2.7 Extra calories for pregnancy and breastfeeding

StageExtra calories a dayExample: if maintenance is 2,000 kcal
Pregnancy, 1st trimester+02,000 kcal
Pregnancy, 2nd trimester+3402,340 kcal
Pregnancy, 3rd trimester+4522,452 kcal
Breastfeeding, 0 to 6 months+3302,330 kcal
Breastfeeding, 7 to 12 months+4002,400 kcal

Institute of Medicine estimates as reviewed by Butte & King (2005). Breastfeeding values allow for some fat stored in pregnancy being used for milk. What to conclude: pregnancy needs only a modest extra amount, and mostly in the second half.

Table 2.8 Calorie deficit and surplus by goal

GoalDaily changeWeekly changeProtein per kg
Lose 1 kg a week−1,100 kcal−1 kg (2.2 lb)1.8 g
Lose 0.5 kg a week−550 kcal−0.5 kg (1.1 lb)1.6 g
Lose 0.25 kg a week−275 kcal−0.25 kg (0.55 lb)1.6 g
Maintain001.2 g
Body recomposition−10% of maintenanceabout 02.0 g
Lean bulk+10% of maintenanceabout +0.25 kg1.8 g
Bulk+20% of maintenanceabout +0.5 kg1.6 g

Based on 7,700 kcal per kg of body weight. In practice, weight loss slows over time as the body adapts (Hall et al., 2011). What to conclude: a 500 kcal daily deficit is the classic starting point for steady, sustainable loss.

⚡ Quick Answer: How Do You Calculate Your Calories?

A calorie calculator multiplies your basal metabolic rate (BMR) by an activity factor to estimate the calories you burn each day.

BMR = 10W + 6.25H − 5A + 5 (men) or − 161 (women)

A 30-year-old man, 70 kg and 175 cm: BMR 1,649 × 1.55 = 2,556 kcal to maintain weight.

Rule of thumb: eat about 500 kcal less than maintenance to lose roughly 0.5 kg (1 lb) a week.

Key Takeaways

  • A calorie calculator estimates maintenance calories as BMR × activity, using the Mifflin-St Jeor equation by default.
  • A deficit of about 500 kcal a day loses roughly 0.5 kg (1 lb) a week; this tool never goes below 1,200 kcal for women or 1,500 kcal for men.
  • A lean bulk is about 10% above maintenance; body recomposition is about 10% below with 2.0 g protein per kg.
  • Walking burns about 3.5 to 5 METs; 10,000 steps burn roughly 365 kcal for a 70 kg, 175 cm adult.
  • Breastfeeding adds about 330 to 400 kcal a day; pregnancy adds 0, 340 and 452 kcal by trimester.
  • Protein and carbs have 4 kcal per gram, fat 9 and alcohol 7.

Reviewed for accuracy against peer-reviewed sources. Last updated: .

📚 3. What Is a Calorie Calculator?

A calorie calculator estimates how much energy your body uses in a day, so you know how much to eat to lose, keep or gain weight. A calorie (kcal) is a unit of energy: the amount of heat needed to warm 1 litre of water by 1°C.

Your daily total, called TDEE (total daily energy expenditure), has three parts. The biggest is your basal metabolic rate (BMR), the energy used to keep you alive at rest, usually 60 to 70% of the total. Next is physical activity, from walking to training, which varies the most between people. The smallest is the thermic effect of food, about 10%, used to digest what you eat (Westerterp, 2013).

A worked one-liner: a 30-year-old man who weighs 70 kg and is 175 cm tall has a BMR of 10×70 + 6.25×175 − 5×30 + 5 = 1,649 kcal. Moderately active, his maintenance is 1,649 × 1.55 = 2,556 kcal a day.

BMR 1,649 kcal (about 65%) Activityabout 25% 10% Total daily energy expenditure (TDEE) ≈ 2,556 kcal Orange = thermic effect of food (digestion). Example: man, 30 years, 70 kg, 175 cm, moderately active.
Where your daily calories go: BMR, activity and digestion.

Calorie calculator vs other tools

ToolWhat it tells youBest for
Calorie (TDEE) calculatorCalories you burn and should eat per dayWeight loss, maintenance, bulking
BMR calculatorCalories at complete rest onlyUnderstanding your baseline
Calories burned calculatorEnergy used by one activityWalking, steps, treadmill, gym sessions
Macro calculatorHow to split calories into protein, carbs and fatMeal planning, gym goals
Recipe calorie calculatorCalories per serving of homemade foodCooking, Indian food, smoothies, salads

What to conclude: this page combines all five in one calorie calculator, so the numbers stay consistent from your daily target to each workout and meal.

🔍 4. What Does Your Calorie Result Mean?

4.1 Your number in plain words

___ Run the calculator above to fill this in.

4.2 What it means for your weight

___ Run the calculator above to fill this in.

4.3 BMR, TDEE and maintenance explained

BMR is what you burn lying still all day. TDEE adds everything you do. Maintenance calories are the same as TDEE: eat this much and your weight stays steady. A calorie deficit means eating below maintenance; a surplus means eating above it. Your body uses stored energy to cover a deficit and stores extra energy from a surplus.

4.4 Why different formulas give different numbers

___ Run the calculator above to fill this in.

4.5 Your macros and food

___ Run the calculator above to fill this in.

4.6 Why the calculator can be wrong for you

Every formula predicts the average person. About 1 in 5 people burn 10% more or less than predicted. Muscle, genetics, sleep, hormones, medicines and how active you really are all shift the number. Most people also overestimate their activity level. If unsure, choose one level lower.

4.7 What to do next

___ Run the calculator above to fill this in.

4.8 Common mistakes this calorie calculator prevents

  • Crash diets. Targets never drop below 1,200 kcal (women), 1,500 kcal (men) or 1,800 kcal while breastfeeding, and loss is capped at 1 kg a week.
  • Dieting in pregnancy. Weight-loss goals are switched off when you choose a pregnancy stage.
  • Counting resting calories twice. Calories burned show both gross and net, so you do not eat back calories you would have burned anyway.
  • Adult rules for children. The Kids & Teens tab uses child equations that include growth.
  • Mixing units. Height, weight and speed convert automatically, so 175 cm never becomes 175 inches.
  • Raw vs cooked confusion. The recipe tool reminds you to use calorie values for the same state you weigh.

4.9 What the StatsUnlock team recommends

Treat the first number as a test, not a rule. Eat at your target for 2 to 3 weeks and track your morning weight every day. Average each week. If the weekly average moves at the speed you planned, keep going. If not, change intake by 100 to 200 kcal. After a month you will know your real maintenance to within about 100 kcal, which is more accurate than any calorie calculator can be on day one.

📝 5. How to Use Your Calorie Calculator Result

The calorie calculator builds five ready-made notes from your numbers. Copy the one you need.

1. Plain summary to save or share

___ Run the calculator above to fill this in.

2. Questions to ask your doctor or dietitian

___ Run the calculator above to fill this in.

3. Plan

___ Run the calculator above to fill this in.

4. Tracking log

___ Run the calculator above to fill this in.

5. Formal wording for a report

___ Run the calculator above to fill this in.

∑ 6. Calorie Formulas Used

①
BMR, Mifflin-St Jeor (default)
BMR = 10W + 6.25H − 5A + 5 (men)  ·  − 161 (women)
WWeight in kg
HHeight in cm
AAge in years
Example700 + 1,093.75 − 150 + 5 = 1,648.75 kcal
SourceMifflin et al. (1990); most accurate in Frankenfield et al. (2005)
②
BMR, Harris-Benedict (revised) and Katch-McArdle
Men 88.362 + 13.397W + 4.799H − 5.677A  ·  Women 447.593 + 9.247W + 3.098H − 4.330A  ·  Katch 370 + 21.6 × LBM
LBMLean body mass in kg = W × (1 − body fat % ÷ 100)
Use forKatch-McArdle suits lean or muscular people who know their body fat
SourceRoza & Shizgal (1984); Cunningham (1980)
③
Maintenance, goals, pregnancy and breastfeeding
TDEE = BMR × activity  ·  Target = TDEE + life stage + goal
Activity1.2, 1.375, 1.55, 1.725 or 1.9
Goal−275 to −1,100 kcal (0.25 to 1 kg a week), −10% recomp, +10% lean bulk, +20% bulk
Life stagePregnancy +0, +340, +452 kcal; breastfeeding +330 (0 to 6 months), +400 (7 to 12 months)
Rule7,700 kcal ≈ 1 kg of body weight; floors 1,200 / 1,500 / 1,800 kcal
④
Calories burned from METs
kcal = MET × 3.5 × W ÷ 200 × minutes
METMetabolic equivalent; 1 MET = resting (3.5 ml O₂ per kg per min)
Net(MET − 1) × 3.5 × W ÷ 200 × minutes
ExampleBrisk walk 4.3 × 3.5 × 70 ÷ 200 × 30 = 158 kcal
Source2011 Compendium of Physical Activities (Ainsworth et al., 2011)
⑤
Treadmill, incline and steps (ACSM)
Walk VO₂ = 3.5 + 0.1S + 1.8S·G  ·  Run VO₂ = 3.5 + 0.2S + 0.9S·G  ·  kcal/min = VO₂ × W ÷ 1000 × 5
SSpeed in metres per minute (3 mph = 80.5 m/min)
GIncline as a fraction (10% = 0.10), unitless
StepsDistance = steps × stride; stride ≈ 0.415 × height (men), 0.413 (women)
Example3 mph, 10%, 30 min, 70 kg = 273 kcal
⑥
Calories from heart rate (Keytel)
Men (−55.0969 + 0.6309HR + 0.1988W + 0.2017A) ÷ 4.184  ·  Women (−20.4022 + 0.4472HR − 0.1263W + 0.074A) ÷ 4.184
HRAverage heart rate in beats per minute
Resultkcal per minute; multiply by minutes
RangeBuilt from exercise heart rates of about 90 to 150 bpm
SourceKeytel et al. (2005)
⑦
Macros, recipes and children
kcal = 4P + 4C + 9F + 7Alc  ·  Recipe = Σ g × kcal/100 g ÷ 100  ·  Boys EER = 88.5 − 61.9A + PA(26.7W + 903H) + 20 or 25
P, C, FGrams of protein, carbohydrate and fat
% fat9 × fat grams ÷ total kcal × 100
GirlsEER = 135.3 − 30.8A + PA(10.0W + 934H) + 20 (ages 3 to 8) or 25 (9 to 18); H in metres
SourceAtwater factors (Southgate & Durnin, 1970); Institute of Medicine (2005), reviewed by Torun (2005)

👉 7. How to Use This Calorie Calculator

Using this calorie calculator takes under a minute. The worked example below follows a 30-year-old man, 175 cm, 70 kg, who wants to lose 0.5 kg a week.

  1. Pick a tab. Choose Daily Calories for a daily target, Calories Burned for exercise, Macros & Grams, Recipe or Kids & Teens. The example uses Daily Calories.
  2. Choose your units. Pick a height unit (cm, metres, feet and inches or inches) and a weight unit (kg, pounds or stone and pounds).
  3. Enter sex and age. Select Male and type 30.
  4. Enter height and weight. Type 175 cm and 70 kg, measured in the morning without shoes.
  5. Choose your activity level. Select Moderately active (exercise 3 to 5 days a week). If unsure, pick the lower level.
  6. Choose a goal. Select Lose 0.5 kg (1.1 lb) a week.
  7. Set life stage and options. Leave Life stage as None. Optionally open Advanced to change the BMR formula, add body fat or a target weight.
  8. Press Calculate Calories. The result panel shows 2,006 kcal a day, with maintenance 2,556 kcal and a gauge showing the deficit.
  9. Read Section 2. See BMR, macros (112 g protein), the formula with your numbers, a table of every goal and two charts.
  10. Save or share. Use Download TXT, Download Doc or Download PDF, or copy one of the five ready-made notes in Section 5.

📈 8. How to Calculate Calories in Excel

Excel has no calorie function, but every formula on this page is simple arithmetic. Each step uses the same worked example as the calorie calculator: a 30-year-old man, 70 kg, 175 cm, moderately active.

The whole thing in one line: with weight in B2, height in C2 and age in D2, type =(10*B2+6.25*C2-5*D2+5)*1.55. The answer, 2,555.6, is his maintenance calories.

8.1 The formulas you need

You wantExcel formulaNote
BMR, men=10*B2+6.25*C2-5*D2+5Weight kg, height cm, age years
BMR, women=10*B2+6.25*C2-5*D2-161Only the constant changes
Either sex=10*B2+6.25*C2-5*D2+IF(A2="M",5,-161)A2 holds M or F
Maintenance (TDEE)=E2*1.55Swap 1.55 for your activity factor
Weight-loss target=MAX(F2-550,1500)Use 1200 as the floor for women
Calories burned (METs)=4.3*3.5*B2/200*30MET × 3.5 × kg ÷ 200 × minutes
Treadmill incline=(3.5+0.1*S+1.8*S*G)*B2/1000*5*30S in m/min, G as a decimal
Macros to calories=4*H2+4*I2+9*J2Protein, carbs, fat in grams
% calories from fat=9*J2/K2Format the cell as a percentage

8.2 Step by step

1 Enter sex, weight, height and age

Put labels in row 1 and values in row 2.

Xcalories.xlsx - ExcelB2fx70ABCD1SexWeight kgHeight cmAge2M7017530

M in A2, 70 kg in B2, 175 cm in C2, age 30 in D2.

2 Calculate BMR

The IF picks the right constant for men or women.

=10*B2+6.25*C2-5*D2+IF(A2="M",5,-161)
Xcalories.xlsx - ExcelE2fx=10*B2+6.25*C2-5*D2+IF(A2="M",5,-161)BCDE1WeightHeightAgeBMR270175301648.75

BMR is 1,648.75 kcal.

3 Maintenance and a weight-loss target

Multiply by the activity factor, then subtract 550 kcal for about 0.5 kg a week. MAX keeps it above the safety floor.

=E2*1.55 =MAX(F2-550,IF(A2="M",1500,1200))
Xcalories.xlsx - ExcelG2fx=MAX(F2-550,IF(A2="M",1500,1200))EFG1BMRMaintenanceLose 0.5 kg21648.752555.562005.56

Maintenance 2,555.56 kcal, target 2,005.56 kcal.

4 Calories burned walking

Use the MET value for your activity from Table 2.3.

=4.3*3.5*B2/200*30
Xcalories.xlsx - ExcelH2fx=4.3*3.5*B2/200*30BFH1WeightMinutesWalk kcal27030158.03

30 minutes of brisk walking (4.3 METs) burns 158.03 kcal at 70 kg.

5 Macros to calories and % from fat

=4*H2+4*I2+9*J2 =9*J2/K2
Xmacros.xlsx - ExcelL2fx=9*J2/K2HIJKL1ProteinCarbsFatkcal% fat215025070223028.3%

150 g protein, 250 g carbs and 70 g fat = 2,230 kcal, 28.3% from fat.

Google Sheets: every formula here works the same in Google Sheets.

8.3 The awkward cases

  • Pounds and inches. Convert first: kg =B2*0.45359237, cm =C2*2.54.
  • mph to metres per minute for the treadmill equation: =mph*26.8224.
  • Katch-McArdle: =370+21.6*B2*(1-L2/100) with body fat % in L2.
Watch the safety floor. A plain =F2-1100 can return 1,100 kcal for a small, inactive woman. Always wrap it in MAX with the floor.

8.4 Why Excel might differ from this calculator

The formulas are identical, so Excel, R, Python and this page agree to the calorie on the worked example. Small differences come from rounding: this calculator keeps full precision and rounds only for display, while some spreadsheets round each step. Online calculators that use the 1919 Harris-Benedict equation (not the 1984 revision) can be 20 to 50 kcal off.

8.5 Charting calories in Excel

List goals in one column and calories in the next, select both and choose Insert, then Bar. Add maintenance as a second series drawn as a line so the deficit and surplus are easy to see.

8.6 Error messages

You seeCauseFix
#VALUE!Text in a number cell, like "70 kg"Type just 70
#NAME?Typo in a function nameCheck IF and MAX spelling
A huge BMRHeight entered in metresUse centimetres (175, not 1.75)
#####Column too narrowWiden the column

📊 9. How to Calculate Calories in R

Copy the whole block. It runs top to bottom in RStudio or Rscript with base R only. Change the values at the top to use your own numbers.

9.1 The complete script

R, base only, saves calorie_plot.png at 300 dpi

# ============================================================
# Calorie calculator in R: BMR, TDEE, goals, exercise and macros
# StatsUnlock - https://statsunlock.com/calorie-calculator/
# ============================================================

# ---- 1. Your details ------------------------------------------
sex      <- "male"     # "male" or "female"
weight   <- 70         # kg
height   <- 175        # cm
age      <- 30         # years
activity <- 1.55       # 1.2, 1.375, 1.55, 1.725 or 1.9

# ---- 2. BMR (Mifflin-St Jeor) and maintenance -----------------
bmr  <- 10 * weight + 6.25 * height - 5 * age + ifelse(sex == "male", 5, -161)
tdee <- bmr * activity
floor_kcal <- ifelse(sex == "male", 1500, 1200)

# ---- 3. Calories for each goal --------------------------------
goals <- data.frame(
  goal = c("Lose 1 kg/wk", "Lose 0.5 kg/wk", "Maintain", "Lean bulk", "Bulk"),
  adj  = c(-1100, -550, 0, tdee * 0.10, tdee * 0.20)
)
goals$kcal <- pmax(tdee + goals$adj, floor_kcal)
print(goals)

# ---- 4. Exercise: METs and treadmill incline -------------------
met_kcal <- function(met, kg, minutes) met * 3.5 * kg / 200 * minutes
walk_vo2 <- function(mph, incline) {
  s <- mph * 26.8224                       # metres per minute
  3.5 + 0.1 * s + 1.8 * s * incline / 100
}
brisk_walk <- met_kcal(4.3, weight, 30)
treadmill  <- walk_vo2(3, 10) * weight / 1000 * 5 * 30

# ---- 5. Macros to calories ------------------------------------
protein <- 150; carbs <- 250; fat <- 70
macro_kcal <- 4 * protein + 4 * carbs + 9 * fat

# ---- 6. Plain-English verdict ---------------------------------
cat(sprintf("BMR %.0f kcal, maintenance %.0f kcal a day\n", bmr, tdee))
cat(sprintf("To lose 0.5 kg a week, eat about %.0f kcal a day\n", goals$kcal[2]))
cat(sprintf("30 min brisk walk: %.0f kcal; treadmill 3 mph 10%%: %.0f kcal\n", brisk_walk, treadmill))
cat(sprintf("Macros: %.0f kcal, %.1f%% from fat\n", macro_kcal, 900 * fat / macro_kcal))

# ---- 7. One 300 dpi figure ------------------------------------
png("calorie_plot.png", width = 2000, height = 1400, res = 300)
par(mar = c(4, 9, 2, 1))
barplot(goals$kcal, names.arg = goals$goal, horiz = TRUE, las = 1,
        col = c("#f59e0b", "#f59e0b", "#16a34a", "#3b82f6", "#6366f1"),
        xlab = "kcal per day", main = "Calories by goal")
abline(v = tdee, lty = 2)
dev.off()
cat("Saved calorie_plot.png\n")

Expected output: BMR 1,649 kcal, maintenance 2,556 kcal, lose 0.5 kg a week at 2,006 kcal, brisk walk 158 kcal, treadmill 273 kcal, macros 2,230 kcal with 28.3% from fat. These match the calorie calculator and the Excel steps.

9.2 What each line does

Line or functionWhat it does
ifelse(sex == "male", 5, -161)Adds the sex-specific constant of the Mifflin-St Jeor equation.
pmax(..., floor_kcal)Applies the safety floor to every goal at once.
met_kcal()The MET formula. Swap 4.3 for any value in Table 2.3.
walk_vo2()The ACSM walking equation. 26.8224 converts mph to metres per minute.
png(..., res = 300)Saves a print-quality figure.

9.3 What the figure shows

One bar per goal, with a dashed line at maintenance. Bars left of the line are deficits; bars to the right are surpluses.

9.4 Problems and fixes

  • BMR is 10 times too high. Height was entered in mm. Use cm.
  • %% in sprintf. A single % starts a format code in sprintf; use %% for a percent sign.

9.5 Handy one-liners

bmr_f <- function(kg, cm, age) 10 * kg + 6.25 * cm - 5 * age - 161   # women
katch <- function(kg, bf) 370 + 21.6 * kg * (1 - bf / 100)
kcal_from_macros <- function(p, c, f, alc = 0) 4 * p + 4 * c + 9 * f + 7 * alc
grams_from_kcal <- function(kcal, pct, per_g) kcal * pct / 100 / per_g

🐍 10. How to Calculate Calories in Python

matplotlibthe figure
standard libraryeverything else

Install with pip install matplotlib if you do not already have it.

10.1 The complete script

Python 3, saves calorie_plot.png at 300 dpi

# ============================================================
# Calorie calculator in Python: BMR, TDEE, goals, exercise and macros
# StatsUnlock - https://statsunlock.com/calorie-calculator/
# ============================================================
import matplotlib.pyplot as plt

# ---- 1. Your details ------------------------------------------
sex, weight, height, age, activity = "male", 70, 175, 30, 1.55

# ---- 2. BMR and maintenance -----------------------------------
bmr = 10 * weight + 6.25 * height - 5 * age + (5 if sex == "male" else -161)
tdee = bmr * activity
floor_kcal = 1500 if sex == "male" else 1200

# ---- 3. Calories for each goal --------------------------------
goals = {"Lose 1 kg/wk": -1100, "Lose 0.5 kg/wk": -550, "Maintain": 0,
         "Lean bulk": tdee * 0.10, "Bulk": tdee * 0.20}
targets = {g: max(tdee + adj, floor_kcal) for g, adj in goals.items()}

# ---- 4. Exercise ----------------------------------------------
def met_kcal(met, kg, minutes):
    return met * 3.5 * kg / 200 * minutes

def treadmill_kcal(mph, incline, kg, minutes):
    s = mph * 26.8224                                  # metres per minute
    vo2 = 3.5 + 0.1 * s + 1.8 * s * incline / 100      # ACSM walking
    return vo2 * kg / 1000 * 5 * minutes

def keytel_kcal(hr, kg, age, minutes, male=True):
    if male:
        per_min = (-55.0969 + 0.6309 * hr + 0.1988 * kg + 0.2017 * age) / 4.184
    else:
        per_min = (-20.4022 + 0.4472 * hr - 0.1263 * kg + 0.074 * age) / 4.184
    return per_min * minutes

# ---- 5. Macros ------------------------------------------------
protein, carbs, fat = 150, 250, 70
macro_kcal = 4 * protein + 4 * carbs + 9 * fat

print(f"BMR {bmr:.0f} kcal, maintenance {tdee:.0f} kcal a day")
print(f"To lose 0.5 kg a week, eat about {targets['Lose 0.5 kg/wk']:.0f} kcal a day")
print(f"30 min brisk walk: {met_kcal(4.3, weight, 30):.0f} kcal")
print(f"Treadmill 3 mph at 10%: {treadmill_kcal(3, 10, weight, 30):.0f} kcal")
print(f"Heart rate 140 for 30 min: {keytel_kcal(140, weight, age, 30):.0f} kcal")
print(f"Macros: {macro_kcal:.0f} kcal, {900 * fat / macro_kcal:.1f}% from fat")

# ---- 6. One 300 dpi figure ------------------------------------
fig, ax = plt.subplots(figsize=(6.7, 4.2))
ax.barh(list(targets), list(targets.values()),
        color=["#f59e0b", "#f59e0b", "#16a34a", "#3b82f6", "#6366f1"])
ax.axvline(tdee, ls="--", color="grey")
ax.set_xlabel("kcal per day")
ax.set_title("Calories by goal")
fig.tight_layout()
fig.savefig("calorie_plot.png", dpi=300)
print("Saved calorie_plot.png")

Expected output matches R and Excel: BMR 1,649, maintenance 2,556, target 2,006, walk 158, treadmill 273, heart rate 381, macros 2,230 kcal (28.3% from fat).

10.2 What each line does

Line or functionWhat it does
max(tdee + adj, floor_kcal)Applies the safety floor to each goal.
treadmill_kcal()ACSM walking equation; use 0.2 and 0.9 for running.
keytel_kcal()Heart rate equation; set male=False for women.
fig.savefig(dpi=300)Saves a figure sharp enough for a report.

10.3 What the figure shows

The same goal bars as the R version, with maintenance as a dashed line.

10.4 Problems and fixes

  • ModuleNotFoundError: matplotlib. Run pip install matplotlib.
  • Numbers look off by 2.2. Weight was in pounds. Multiply by 0.45359237 first.

10.5 Handy one-liners

bmr_female = lambda kg, cm, age: 10 * kg + 6.25 * cm - 5 * age - 161
grams_to_kcal = lambda p, c, f, alc=0: 4 * p + 4 * c + 9 * f + 7 * alc
kcal_to_grams = lambda kcal, pct, per_g: kcal * pct / 100 / per_g
steps_to_km = lambda steps, height_cm: steps * height_cm * 0.415 / 100000

🚶 11. How Many Calories Do Walking and Steps Burn?

Walking burns about 80 to 100 kcal per mile for a 70 kg adult at a normal pace, and more if you are heavier, walk faster or climb hills. Use the Calories Burned tab with Steps or a walking activity to get your own number.

11.1 Calories burned per mile and per kilometre

Pace55 kg: per mile / km70 kg85 kg100 kg
Walking 2.0 mph81 / 50103 / 64125 / 78147 / 91
Walking 3.0 mph67 / 4286 / 53104 / 65123 / 76
Walking 3.5 mph (brisk)71 / 4490 / 56110 / 68129 / 80
Walking 4.0 mph72 / 4592 / 57112 / 69131 / 82
Running 5 mph96 / 60122 / 76148 / 92174 / 108
Running 6 mph94 / 59120 / 75146 / 91172 / 107

Gross calories from the 2011 Compendium MET values at each speed. What to conclude: at walking speeds, calories per mile change little with pace; body weight matters far more.

11.2 How steps turn into calories

The calculator turns steps into distance using your stride length (about 41.5% of height for men and 41.3% for women), then uses the ACSM walking equation at your pace. A 175 cm man has a stride of about 72.6 cm, so 10,000 steps is about 7.3 km (4.5 miles). At 3 mph and 70 kg that burns about 365 kcal in 90 minutes. Table 2.5 shows other step counts and weights.

11.3 How to burn more calories walking

  • Add incline. Walking at 10% incline more than doubles calories per minute compared with flat ground at the same speed.
  • Walk faster. Going from 3.0 to 4.0 mph raises the MET value from 3.5 to 5.0.
  • Walk longer. Time is the biggest lever; two 30-minute walks beat one 20-minute walk.
  • Carry a light load. A backpack or hiking adds work, but keep it under 10% of body weight.

🏋 12. Treadmill, Incline, StairMaster, Rowing and Bike Calories

For a 70 kg person, 30 minutes on a StairMaster burns about 330 kcal, a moderate rowing machine about 257 kcal, a moderate exercise bike about 250 kcal and an elliptical about 184 kcal. Incline treadmill walking sits in between and depends on speed and slope.

12.1 Incline treadmill calories at 70 kg (kcal per 30 minutes)

Speed0%3%6%9%12%15%
2.0 mph (3.2 km/h)93123154184215245
2.5 mph (4.0 km/h)107145183221259297
3.0 mph (4.8 km/h)121167212258304349
3.5 mph (5.6 km/h)135189242295348401
4.0 mph (6.4 km/h)149210271332393454

ACSM walking equation, gross calories. The popular 12-3-30 workout (12% incline, 3 mph, 30 minutes) burns about 304 kcal at 70 kg. What to conclude: each extra 1% of incline adds roughly 10 to 15 kcal per 30 minutes at walking speeds.

12.2 Which machine burns the most?

At the same effort, machines that make you lift your body weight (StairMaster, incline treadmill, running) burn the most. Seated machines (bike, rowing) burn a little less but are easier on the knees. The best machine is the one you will use often. Machine displays usually overestimate, because they assume a standard body weight and include resting calories. Use the calculator with your real weight for a fairer number.

12.3 Heart rate based calorie estimates

If you wear a chest strap, the heart rate method (Keytel et al., 2005) adjusts for how hard you are really working. It was developed from steady exercise at heart rates of about 90 to 150 bpm, so it is less reliable for very easy work, short sprints or HIIT, where heart rate lags behind effort.

🤰 13. Calories for Pregnancy, Breastfeeding and Children

13.1 Pregnancy

You do not need to eat for two. The Institute of Medicine estimates no extra calories in the first trimester, about 340 kcal more a day in the second and 452 kcal more in the third (Butte & King, 2005). That is roughly a glass of milk and a sandwich. Weight-loss plans are switched off in pregnancy mode.

13.2 Breastfeeding

Making milk uses about 500 kcal a day in the first 6 months. Some of that comes from fat stored in pregnancy, so the recommended extra intake is about 330 kcal a day for months 0 to 6 and 400 kcal a day for months 7 to 12. If you want to lose weight while breastfeeding, a slow loss of about 0.5 kg (1 lb) a week is generally considered safe for milk supply, and this calorie calculator will not go below 1,800 kcal a day.

13.3 Children and teenagers

Children need energy for growth as well as activity, so adult formulas do not fit. The Kids & Teens tab uses the Institute of Medicine equations for ages 3 to 18, reviewed by Torun (2005). For example, an active 10-year-old boy who weighs 32 kg and is 140 cm tall needs about 2,164 kcal a day. Children should not diet unless a paediatrician recommends it.

Child (example size)SedentaryLow activeActiveVery active
Boy, 4 y, 16.5 kg, 103 cm1,2321,4101,5881,807
Boy, 8 y, 25.5 kg, 128 cm1,4501,6891,9282,221
Boy, 12 y, 40 kg, 150 cm1,7932,1082,4232,811
Boy, 16 y, 61 kg, 174 cm2,3232,7393,1553,667
Girl, 4 y, 16 kg, 102 cm1,1451,3231,4901,768
Girl, 8 y, 25.5 kg, 127 cm1,3501,5811,7972,157
Girl, 12 y, 41.5 kg, 151 cm1,6161,9082,1822,638
Girl, 16 y, 54 kg, 163 cm1,7302,0602,3692,885

Calculated with the Institute of Medicine 2005 equations for the example sizes shown. Your child’s needs depend on their own height, weight and activity, so use the Kids & Teens tab. What to conclude: a very active child needs about 45 to 70% more than a sedentary child of the same size, so activity matters as much as size.

💪 14. Calories for Bulking, Lean Bulk and Body Recomposition

To build muscle you need a small calorie surplus, enough protein and progressive strength training. A bigger surplus does not build muscle faster; it mostly adds fat (Iraki et al., 2019).

GoalCalories vs maintenanceProteinTarget rate of changeWho it suits
Lean bulk+5 to 10% (this tool: +10%)1.6 to 2.2 g/kg+0.25 to 0.5% of body weight a weekMost people who want muscle with little fat
Bulk+10 to 20% (this tool: +20%)1.6 to 2.2 g/kg+0.5 to 1% a weekBeginners, underweight lifters, hard gainers
Body recompositionMaintenance to −10% (this tool: −10%)About 2.0 g/kg or moreWeight steady; waist down, strength upBeginners, returning lifters, higher body fat
Fat loss (cut)−0.5 to 1% of body weight a week2.3 to 3.1 g/kg of lean mass−0.5 to 1% a weekAnyone reducing body fat while keeping muscle

Sources: Iraki et al. (2019) for bulking, Barakat et al. (2020) for recomposition, Helms et al. (2014) for cutting, and Morton et al. (2018), who found protein benefits for muscle level off at about 1.6 g/kg a day. What to conclude: a lean bulk is a gentle surplus of a few hundred calories, not "eat everything".

14.1 How to tell if your bulk or recomp is working

  • Track weekly average weight, waist size and gym strength together, not weight alone.
  • On a lean bulk, if weight rises faster than 0.5% a week, cut 100 to 150 kcal.
  • On a recomp, a steady weight with a smaller waist and rising strength means it is working.

🍲 15. How to Calculate Calories in Homemade Food

To calculate calories for homemade food, add up the calories of every ingredient, then divide by the number of servings. It works the same for Indian curries, dals, smoothies, salads and baking.

  1. Weigh each ingredient raw in grams, including oil, ghee and butter.
  2. Find kcal per 100 g on each label, or in a food database, for the raw ingredient.
  3. Multiply: grams × kcal per 100 g ÷ 100 for each ingredient.
  4. Add them up for the whole recipe.
  5. Divide by servings, or weigh the cooked dish and work out kcal per 100 g, then weigh your bowl.

For example, a red lentil dal with 200 g dry lentils (352 kcal/100 g), 100 g onion, 150 g tomato, 20 g ghee and water comes to about 946 kcal, or 237 kcal per serving for 4. The Recipe tab does this for you.

15.1 How to convert grams to calories and calories to grams

Multiply grams of protein or carbohydrate by 4, fat by 9 and alcohol by 7. To go the other way, divide: 2,000 kcal at 30% protein is 600 kcal ÷ 4 = 150 g protein.

15.2 How to calculate the percentage of calories from fat

Multiply grams of fat by 9 and divide by total calories, then multiply by 100. A snack with 9 g fat and 230 kcal has 9 × 9 ÷ 230 × 100 = 35% of its calories from fat.

15.3 Tips for accurate recipe calories

  • Oils and fats have about 880 to 900 kcal per 100 g; one tablespoon of oil adds about 120 kcal.
  • Use dry weights for rice, lentils and pasta; they absorb water when cooked but the calories do not change.
  • Water, spices, herbs, salt and vinegar add almost nothing and can be left out.
  • For smoothies, the fruit, milk, nut butter and any honey or syrup carry nearly all the calories.

🔬 16. How This Calorie Calculator Was Built and Tested

The StatsUnlock Team built this calorie calculator from primary sources and checked every mode against independent code before publishing.

PartMethod and sourceHow we checked it
Daily caloriesMifflin-St Jeor (1990), Harris-Benedict revised (Roza & Shizgal, 1984), Katch-McArdle (370 + 21.6 × lean mass); 5 activity factors8 samples matched an independent Python script to the calorie
Goals7,700 kcal per kg; floors 1,200 / 1,500 / 1,800 kcal; loss capped at 1 kg a week; no deficit in pregnancy or below BMI 18.5Floor, pregnancy and underweight cases tested
Pregnancy, breastfeedingInstitute of Medicine additions as reviewed by Butte & King (2005)Each life stage checked by hand
Calories burned32 activities from the 2011 Compendium (Ainsworth et al., 2011); ACSM treadmill equations; steps via stride length; Keytel (2005) heart rate9 samples matched independent code; net and gross both shown
Macros and recipesAtwater factors 4, 4, 9, 7 (and 2 for fibre)Forward and reverse conversions agree
ChildrenInstitute of Medicine (2005) energy equations, ages 3 to 185 samples matched independent code
Units and input checkscm, m, ft + in, in; kg, lb, st + lb; mph or km/h; range limits and clear error messagesAll 12 unit pairs give identical results; 20 error cases tested
Devices and privacySingle HTML file, nothing calculated until you press Calculate, no data leaves your browserTested at 320, 375, 414 and 1,100 px wide

The 2024 Adult Compendium (Herrmann et al., 2024) updated some MET values; differences for the activities here are small. Last reviewed: .

🎯 17. Example Calorie Calculator Results (8 Worked Cases)

Eight real-world cases run through the calorie calculator, from a simple maintenance target to a breastfeeding plan, a treadmill session and a homemade dal.

1
TEXTBOOK CASE

Maintenance for a moderately active man

The basic calculation everyone starts with.

Man, 30, 70 kg, 175 cm, exercises 3 to 5 days a week.

BMR 1,649TDEE 2,556Activity 1.55Protein 84 g
MeasureValueNote
BMR1,648.8 kcal10×70 + 6.25×175 − 5×30 + 5
Activity factor1.55Moderately active
Maintenance2,556 kcalBMR × 1.55
Lose 0.5 kg a week2,006 kcalMaintenance − 550
BMR1,649 kcalMaintenance2,556 kcalLose 0.5 kg/wk2,006 kcal
BMR is about two thirds of his daily burn.

What it means: He burns about 2,556 kcal on an average day. Eating that much keeps his weight steady.

How to use it: Eat around 2,556 kcal for 2 to 3 weeks and watch the weekly average weight.

2
WEIGHT LOSS

Calorie deficit for a woman

A steady 0.5 kg a week.

Woman, 35, 68 kg, 165 cm, lightly active, target 60 kg.

TDEE 1,891Target 1,341−550 a day16 weeks
MeasureValueNote
BMR1,375 kcalMifflin-St Jeor, women
Maintenance1,891 kcalBMR × 1.375
Target1,341 kcalMaintenance − 550
Time to 60 kg16 weeks8 kg ÷ 0.5 kg a week
Maintenance1,891 kcalTarget1,341 kcalSafety floor1,200 kcal
Her target stays above the 1,200 kcal floor.

What it means: About 1,341 kcal a day should lose roughly 0.5 kg a week, reaching 60 kg in about 16 weeks if all goes to plan.

How to use it: Keep protein near 109 g a day and expect slower loss after a few months.

3
SAFETY FLOOR

When the plan would go too low

Why the calculator refuses a crash diet.

Woman, 52, 58 kg, 160 cm, sedentary, asks to lose 1 kg a week.

TDEE 1,391Asked 291Floor 1,200Real loss slower
MeasureValueNote
Maintenance1,391 kcalBMR 1,159 × 1.2
Plan asked for291 kcalMaintenance − 1,100
Target shown1,200 kcalSafety floor
Expected loss0.17 kg a weekNot 1 kg
Maintenance1,391 kcalPlan asked291 kcalTarget shown1,200 kcal
The requested plan would be under 500 kcal a day.

What it means: A small, sedentary woman cannot safely lose 1 kg a week by diet alone. The tool holds her at 1,200 kcal.

How to use it: Add daily walking to raise maintenance, or choose a 0.25 kg-a-week goal.

4
LEAN BULK

Building muscle with a small surplus

More food, but not too much.

Man, 25, 75 kg, 180 cm, very active, wants to reach 80 kg.

TDEE 3,027Target 3,330+10%Protein 135 g
MeasureValueNote
Maintenance3,027 kcalBMR 1,755 × 1.725
Lean bulk target3,330 kcal+10%, +303 kcal
Weekly gain0.28 kgAbout 0.4% of body weight
Protein135 g1.8 g per kg
Maintenance3,027 kcalLean bulk3,330 kcalBulk +20%3,633 kcal
The lean bulk adds about 303 kcal a day.

What it means: A 10% surplus gives slow, mostly lean gains of about 0.28 kg a week.

How to use it: Weigh weekly; if gain passes 0.5% of body weight a week, cut 100 to 150 kcal.

5
BREASTFEEDING

Losing weight while breastfeeding

Slow and steady protects milk supply.

Woman, 31, 70 kg, 165 cm, lightly active, baby 3 months, wants to lose 0.25 kg a week.

TDEE 1,946+330 milkTarget 2,001Floor 1,800
MeasureValueNote
Maintenance without baby1,946 kcalBMR × 1.375
Breastfeeding extra+330 kcalMonths 0 to 6
Maintenance now2,276 kcalIncluding milk
Target2,001 kcal−275 a day
Maintenance now2,276 kcalTarget2,001 kcalBreastfeeding floor1,800 kcal
The target stays above 1,800 kcal.

What it means: She needs about 2,001 kcal to lose a quarter of a kilo a week while feeding her baby.

How to use it: If milk supply drops, return to maintenance and check with a lactation consultant.

6
MISLEADING READING

Gross vs net calories from a walk

Why you should not eat back every calorie.

A 70 kg person walks briskly (3.5 mph) for 30 minutes.

Gross 158Net 121Resting 374.3 METs
MeasureValueNote
Gross calories158 kcalWhat most apps show
Resting in that time37 kcalBurned anyway
Net calories121 kcalExtra from the walk
Food equivalentabout 1 bananaNet calories
Gross158 kcalResting37 kcalNet (extra)121 kcal
About a quarter of the gross figure is resting energy.

What it means: The walk only adds about 121 kcal beyond resting, not 158.

How to use it: Use net calories when deciding how much extra to eat after exercise.

7
INVALID INPUT

Macro percentages that do not add up

What the calculator does with a mistake.

Someone enters 2,000 kcal split 35% protein, 45% carbs, 30% fat.

Total 110%CaughtFix to 100%No result shown
MeasureValueNote
Percentages entered35 + 45 + 30= 110%
Calculator responseError messageMust add up to 100%
After fix (35 / 40 / 25)175 g / 200 g / 56 gProtein, carbs, fat
35% + 45% + 30% = 110%Your percentages add up to 110%. They must add up to 100%.
The tool stops and explains instead of printing wrong grams.

What it means: Splitting more than 100% of calories is impossible, so no grams are shown until it is fixed.

How to use it: Lower one share, for example carbs to 40% and fat to 25%.

8
APPLIED

Homemade red lentil dal

Calories per serving of an Indian recipe.

Dal for 4 made with lentils, onion, tomato, ghee and water.

Total 946Per serving 237Ghee 19%4 servings
MeasureValueNote
Red lentils, dry200 g × 352 kcal/100 g704 kcal
Onion100 g × 40 kcal/100 g40 kcal
Tomato150 g × 18 kcal/100 g27 kcal
Ghee20 g × 876 kcal/100 g175 kcal
Total946 kcal237 kcal per serving
Red lentils, dry704 kcalOnion40 kcalTomato27 kcalGhee175 kcal
Lentils give most calories; 20 g of ghee adds 175 kcal.

What it means: Each of 4 servings has about 237 kcal.

How to use it: Weigh the cooked pot to get kcal per 100 g, then weigh your bowl.

📏 18. How Do You Get Accurate Calorie Numbers?

A calorie calculator is only as good as the numbers you give it, and the activity level is the biggest source of error.

  1. Weigh yourself in the morning after the toilet and before eating, on the same scale each time.
  2. Measure height without shoes against a wall.
  3. Pick your activity level honestly. Count your average week, not your best week. If torn between two, choose the lower.
  4. Only enter body fat if it comes from a DEXA scan or a reliable method; home scales can be off by 5 points.
  5. For workouts, use actual moving time, not time in the gym.
  6. Use your real walking pace. Time yourself over a known distance once.
  7. Heart rate is most reliable from a chest strap during steady exercise.
  8. Weigh food in grams with a kitchen scale; cups and spoons vary a lot.
  9. Use labels for the same state you weigh, raw or cooked.
  10. Re-check every 4 to 8 weeks or after a 2 to 3 kg change in weight.
InputUnitAccepted range
Ageyears18 to 100 (adults), 3 to 18 (kids)
Heightcm, m, ft + in, in120 to 250 cm (adults), 80 to 210 cm (kids)
Weightkg, lb, st + lb30 to 300 kg (adults), 10 to 150 kg (kids)
Durationminutes1 to 600
Treadmill incline%0 to 30
Heart ratebpm60 to 210
Common mistakes: picking "very active" because you train hard for one hour, using a fitness tracker's calories on top of an activity factor that already counts exercise, and weighing cooked rice but using raw rice calories.

✅ 19. When Should You Use a Calorie Calculator?

Use it when:
  • Starting a weight-loss, maintenance or muscle-gain plan
  • Your weight or activity has changed
  • You want calories for a workout or walk
  • You cook at home and want calories per serving
  • You need a rough guide for a child or during breastfeeding
Get professional advice when:
  • You have, or have had, an eating disorder
  • You have diabetes, kidney disease or a thyroid condition
  • You are pregnant and gaining too much or too little
  • A child’s growth is a concern
  • You are recovering from illness or surgery

Decision guide

Your situationBest tab or tool
How much should I eat?Daily Calories
How much did my walk, steps or gym session burn?Calories Burned
I have macro grams or a percentage splitMacros & Grams
I cooked a meal and want calories per portionRecipe
My child is 3 to 18Kids & Teens
I need exact measured BMRIndirect calorimetry at a clinic

🔧 20. Troubleshooting and Common Errors

Most calorie calculator problems come from activity level, units or mixing gross and net calories.

Another calorie calculator gives a different number

Cause: different BMR equations (many still use the 1919 Harris-Benedict), different activity factors or different rounding. Fix: compare the BMR first. This tool uses Mifflin-St Jeor by default and shows all three equations in the results table.

My target is higher than I expected

Cause: a safety floor or a high activity level. Fix: check the green warning box and try one activity level lower.

I am eating at the target but not losing weight

Cause: real intake is often 10 to 30% higher than logged, or water is hiding fat loss. Fix: weigh food for 2 weeks and use the weekly average weight. Then reduce by 100 to 200 kcal if needed.

My watch says I burned far more

Cause: watches often show gross calories and their own algorithms. Fix: compare with the gross number here and use one source consistently.

The steps result seems low

Cause: walking at an easy pace on flat ground is light exercise. Fix: check your pace and height, or measure your stride.

Treadmill speed will not accept my value

Cause: walking is limited to 4.5 mph and running starts at 4 mph. Fix: switch between Walking and Running.

Macro percentages give an error

Cause: they must add up to 100%. Fix: adjust one value so the total is exactly 100.

Recipe calories look too high

Cause: cooked weight with raw calories, or oil counted twice. Fix: use raw weights and raw kcal per 100 g for every ingredient.

The Download TXT button is grey

Cause: nothing has been calculated, or you changed a sample or unit. Fix: press Calculate again.

Charts do not appear

Cause: a script blocker stopped the chart library. Fix: allow cdnjs.cloudflare.com or reload. All numbers and tables still work.

⚠️ 21. What Are the Limitations of a Calorie Calculator?

Every calorie calculator rests on the same assumptions. Here is what each one means for you, and what to do when it fails.

  1. You are an average person for your size. Real BMR varies by about 10% between people of the same size. Alternative: track weight for 3 weeks and adjust.
  2. Activity factors fit your week. They are broad bands; most people overestimate. Alternative: choose one level lower, or track steps.
  3. Metabolism does not adapt. It does: after months of dieting, you burn less than predicted (Hall et al., 2011). Expect slower loss over time.
  4. MET values fit everyone. They come from average adults; fitter people may burn slightly less for the same task.
  5. Stride is a fixed share of height. Real stride varies with pace and leg length. Measure 10 steps for a better number.
  6. Labels are exact. Food labels may be off by up to 20% and are rounded.
  7. Intermittent or very low calorie diets behave the same. The body responds differently to breaks and severe restriction (Byrne et al., 2018).

🏁 22. Conclusion

This calorie calculator turns your details into a daily calorie target of ___. Run the calculator above to see your own summary here.

Every calorie number is an estimate. Follow it for 2 to 3 weeks and let your real weight trend guide you.

Come back to this calorie calculator whenever your weight, activity or goal changes.

❓ 23. Frequently Asked Questions About Calories

Q1. How many calories should I eat a day?

Most adults need about 1,600 to 2,400 calories a day (women) and 2,000 to 3,000 (men), depending on age, size and activity. For a personal number, a calorie calculator multiplies your BMR by an activity factor. A moderately active 30-year-old man who weighs 70 kg and is 175 cm tall needs about 2,556 kcal a day to maintain his weight.

Q2. How do I calculate my maintenance calories?

Calculate your BMR with the Mifflin-St Jeor equation (10 × weight in kg + 6.25 × height in cm − 5 × age, plus 5 for men or minus 161 for women), then multiply by your activity factor: 1.2 sedentary, 1.375 light, 1.55 moderate, 1.725 very active or 1.9 extra active. The result is your maintenance calories, also called TDEE.

Q3. How many calories should I eat to lose weight as a woman?

Start about 500 calories below your maintenance to lose roughly 0.5 kg (1 lb) a week. For a 35-year-old woman who weighs 68 kg, is 165 cm tall and lightly active, that is about 1,341 kcal a day. Do not go below 1,200 kcal a day without medical supervision, and aim to lose no more than 0.5 to 1% of body weight a week.

Q4. How many calories should I eat to bulk or lean bulk?

For a lean bulk, eat about 5 to 10% above maintenance and aim to gain 0.25 to 0.5% of body weight a week. A faster bulk uses 10 to 20% above maintenance. Keep protein around 1.6 to 2.2 g per kg and train with weights. A bigger surplus mostly adds fat rather than more muscle.

Q5. How many calories should I eat for body recomposition?

Body recomposition usually works best at maintenance or a small deficit of about 10%, with high protein (around 2 g per kg of body weight) and regular strength training. Your weight may barely change, but your waist should shrink and strength should rise. It works best for beginners and people returning to training.

Q6. How many calories does walking burn per mile?

A 70 kg person burns about 86 calories per mile walking at 3 mph, and roughly the same at faster walking speeds. Heavier people burn more: about 104 kcal per mile at 85 kg. Walking uphill or on an incline treadmill can more than double the calories per minute.

Q7. How many calories do 10,000 steps burn?

For a 70 kg man who is 175 cm tall, 10,000 steps covers about 7.3 km (4.5 miles) and burns about 365 calories at a 3 mph pace. 5,000 steps burns about 182. The number rises with body weight, height and walking speed.

Q8. How many calories does an incline treadmill walk burn?

Walking at 3 mph on a 10% incline for 30 minutes burns about 273 calories for a 70 kg person, compared with about 121 on a flat treadmill. The popular 12-3-30 workout (12% incline, 3 mph, 30 minutes) burns about 304 calories at 70 kg.

Q9. How many calories does a StairMaster burn?

A stair climbing machine is about 9 METs, so 30 minutes burns roughly 331 calories for a 70 kg person, 260 at 55 kg and 402 at 85 kg. It is one of the highest-burning gym machines because you lift your body weight with every step.

Q10. How many calories does rowing burn?

Thirty minutes on a rowing machine burns about 176 calories at light effort, 257 at moderate effort and 312 at vigorous effort for a 70 kg person. Rowing works the legs, back and arms together and is easy on the joints.

Q11. How do you calculate calories burned from heart rate?

Use the Keytel equation. For men: calories per minute = (−55.0969 + 0.6309 × heart rate + 0.1988 × weight in kg + 0.2017 × age) ÷ 4.184. For women: (−20.4022 + 0.4472 × heart rate − 0.1263 × weight + 0.074 × age) ÷ 4.184. Multiply by minutes. A 30-year-old, 70 kg man at 140 bpm burns about 381 kcal in 30 minutes.

Q12. How many extra calories do you need when breastfeeding?

About 330 extra calories a day in the first 6 months and 400 a day from 7 to 12 months, according to Institute of Medicine estimates. Milk production uses about 500 kcal a day, but some comes from fat stored in pregnancy. If losing weight, aim for no more than 0.5 kg (1 lb) a week and stay above about 1,800 kcal a day.

Q13. How many extra calories do you need when pregnant?

No extra calories are needed in the first trimester. Add about 340 calories a day in the second trimester and about 452 a day in the third, based on Institute of Medicine estimates. Pregnancy is not a time to diet; talk to your midwife or doctor about healthy weight gain.

Q14. How many calories does a child need?

It depends on age, sex, size and activity. Using the Institute of Medicine equations, an active 10-year-old boy who weighs 32 kg and is 140 cm tall needs about 2,164 calories a day. Children need energy for growth, so they should not follow calorie-restricted diets unless a paediatrician advises it.

Q15. How do you convert grams to calories?

Multiply grams of protein by 4, carbohydrate by 4, fat by 9 and alcohol by 7, then add them up. For example, 150 g protein, 250 g carbohydrate and 70 g fat is 600 + 1,000 + 630 = 2,230 calories. To go from calories to grams, divide the calories for each macro by the same numbers.

Q16. How do you calculate the percentage of calories from fat?

Multiply the grams of fat by 9, divide by the total calories and multiply by 100. A food with 9 g of fat and 230 calories has 9 × 9 = 81 calories from fat, which is 81 ÷ 230 × 100 = 35% of its calories. Health guidelines suggest 20 to 35% of daily calories from fat.

Q17. How do you calculate calories in homemade food?

Weigh each raw ingredient in grams, multiply by its calories per 100 g from the label and divide by 100. Add every ingredient together for the recipe total, then divide by the number of servings. Oil, ghee and butter add the most, so always weigh them.

Q18. How do you calculate calories in Excel?

Put weight in B2, height in C2 and age in D2, then use =10*B2+6.25*C2-5*D2+5 for a man's BMR (use -161 for a woman). Multiply by the activity factor, for example =E2*1.55, for maintenance calories. Use =MAX(F2-550,1500) for a safe weight-loss target. Section 8 shows every step.

Q19. How do you calculate calories in R?

Store weight, height, age and activity as variables, then compute bmr <- 10 * weight + 6.25 * height - 5 * age + ifelse(sex == "male", 5, -161) and tdee <- bmr * activity. Use pmax() to apply a safety floor to every goal at once. The full base R script in Section 9 also covers METs, treadmill incline and macros.

Q20. How do you calculate calories in Python?

Compute bmr = 10 * weight + 6.25 * height - 5 * age + (5 if sex == "male" else -161), then tdee = bmr * activity. Simple functions handle MET calories, the ACSM treadmill equation and the Keytel heart rate formula. The full script in Section 10 prints each result and saves a 300 dpi chart with matplotlib.

📎 24. Cite This Tool

APA 7th edition
StatsUnlock Team. (2026). Calorie calculator: Maintenance, deficit, bulking, calories burned and macros [Interactive tool]. StatsUnlock. https://statsunlock.com/calorie-calculator/
BibTeX
@misc{statsunlock_calorie_2026, author={{StatsUnlock Team}}, title={Calorie Calculator: Maintenance, Deficit, Bulking, Calories Burned and Macros}, year={2026}, publisher={StatsUnlock}, note={Interactive tool}, url={https://statsunlock.com/calorie-calculator/}}
Plain reference for a document
Energy requirements were estimated with the StatsUnlock Calorie Calculator (2026) using the Mifflin-St Jeor equation and standard activity factors. Exercise energy expenditure was estimated from 2011 Compendium MET values, ACSM metabolic equations or the Keytel et al. (2005) heart rate equation.

🔗 25. Related Tools

📖 26. Glossary of Terms

Activity factor
A multiplier from 1.2 to 1.9 that scales BMR up to your daily total.
Atwater factors
The calories per gram used on labels: 4 for protein and carbohydrate, 9 for fat, 7 for alcohol.
BMR (basal metabolic rate)
Calories your body burns at complete rest in a day.
Body recomposition
Losing fat and gaining muscle at the same time, usually at or slightly below maintenance.
Bulking
Eating above maintenance to gain muscle; a lean bulk uses a small surplus.
Calorie (kcal)
A unit of food energy; the "calories" on labels are kilocalories.
Calorie calculator
A tool that estimates how many calories you burn and should eat each day.
Calorie deficit
Eating fewer calories than you burn, which leads to weight loss.
Calorie surplus
Eating more calories than you burn, which leads to weight gain.
EER (estimated energy requirement)
The average daily calories a healthy person of a given age, sex, size and activity needs.
Gross calories
All calories burned during an activity, including resting calories.
Heart rate (bpm)
Beats per minute; higher during harder exercise.
Lean body mass
Everything in your body that is not fat: muscle, bone, organs and water.
Macronutrients (macros)
Protein, carbohydrate and fat, the nutrients that provide calories.
Maintenance calories
The calories that keep your weight steady; the same as TDEE.
MET (metabolic equivalent)
How hard an activity is compared with resting; 1 MET is sitting still.
Net calories
Calories burned by exercise above what you would burn resting.
Stride length
The distance covered by one step.
TDEE (total daily energy expenditure)
All the calories you burn in a day: BMR, activity and digestion.
Thermic effect of food
Calories used to digest food, about 10% of intake.
VO₂
Oxygen used per kg of body weight per minute; about 5 kcal are released per litre of oxygen.

📚 27. References

  1. Ainsworth, B. E., Haskell, W. L., Herrmann, S. D., Meckes, N., Bassett, D. R., Jr., Tudor-Locke, C., Greer, J. L., Vezina, J., Whitt-Glover, M. C., & Leon, A. S. (2011). 2011 Compendium of Physical Activities: A second update of codes and MET values. Medicine & Science in Sports & Exercise, 43(8), 1575–1581. https://doi.org/10.1249/MSS.0b013e31821ece12
  2. Barakat, C., Pearson, J., Escalante, G., Campbell, B., & De Souza, E. O. (2020). Body recomposition: Can trained individuals build muscle and lose fat at the same time? Strength and Conditioning Journal, 42(5), 7–21. https://doi.org/10.1519/SSC.0000000000000584
  3. Butte, N. F., & King, J. C. (2005). Energy requirements during pregnancy and lactation. Public Health Nutrition, 8(7a), 1010–1027. https://doi.org/10.1079/PHN2005793
  4. Byrne, N. M., Sainsbury, A., King, N. A., Hills, A. P., & Wood, R. E. (2018). Intermittent energy restriction improves weight loss efficiency in obese men: The MATADOR study. International Journal of Obesity, 42(2), 129–138. https://doi.org/10.1038/ijo.2017.206
  5. Cunningham, J. J. (1980). A reanalysis of the factors influencing basal metabolic rate in normal adults. The American Journal of Clinical Nutrition, 33(11), 2372–2374. https://doi.org/10.1093/ajcn/33.11.2372
  6. Frankenfield, D., Roth-Yousey, L., & Compher, C. (2005). Comparison of predictive equations for resting metabolic rate in healthy nonobese and obese adults: A systematic review. Journal of the American Dietetic Association, 105(5), 775–789. https://doi.org/10.1016/j.jada.2005.02.005
  7. Hall, C., Figueroa, A., Fernhall, B., & Kanaley, J. A. (2004). Energy expenditure of walking and running: Comparison with prediction equations. Medicine & Science in Sports & Exercise, 36(12), 2128–2134. https://doi.org/10.1249/01.MSS.0000147584.87788.0E
  8. Hall, K. D., Sacks, G., Chandramohan, D., Chow, C. C., Wang, Y. C., Gortmaker, S. L., & Swinburn, B. A. (2011). Quantification of the effect of energy imbalance on bodyweight. The Lancet, 378(9793), 826–837. https://doi.org/10.1016/S0140-6736(11)60812-X
  9. Helms, E. R., Aragon, A. A., & Fitschen, P. J. (2014). Evidence-based recommendations for natural bodybuilding contest preparation: Nutrition and supplementation. Journal of the International Society of Sports Nutrition, 11, 20. https://doi.org/10.1186/1550-2783-11-20
  10. Herrmann, S. D., Willis, E. A., Ainsworth, B. E., Barreira, T. V., Hastert, M., Kracht, C. L., Schuna, J. M., Jr., Cai, Z., Quan, M., Tudor-Locke, C., Whitt-Glover, M. C., & Jacobs, D. R., Jr. (2024). 2024 Adult Compendium of Physical Activities: A third update of the energy costs of human activities. Journal of Sport and Health Science, 13(1), 6–12. https://doi.org/10.1016/j.jshs.2023.10.010
  11. Iraki, J., Fitschen, P., Espinar, S., & Helms, E. (2019). Nutrition recommendations for bodybuilders in the off-season: A narrative review. Sports, 7(7), 154. https://doi.org/10.3390/sports7070154
  12. Keytel, L. R., Goedecke, J. H., Noakes, T. D., Hiiloskorpi, H., Laukkanen, R., van der Merwe, L., & Lambert, E. V. (2005). Prediction of energy expenditure from heart rate monitoring during submaximal exercise. Journal of Sports Sciences, 23(3), 289–297. https://doi.org/10.1080/02640410470001730089
  13. Mifflin, M. D., St Jeor, S. T., Hill, L. A., Scott, B. J., Daugherty, S. A., & Koh, Y. O. (1990). A new predictive equation for resting energy expenditure in healthy individuals. The American Journal of Clinical Nutrition, 51(2), 241–247. https://doi.org/10.1093/ajcn/51.2.241
  14. Morton, R. W., Murphy, K. T., McKellar, S. R., Schoenfeld, B. J., Henselmans, M., Helms, E., Aragon, A. A., Devries, M. C., Banfield, L., Krieger, J. W., & Phillips, S. M. (2018). A systematic review, meta-analysis and meta-regression of the effect of protein supplementation on resistance training-induced gains in muscle mass and strength in healthy adults. British Journal of Sports Medicine, 52(6), 376–384. https://doi.org/10.1136/bjsports-2017-097608
  15. Roza, A. M., & Shizgal, H. M. (1984). The Harris Benedict equation reevaluated: Resting energy requirements and the body cell mass. The American Journal of Clinical Nutrition, 40(1), 168–182. https://doi.org/10.1093/ajcn/40.1.168
  16. Southgate, D. A. T., & Durnin, J. V. G. A. (1970). Calorie conversion factors: An experimental reassessment of the factors used in the calculation of the energy value of human diets. British Journal of Nutrition, 24(2), 517–535. https://doi.org/10.1079/BJN19700050
  17. Thompson, J., & Manore, M. M. (1996). Predicted and measured resting metabolic rate of male and female endurance athletes. Journal of the American Dietetic Association, 96(1), 30–34. https://doi.org/10.1016/S0002-8223(96)00010-7
  18. Torun, B. (2005). Energy requirements of children and adolescents. Public Health Nutrition, 8(7a), 968–993. https://doi.org/10.1079/PHN2005791
  19. Tudor-Locke, C., Craig, C. L., Brown, W. J., Clemes, S. A., De Cocker, K., Giles-Corti, B., Hatano, Y., Inoue, S., Matsudo, S. M., Mutrie, N., Oppert, J.-M., Rowe, D. A., Schmidt, M. D., Schofield, G. M., Spence, J. C., Teixeira, P. J., Tully, M. A., & Blair, S. N. (2011). How many steps/day are enough? For adults. International Journal of Behavioral Nutrition and Physical Activity, 8, 79. https://doi.org/10.1186/1479-5868-8-79
  20. Westerterp, K. R. (2013). Physical activity and physical activity induced energy expenditure in humans: Measurement, determinants, and effects. Frontiers in Physiology, 4, 90. https://doi.org/10.3389/fphys.2013.00090
STATS UNLOCK · statsunlock.com · Calorie Calculator
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Important Plots & Charts

Calculators and Converters