🥗 Energy Balance Lab: Nutrition, Calories and Body Weight

2D interactive simulation · educational model

The science

Resting needs. The Mifflin-St Jeor equation estimates basal metabolic rate: BMR = 10·m + 6.25·h − 5·age + s (kcal/day; m in kg, h in cm, s = +5 for men, −161 for women). Daily energy use is TDEE = BMR × PAL, with the physical-activity level PAL from 1.2 (sedentary) to about 2.1 (very active).

Energy balance. Body mass changes by roughly dm/dt = (intake − TDEE(m))/7700 kg per day, because 1 kg of body tissue stores about 7,700 kcal. Since TDEE depends on weight, the equation is linear and has the exact solution m(t) = meq + (m0 − meq)(1 − 10·PAL/7700)t, the curve you see flattening towards a new equilibrium; the lab checks the day-by-day simulation against it.

Macros. Protein and carbohydrate give about 4 kcal/g and fat about 9 kcal/g (Atwater factors).

Honest simplifications. The 7,700 kcal/kg rule overstates changes over many months because the mix of fat and lean tissue loss varies, and real bodies adapt (metabolic adaptation, appetite, water shifts, activity changes). The predicted trajectory is a population-level illustration, not a diet plan or medical advice.