How the simulator works
BodyFood is an educational simulator. It runs simplified, published physiology models in your browser and shows what a diet or training plan might do to a simulated person. It is not a medical device and does not give personal advice. This page lists how it works, what has been checked, and what is still a guess. Version: engine v0.1, pages v1, updated 2026-11-26.
- Constants from published sources
- 36
- Derived or tuned to a target
- 25
- Guesses (marked)
- 34
What is modelled
- Energy balance and body composition. Resting burn from fat and lean mass (Hall 2009), activity as a physical activity level plus logged workouts (Ainsworth Compendium METs), the thermic effect of food by macronutrient (Westerterp 2004), and adaptive thermogenesis (Hall 2011). A surplus or deficit is split between fat and lean tissue with the Forbes/Hall partition, adjusted for protein intake and training.
- Glucose and insulin. A minimal model in the style of Bergman (1979), with gut absorption slowed by fat, fiber and protein and sped up for drinks. Fructose is mostly routed to the liver. The default person is calibrated to normal glucose tolerance on the standard 75 g oral glucose tolerance test (ADA categories); prediabetes and type 2 diabetes profiles use published fasting levels and lower insulin sensitivity.
- Muscle and strength. Six regions grow with weekly training volume, energy and protein (rates anchored on Wernbom 2007 for untrained people, protein plateau at about 1.6 g/kg from Morton 2018), with diminishing returns toward a natural ceiling and age-related loss after 40. Strength includes early neural gains and fatigue.
What has been checked
| Check | Status |
|---|---|
| 75 g glucose test shape for normal, prediabetic and type 2 profiles (ADA categories) | Done, automated tests |
| Energy is conserved exactly (intake − burn = change in stored energy) | Done, automated tests |
| Weight loss matches Hall’s closed-form model for a 500 kcal/day cut | Done, automated tests |
| Beginner muscle growth in the 5–15% per 12 weeks range of training studies | Done, automated tests |
| Case-by-case comparison with the NIH Body Weight Planner | Not done yet |
| Published mixed-meal glucose curves (e.g. fast food) | Not done yet |
What the numbers on our pages mean
Food and what-if pages use the default simulated person: a 30-year-old man, 180 cm, 80 kg, 20% body fat, moderately active (PAL 1.5), sleeping 7.5 hours, with normal glucose tolerance. Food pages add one serving a day to a steady diet tuned so his weight stays flat for a year, and compare the two runs. Real people differ: women, older or heavier people, and people with diabetes get different numbers. Every page has a button that opens the same scenario in the simulator, where you can change the person.
Numbers are rounded, and long-horizon results are “if nothing else changed”. We do not yet show uncertainty ranges, so read every result as a rough estimate of direction and size, not a precise figure.
Illustrative indices
The simulator also shows inflammation, hunger (ghrelin/leptin) and liver-fat indices. Their drivers are physiologically sensible but their sizes are not measured quantities, so they are labelled illustrative in the app and not used for claims on these pages. Processing level (NOVA), added sugar and glycemic index for USDA foods are estimated from the nutrient profile and food category.
Not modelled
Alcohol, caffeine, medication (including insulin and GLP-1 drugs), blood pressure, the menstrual cycle, day-to-day sleep changes, vitamins and minerals, gut microbiome, and long-term disease risk.
Food data
Foods come from USDA FoodData Central (Foundation Foods and SR Legacy, public domain), searched in the app from a bundled index, and from manufacturer labels for a few branded items such as the Big Mac. Each food page links to its USDA record.
Every constant
Each value used by the engine, with its confidence: published (from or inside the range of the cited source), derived (computed from published values or tuned to a published target), or guess (plausible, no direct source yet).
| Key | Value | Unit | Confidence | Source / note |
|---|---|---|---|---|
p1 | 0.03 | 1/min | published | Glucose effectiveness SG. Bergman et al. 1979 (Am J Physiol 236:E667); healthy 0.02–0.035/min. |
p2 | 0.022 | 1/min | derived | Remote insulin action decay. Bergman 1979 range 0.01–0.05; tuned to OGTT shape (Abdul-Ghani 2007). |
siNormal | 0.0006 | 1/min per µU/mL | published | Insulin sensitivity SI for normal glucose tolerance. Bergman 1989 review; healthy 3–8e-4. |
glucoseVolume | 1.7 | dL/kg | published | Glucose distribution volume. Dalla Man et al. 2007 (IEEE TBME 54:1740): VG ≈ 1.49–1.88 dL/kg. |
glucoseBioavailability | 0.9 | fraction | published | Fraction of ingested glucose reaching plasma. Dalla Man 2007: f = 0.90. |
gutAbsorptionRate | 0.025 | 1/min | derived | Gut→portal absorption rate. Dalla Man 2007 kabs ≈ 0.057/min; about half that here because this simpler chain lacks Dalla Man's nonlinear emptying, and the OGTT calibration needs a broader peak. |
basalGlucoseNormal | 88 | mg/dL | published | Fasting plasma glucose, healthy adult. ADA: normal <100 mg/dL; population mean ≈ 85–92. |
basalGlucosePrediabetic | 108 | mg/dL | published | ADA impaired fasting glucose 100–125 mg/dL. |
basalGlucoseType2 | 150 | mg/dL | published | ADA diabetes ≥126 mg/dL; untreated T2D commonly 130–180. |
basalInsulinNormal | 6 | µU/mL | published | Fasting insulin, healthy 2–10 µU/mL (Johnson 2010, NHANES). |
insulinClearance | 0.16 | 1/min | published | Plasma insulin fractional clearance n. Bergman 1979: 0.1–0.3/min. |
insulinSecretionGain | 0.08 | µU/mL/min per mg/dL | derived | β-cell gain; tuned so a 75 g OGTT peaks insulin ≈ 50–80 µU/mL (Kraft 1975 normal pattern). |
insulinSecretionLate | 0.002 | µU/mL/min² per mg/dL | derived | Bergman 1979 second-phase γ term (integral of hyperglycaemia); keeps insulin up while glucose stays high. |
renalThreshold | 180 | mg/dL | published | Renal glucose threshold ≈ 180 mg/dL (Gerich 2010, Diabet Med 27:136). |
renalClearance | 0.002 | 1/min | guess | Glycosuria rate above threshold, expressed as plasma fraction per min. |
fructoseToPlasmaGlucose | 0.25 | fraction | derived | Fraction of ingested fructose that appears as plasma glucose within the meal window. Tappy & Lê 2010 (Physiol Rev 90:23): ~30–50 % converted over hours, mostly stored as liver glycogen. |
fructoseShareAddedSugar | 0.5 | fraction | published | Sucrose / HFCS-55 are ~50–55 % fructose. |
fructoseShareOtherSugar | 0.3 | fraction | guess | Average fructose share of non-added sugars (fruit ~50 %, dairy lactose 0 %). |
tauGut0 | 45 | min | derived | Baseline gastric half-emptying for a small solid carb meal. Scintigraphy normal T½ 45–90 min (Camilleri 2013). |
tauGutFiber | 1.5 | min/g | guess | Fiber slows emptying (Benini 1995 direction; magnitude guessed). |
tauGutFat | 0.9 | min/g | guess | Fat slows emptying (Hunt & Stubbs 1975 caloric-density control; magnitude guessed). |
tauGutProtein | 0.4 | min/g | guess | Protein slows emptying slightly. |
liquidEmptyingKcalPerMin | 3.5 | kcal/min | derived | Liquid / near-pure sugar loads leave the stomach at a roughly constant energy rate, ~2–4 kcal/min (Brener 1983, Gastroenterology 85:76; Hunt & Stubbs 1975). Half-emptying τ = kcal ÷ (2 × rate). 3.5 keeps the 75 g OGTT (281 kcal) at τ ≈ 40 min, which hits the normal OGTT shape; a 355 mL cola (149 kcal) gets τ ≈ 21 min. Replaces the old fixed −5 min liquid shortcut, which made small drinks too slow. |
tauGutMin | 15 | min | guess | Floor. |
tauGutMax | 240 | min | guess | Ceiling. |
liverGlycogenCap | 100 | g | published | Liver glycogen ≈ 80–120 g fed state (docs/02; Taylor 1996). |
muscleGlycogenPerKg | 15 | g/kg muscle | published | ≈ 13–18 g/kg wet muscle in untrained, fed (Bergström 1967; Areta & Hopkins 2018). ~450 g for 30 kg muscle. |
glycogenWaterRatio | 3 | g water/g glycogen | published | Olsson & Saltin 1970: ≈ 3–4 g water stored per g glycogen. |
carbOxBaseFraction | 0.4 | fraction of EE | published | Resting RQ ≈ 0.82–0.85 on mixed diet → ~40 % energy from carbohydrate. |
glycogenRestingFill | 0.8 | fraction of capacity | guess | Glycogen fill at which resting carbohydrate oxidation equals the base fraction (the avatar starts at 80 % full). |
carbOxGlycogenExponent | 2 | exponent | guess | How strongly carbohydrate oxidation follows glycogen fill. Direction: carbohydrate balance is tightly autoregulated (Flatt 1987, Am J Clin Nutr 45:296; Acheson 1988). Magnitude guessed so a ~500 kcal carb-and-oil cut drops ~0.5 kg of glycogen + water rather than ~1.7 kg. |
dnlFractionOfOverflow | 0.1 | fraction | guess | Share of carbohydrate overflow (glycogen full) that goes through hepatic de novo lipogenesis; the rest is oxidised preferentially (Acheson 1988: DNL is small unless overfed for days). |
hallGammaFat | 3.2 | kcal/kg/day | published | RMR cost of fat mass. Hall 2009 (Am J Physiol Endo 297:E449). |
hallGammaLean | 22 | kcal/kg/day | published | RMR cost of fat-free mass. Hall 2009. |
adaptiveThermogenesisBeta | 0.14 | fraction of ΔEI | published | Hall et al. 2011 (Lancet 378:826): β_AT = 0.14. |
deficitActivityBeta | 0.16 | fraction of ΔEI | derived | Extra fall in expenditure during a deficit beyond Hall’s β_AT: people eating less also move less and burn less than body composition predicts (Martin 2007, Obesity 15:2964; Redman 2009, Cell Metab 9:206; CALERIE-2). Magnitude tuned so a 500 kcal/day cut loses ~11–12.5 kg in year 1 for the default man, matching CALERIE-2 men (Das 2017: −9.5 kg at 12 mo on ~15 % restriction). Not applied in a surplus. |
adaptiveThermogenesisTau | 14 | days | guess | Time constant for adaptation to follow intake change. |
adaptiveThermogenesisCap | 0.15 | fraction of RMR | derived | docs/02 §3.2: adaptation up to −10 to −15 %. |
tefProtein | 0.25 | fraction | published | Westerterp 2004 (Nutr Metab 1:5): protein 20–30 %. |
tefCarb | 0.075 | fraction | published | Westerterp 2004: carbohydrate 5–10 %. |
tefFat | 0.02 | fraction | published | Westerterp 2004: fat 0–3 %. |
tefTau | 180 | min | derived | TEF lasts ~4–6 h after a meal (Reed & Hill 1996). |
resistanceMET | 5 | MET | published | Ainsworth Compendium 2011: resistance training, vigorous ≈ 5–6. |
cardioMET | 8 | MET | published | Ainsworth Compendium 2011: running ~8 km/h ≈ 8.3. |
defaultPAL | 1.5 | ratio | published | FAO/WHO/UNU 2004: sedentary 1.40–1.69. |
energyDensityFat | 9440 | kcal/kg | published | Hall 2008 (Int J Obes 32:573): ρF = 9440 kcal/kg fat mass. Note: docs/02 quotes 7700 kcal/kg for adipose tissue (fat + water), equivalent. |
energyDensityLean | 1816 | kcal/kg | published | Hall 2008: ρL = 1816 kcal/kg lean tissue (docs/02 says ≈1800). |
forbesConstant | 10.4 | kg | published | Forbes 2000 / Hall 2007: p = C/(C+F), C = 10.4 kg × ρL/ρF. |
deficitLeanScale | 0.6 | multiplier on Forbes p | derived | Forbes/Hall p predicts ~40–55 % of weight lost as lean for a lean avatar. Measured in nonobese adults on moderate calorie restriction: FFM ≈ 26 % of weight lost overall, ~34 % in men (CALERIE-2, Das 2017, Am J Clin Nutr 105:913). 0.6 brings a 500 kcal/day cut to ~1/3 lean and ~11–12 kg in year 1, in line with CALERIE-2 men (−9.5 kg at 12 mo on ~12–20 % restriction) and Hall 2011 (Lancet 378:826: half of the eventual ~21 kg in about a year). |
leanShareThatIsMuscle | 0.5 | fraction | guess | Share of Forbes lean change that is skeletal muscle (rest: organs, water, bone). Roughly matches SMM ≈ 50 % of FFM. |
visceralShareMale | 0.12 | fraction of fat mass | derived | VAT ≈ 10–20 % of total fat in men (Shen 2003 MRI). |
visceralShareFemale | 0.07 | fraction of fat mass | derived | VAT ≈ 5–10 % of total fat in women (Shen 2003). |
visceralLossPreference | 1.4 | multiplier | derived | VAT is lost proportionally faster than total fat in weight loss (Chaston & Dixon 2008 meta-analysis). |
waterPerGramSodium | 0.31 | kg/g Na | derived | Extracellular fluid holds ~3.2 g Na per L (140 mmol/L), so retained sodium carries ≈0.31 L/g. |
sodiumReferenceMg | 2300 | mg/day | published | Dietary Guidelines upper limit. |
sodiumRetentionTau | 1.5 | days | guess | Renal adjustment to sodium load takes 1–3 days. |
skeletalMuscleShareMale | 0.5 | fraction of FFM | derived | Janssen 2000 (J Appl Physiol 89:81): SMM ≈ 38 % of body mass in men → ~50 % of FFM. |
skeletalMuscleShareFemale | 0.45 | fraction of FFM | derived | Janssen 2000: ≈ 31 % of body mass in women. |
hypertrophyMaxRate | 0.001 | 1/day | derived | Max relative growth of a trained region with optimal inputs, untrained. Wernbom 2007 (Sports Med 37:225): quad CSA +0.1–0.2 %/day in intensive studies; low end used because whole-body gains in a meta-analysis are smaller (Benito 2020). Was 0.002, which gave +7.3 kg muscle in a beginner’s first year. |
hypertrophyDiminishingExp | 4 | exponent | derived | Growth rate × (1 − progress to ceiling)^exp. Tuned so a beginner on a full-body program in a high-protein surplus gains ~1.5–2 kg skeletal muscle in 12 weeks (Benito 2020 meta-analysis, Int J Environ Res Public Health 17:1285: +1.1–1.5 kg SMM/lean mass over ~10 weeks; protein adds ~0.3 kg, Morton 2018) and ~3–4.5 kg in year 1, slowing each year. |
ceilingFactorMale | 1.5 | M_max/M_0 | derived | Natural FFMI ceiling ≈ 25 (Kouri 1995) vs untrained ≈ 19 → ~+50 % muscle in trained regions. |
ceilingFactorFemale | 1.4 | M_max/M_0 | guess | Assumed slightly lower relative headroom. |
stimulusSetsHalf | 8 | sets/week | derived | Weekly sets giving ~63 % of max stimulus. Schoenfeld 2017 dose–response (≥10 sets/week best). |
sarcopeniaRate | 0.006 | 1/year | published | Muscle loss ~0.5–1 %/year after ~40–50 (Mitchell 2012, Front Physiol 3:260). |
sarcopeniaOnsetAge | 40 | years | published | Mitchell 2012. |
proteinOptimal | 1.6 | g/kg/day | published | Morton 2018 meta-analysis (Br J Sports Med 52:376): benefit plateaus ≈1.6 g/kg. |
proteinFloor | 0.5 | g/kg/day | guess | Protein below which training gains are ~zero (RDA is 0.8). |
startHeadroom | 1.15 | cap/start load | guess | Assume the user starts at ~85 % of what they can do for the given reps. |
neuralGainMax | 0.25 | fraction | published | Early strength gains of 20–30 % largely neural (Moritani & deVries 1979; Sale 1988). |
neuralGainSessions | 12 | sessions | derived | Neural gains mostly in weeks 1–8 (docs/02). |
fatiguePerSession | 15 | index pts | guess | Fatigue added per full session on a region. |
fatigueRecoveryRate | 0.5 | 1/day | guess | Fatigue clearance at perfect recovery (~48 h to mostly recover). |
fatigueStrengthPenalty | 0.4 | fraction at fatigue 100 | guess | How much residual fatigue lowers usable strength. |
siTau | 30 | days | guess | Chronic SI drifts to its target over weeks. |
siVisceralSlope | 0.2 | 1/kg VAT | guess | SI falls ~18 % per extra kg visceral fat (direction: Preis 2010; magnitude guessed). |
siLiverFatSlope | 0.04 | 1/% | guess | Liver fat lowers hepatic and whole-body SI (Fabbrini 2009). |
siSleepSlope | 0.06 | 1/h | derived | Short sleep lowers SI (Spiegel 1999; Donga 2010: −19 % after one 4 h night). Chronic effect assumed smaller. |
siTrainingBoost | 0.15 | fraction | published | Regular training raises SI ~10–25 % (Bird & Hawley 2017). |
siExerciseAcuteBoost | 0.3 | fraction | published | Post-exercise SI rises ~20–40 % for up to 24–48 h (Richter 1989; Mikines 1988). |
siExerciseAcuteTau | 720 | min | derived | Decay of the acute post-exercise boost. |
exerciseGlucoseUptake | 0.004 | 1/min | guess | Insulin-independent GLUT4 uptake during exercise, per unit intensity. |
hrMaxIntercept | 208 | bpm | published | Tanaka 2001 (JACC 37:153): HRmax = 208 − 0.7 × age. |
hrMaxSlope | 0.7 | bpm/year | published | Tanaka 2001. |
hrPerTefKcalMin | 20 | bpm per kcal/min | guess | Postprandial HR rise +4–12 bpm (docs/02; Kelbaek 1989). |
hrPerVisceralKg | 0.8 | bpm/kg | guess | Resting HR rises with visceral adiposity. |
hrSleepSlope | 1.5 | bpm/h short | guess | Short sleep raises resting HR slightly. |
hrCardioFitnessDrop | 8 | bpm | derived | Endurance training lowers RHR ~5–10 bpm (Reimers 2018 meta-analysis). |
acuteInflTau | 360 | min | guess | ILLUSTRATIVE. Decay of the acute inflammation index. |
acuteInflPerGlucoseMin | 0.003 | pts per mg/dL·min above 140 | guess | ILLUSTRATIVE. Kept small: single-meal effects are weakly supported (docs/06). |
acuteInflPerSatFatG | 0.12 | pts/g | guess | ILLUSTRATIVE. |
acuteInflPerTransFatG | 0.5 | pts/g | guess | ILLUSTRATIVE. |
acuteInflNova4 | 1.5 | pts/meal | guess | ILLUSTRATIVE. Weak evidence for meal-level effect. |
acuteInflPerSession | 6 | pts/session | guess | ILLUSTRATIVE. Transient hormetic exercise signal. |
chronicInflTau | 60 | days | guess | ILLUSTRATIVE. |
ghrelinTau | 45 | min | guess | ILLUSTRATIVE hunger index response time. |
Main sources
- Hall KD. What is the required energy deficit per unit weight loss? Int J Obes 2008;32:573–6.
- Hall KD. Predicting metabolic adaptation, body weight change, and energy intake in humans. Am J Physiol Endocrinol Metab 2010;298:E449–66.
- Hall KD, et al. Quantification of the effect of energy imbalance on bodyweight. Lancet 2011;378:826–37.
- Bergman RN, et al. Quantitative estimation of insulin sensitivity. Am J Physiol 1979;236:E667–77.
- Dalla Man C, Rizza RA, Cobelli C. Meal simulation model of the glucose-insulin system. IEEE Trans Biomed Eng 2007;54:1740–9.
- American Diabetes Association. Classification and diagnosis of diabetes. Standards of Care in Diabetes (current edition).
- Tappy L, Lê KA. Metabolic effects of fructose and the worldwide increase in obesity. Physiol Rev 2010;90:23–46.
- Westerterp KR. Diet induced thermogenesis. Nutr Metab 2004;1:5.
- Ainsworth BE, et al. 2011 Compendium of Physical Activities. Med Sci Sports Exerc 2011;43:1575–81.
- Wernbom M, Augustsson J, Thomeé R. The influence of frequency, intensity, volume and mode of strength training on whole muscle cross-sectional area in humans. Sports Med 2007;37:225–64.
- Morton RW, et al. A systematic review, meta-analysis and meta-regression of the effect of protein supplementation on resistance training-induced gains. Br J Sports Med 2018;52:376–84.
- American Heart Association. Added sugars recommendations (≤36 g/day men, ≤25 g/day women).
- U.S. Department of Agriculture, Agricultural Research Service. FoodData Central, fdc.nal.usda.gov.
Review and changes
The model has not yet been reviewed by a dietitian, physiologist or physician. If you are one and spot a problem, we would like to hear from you. Changes: 2026-11-26: first public methods page (engine v0.1, pages v1).