"Every TDEE calculator gives me different numbers. Which one is correct?"
That's the title of a February 2026 post on r/WeightLossAdvice. The poster gave her stats (19, female, 165 cm, 120 kg, sedentary) and said the answers "varied from 2500-1700kcal". An app told her to eat 1,700 a day to lose weight, and some websites said 1,300. A month later on r/loseit, a 26-year-old man asked the same thing in different words ("Calorie calculators giving me so many different numbers"). His own arithmetic gave him 2,832 a day to eat while still losing weight, and the online calculators gave 2,200 and 2,400. "How do you guys know which one to use? This is so jarring."
The replies in both threads are sensible: they're all estimates, pick one, track your weight, adjust. A developer can add something more specific, because a TDEE calculator is a small program that makes about six choices, and each one moves the result. Some are legitimate science choices. Some are product choices nobody labels. And some are bugs that print a perfectly believable number. In October 2026 an open-source nutrition app, OpenNutriTracker, opened an issue because "many users know Mifflin-St Jeor from other apps and get a different number" from it. One user was sure the app used the wrong activity coefficient. It didn't. It used a different equation family with its own coefficients.
This post builds a TDEE calculator as a small, dependency-free JavaScript module, reproduces each source of disagreement, and pins the numbers down with 14 node --test tests. Both charts are generated from the tested module. It's equation arithmetic, not a measurement of anyone's metabolism, and not nutrition or medical advice.
Who asks, and what they actually want
Across the threads, the people asking fall into roughly four groups:
- People comparing apps and sites. A 2018 r/loseit poster found that Lose It and MyFitnessPal differed by 400 kcal "with the same numbers". A 2017 poster (6'0", 215 lb, 23, "sedentary as a rock") got "anywhere between 2200 and 3000".
- People who picked an activity level. In a 2021 r/caloriecount thread, the poster worked out that the step from sedentary (1.2) to lightly active (1.375) was "about 250 calories a day for me", the equivalent, by their maths, of 5 km of walking every day.
- People whose results disagree with the calculator. In December 2025 an r/loseit poster wrote, "According to every TDEE calculator I've used, my TDEE is roughly 1450". She was eating 1,200 a day and losing 1.0 to 1.2 lb a week, and a tracking spreadsheet put her TDEE at 1,822.
- People building calculators. On X between August and December 2026 there were plenty of launch posts for new BMR and TDEE calculators, and posts quoting "the Mifflin number" without saying which multiplier was inside it.
The fourth group's code decides what the first three see, so let's write that code.
TDEE is two guesses multiplied together
Nearly every web calculator does the same two steps:
- Estimate resting or basal energy (BMR/REE) from sex, age, height and weight (or lean mass) with a regression equation fitted to a study population.
- Multiply by an activity factor to get total daily energy expenditure (TDEE), which people often call "maintenance".
Both steps involve choices. Here are four equations you'll find in real calculators, each traced back to where it was published:
export const FORMULAS = { // Mifflin et al. 1990, simplified sex-specific form mifflin: ({ sex, kg, cm, age }) => 10 * kg + 6.25 * cm - 5 * age + (sex === "male" ? 5 : -161), // Harris-Benedict 1919, as printed in Roza & Shizgal 1984, Table 3 harrisBenedict1919: ({ sex, kg, cm, age }) => sex === "male" ? 66.473 + 5.003 * cm + 13.752 * kg - 6.755 * age : 655.096 + 1.850 * cm + 9.563 * kg - 4.676 * age, // Roza & Shizgal 1984 revision of Harris-Benedict harrisBenedictRevised: ({ sex, kg, cm, age }) => sex === "male" ? 88.362 + 4.799 * cm + 13.397 * kg - 5.677 * age : 447.593 + 3.098 * cm + 9.247 * kg - 4.330 * age, // Schofield 1985 via FAO/WHO/UNU 2001: weight and an age band only schofield: ({ sex, kg, age }) => { const band = SCHOFIELD[sex].find((r) => age >= r.from && age < r.to); if (!band) throw new RangeError(`no adult band for age ${age}`); return band.a * kg + band.b; }, }; There's also a fifth that many calculators call "Katch-McArdle": 370 + 21.6 × lean mass (kg). The same constants appear in Cunningham's 1991 review as a general prediction equation from fat-free mass. It needs a body-fat percentage, so the module only uses it when one is supplied.
There are golden values to test against. Roza and Shizgal's paper includes a worked example for a 70 kg, 170 cm, 50-year-old man: 1,542 kcal/day with the 1919 equation and 1,558 with their revision. Body Visualizer's weight loss calculator publishes its own worked example: Mifflin-St Jeor gives a 30-year-old man at 180 cm and 90 kg 1,880 kcal, and 2,585 at the "light" multiplier. The module reproduces all four numbers, and they're the first tests in the file.
Mifflin's 1990 abstract gives two forms: a full one (9.99 × weight + 6.25 × height − 4.92 × age + 166 × sex − 161) and the rounded sex-specific one above, which the authors say predicts just as well. Over a grid of adult heights, weights and ages, the two differ by at most 6 kcal. So "which Mifflin" isn't why your numbers disagree.
The activity dropdown is the real disagreement
Now take the r/WeightLossAdvice poster's inputs and run every equation through the five-step activity ladder most calculators use (1.2, 1.375, 1.55, 1.725, 1.9, the same values the Body Visualizer page shows).
Every TDEE calculator gives me different numbers: for the same inputs, the activity level moves the estimate far more than the choice of equation.
At "sedentary", the three equations that use height agree within 53 kcal (2,370 to 2,423). Schofield, which uses only weight and an age band, comes in 347 kcal above Mifflin for her. But just changing the dropdown moves Mifflin from 2,370 to 3,753, a spread of 1,383 kcal. That's the biggest single reason two calculators disagree, and a reply in the r/loseit thread said it directly: "The biggest variable is the activity multiplier."
Two more details from her post stand out once the numbers are on a chart:
- No combination of equation and multiplier gives 1,700 or 1,300 for her inputs. The lowest dot is 2,370. The figures she quoted are intake targets after somebody subtracted a deficit. Different sites subtract different amounts, and some label the result in a way that's easy to read as TDEE.
- The ladders aren't even on the same scale. The FAO/WHO/UNU 2001 report classifies a "sedentary or light activity lifestyle" as a physical activity level of 1.40 to 1.69, and "active or moderately active" as 1.70 to 1.99. The typical web calculator's "sedentary" is 1.2. The r/loseit poster's "1.7 (moderately active)" sits right at FAO's band boundary, and it's well above what most calculators mean by moderate (1.55). OpenNutriTracker uses the IOM 2005 equations, where activity enters as a coefficient inside the equation (1.12 for "low active" men in the version it cites). Ask "what multiplier did you use?" and three tools may give you three different scales.
Hidden choices that change the number
Beyond the equation and the ladder, a few choices rarely appear in the UI.
Age bands. Schofield's equations come in bands that the FAO table labels "18-30" and "30-60". Read literally, those overlap at 30. The module treats them as half-open ([18, 30), [30, 60)). For an 84 kg man, the estimate drops by 120 kcal overnight on his 30th birthday. If you write the bands as closed intervals, find matches the first band at exactly 30, and the jump arrives a year later. Neither is "the" answer, but your tests should pick one on purpose.
Body fat changes the equation, not just an input. Body Visualizer's planner switches to the lean-mass equation when you enter a body-fat percentage, and the page says outright that this "is not automatically more accurate". The result is only as good as the body-fat estimate behind it. (A lean body mass calculator that shows Boer, James and Hume side by side is a good reminder that lean mass is itself an estimate.)
Hidden multipliers. An X post in November 2026 said that "Mifflin-St Jeor puts a 30-year-old, 5'10", 180 lb man at ~2,763 cal/day." Mifflin's BMR for that man is 1,782.7. The 2,763 is that number times 1.55, the "moderate" multiplier. Nothing in the sentence says so. If your app shows one number, say what's inside it.
Rounding. The r/loseit reply that gave a TDEE of 2,210 was rounding down 2,210.55. Harmless, but the tests allow ±1 kcal because of it.
One person, eight "calculators"
Here's the r/loseit poster (26, male, 5'11", 84 kg). Change one decision at a time, and include three bugs that come up again and again in beginner calculator code.
Every TDEE calculator gives me different numbers: different equations (teal), different multipliers (amber) and implementation bugs (rose), all from the same four inputs.
The three rose bars are worth a closer look:
- The sex enum falls through.
sex === "male" ? 5 : -161looks fine until a form sends"M"or"Male". Every man then gets the female constant, 166 kcal lower before the multiplier and 199 lower after it. 2,011 is a very believable number. - Inches read as centimetres. He's 5'11". If a metric-only field receives 71, BMR loses
6.25 × (180.34 − 71), which is 683 kcal, and TDEE drops to 1,390. - Pounds read as kilograms. 84 kg is 185.2 lb. Put that into the kg slot and TDEE goes up by 1,214 kcal, to 3,425.
None of these are absurd. A reader who gets 1,390 or 3,425 has no way to tell it's a bug, and if a calculator prints a number, people will take it seriously.
There's a quieter hazard in copying coefficients. A 2023 review in Metabolites (Pavlidou et al.) prints the revised Harris-Benedict female age coefficient as "4330" in its Table 1, where the original paper has 4.330. Paste that in and a 19-year-old's BMR comes out at about −80,000 kcal. That one is at least absurd, so a plausibility gate catches it. Copy constants from the primary source, and test them against the primary source's own worked example.
Validate input like you mean it
Most of these bugs disappear if one function turns raw form values into a typed object and refuses to guess:
export function normalizeInput(raw) { const errors = []; const { sex } = raw; if (sex !== "male" && sex !== "female") errors.push(`sex must be "male" or "female", got ${JSON.stringify(sex)}`); // Height and weight each carry their OWN unit: people write "5'11, 84 kg". let cm = NaN; if (raw.height?.cm != null) cm = num(raw.height.cm); else if (raw.height?.ft != null) cm = (num(raw.height.ft) * 12 + num(raw.height.in ?? 0)) * 2.54; if (!Number.isFinite(cm)) errors.push("height is missing or not a number"); else if (cm < 120 || cm > 230) errors.push(`height ${cm.toFixed(1)} cm (wrong unit?)`); let kg = NaN; if (raw.weight?.kg != null) kg = num(raw.weight.kg); else if (raw.weight?.lb != null) kg = num(raw.weight.lb) * 0.45359237; if (!Number.isFinite(kg)) errors.push("weight is missing or not a number"); else if (kg < 30 || kg > 300) errors.push(`weight ${kg.toFixed(1)} kg (wrong unit?)`); const age = num(raw.age); if (!Number.isInteger(age) || age < 18 || age > 100) errors.push("age must be 18-100 (adult equations)"); let bodyFatPct = null; if (raw.bodyFatPct != null && raw.bodyFatPct !== "") { bodyFatPct = num(raw.bodyFatPct); if (bodyFatPct > 0 && bodyFatPct < 1) errors.push(`body fat ${bodyFatPct} looks like a fraction; enter 25, not 0.25`); else if (!(bodyFatPct >= 3 && bodyFatPct <= 60)) errors.push("body fat must be 3-60 %"); } if (errors.length) throw Object.assign(new RangeError(errors.join("; ")), { errors }); return { sex, kg, cm, age, bodyFatPct }; } Here num() returns NaN for empty strings instead of Number("")'s 0. A few design notes:
- Separate units per field. The r/loseit poster gave height in feet and weight in kilograms, which is normal in the UK and Australia. A single global "metric/imperial" toggle forces people to convert by hand, and hand conversion is where 71-as-centimetres comes from.
- Range checks find unit errors. 71 cm and 385 kg are both outside any adult range, so the form can ask "did you mean inches?" instead of printing 1,390.
- The enum is closed. No default branch for sex. If the form sends something else, that's a bug to fix, not a fallback to the female constant.
- Adults only. These equations come from adult samples, and Schofield's adult bands start at 18. Refuse below that rather than extrapolate.
Tests that would catch it
The test file has 14 tests. The important ones check against numbers someone else published:
test("golden: Roza & Shizgal 1984 Table 4: HB 1919 = 1,542, revised = 1,558", () => { const p = { sex: "male", kg: 70, cm: 170, age: 50 }; close(FORMULAS.harrisBenedict1919(p), 1542); close(FORMULAS.harrisBenedictRevised(p), 1558); }); test("golden: r/loseit reply (26 M, 5'11\", 84 kg): Mifflin 1,842, sedentary 2,210", () => { const p = normalizeInput({ sex: "male", height: { ft: 5, in: 11 }, weight: { kg: 84 }, age: 26 }); close(bmr("mifflin", p), 1842); close(tdee(p).tdee, 2210, 1); }); test("unit and enum bugs are refused", () => { assert.throws(() => normalizeInput({ sex: "M", height: { cm: 180 }, weight: { kg: 84 }, age: 26 }), /sex must be/); assert.throws(() => normalizeInput({ sex: "male", height: { cm: 71 }, weight: { kg: 84 }, age: 26 }), /wrong unit/); }); Other tests cover the December 2025 poster's "roughly 1450" (Mifflin sedentary gives 1,440), the hidden 1.55 in the X post, the Schofield birthday jump, the 0.25-as-body-fat refusal, the 4330 typo, and a last test that checks the JSON behind the charts against the module so the images can't drift from the code. A "bigger person, bigger number?" test would pass for every buggy version above. Only golden values and refusals catch them.
So which one is correct?
For the equation step, there's a reasonable default. A 2005 systematic review by Frankenfield, Roth-Yousey and Compher found Mifflin-St Jeor "the most reliable, predicting RMR within 10% of measured in more nonobese and obese individuals than any other equation", with the narrowest error range. The same review warns that older adults and US ethnic minorities were underrepresented, and that "noteworthy errors" remain for individuals. Mifflin's own sample was 498 people, and the equation explains 71% of the variance (R² = 0.71). Roza and Shizgal put Harris-Benedict's precision at about ±14%. So the honest answer is that a good equation is a good starting estimate, not a measurement.
For the activity step, nobody can tell you who's right, because the calculator can't see your day. That's why replies keep saying to start at sedentary, and why the Body Visualizer page says "If unsure, choose one level lower."
The only number that's really yours comes from your own log. Average intake plus the energy value of the weight change gives an implied TDEE:
export const impliedTdee = ({ avgIntakeKcal, lossKgPerWeek, kcalPerKg = 7700 }) => avgIntakeKcal + (lossKgPerWeek * kcalPerKg) / 7; For the December 2025 poster (1,200 kcal a day, 1.0 to 1.2 lb a week), that gives about 1,700 to 1,800 kcal, against the calculators' 1,440. Her spreadsheet said 1,822, and a commenter's mental maths said "around 1700". All of these share the 7,700 kcal/kg (3,500 kcal/lb) simplification. Kevin Hall's 2008 analysis shows that rule fits people with more body fat reasonably well and overestimates the deficit needed for leaner people. Early weeks also include water. So use a weight trend rather than two weigh-ins (I covered building one in a previous post on weight trend lines), and treat the result as a range.
What to show in the UI
If you ship one of these, a few things make the number easier to trust:
- Name the equation and the multiplier next to the result, as in "Mifflin-St Jeor × 1.2 (sedentary)". The OpenNutriTracker issue proposes the same fix: show each equation with its citation in the app, or add a "Why this number?" explainer that names the equation and its activity values.
- Keep TDEE and target intake visibly separate. Half the confusion in the primary thread came from comparing a maintenance estimate with a deficit target.
- Show a band rather than a single point, or at least show the adjacent activity levels, so the reader can see that the dropdown is a guess.
- Ask for your own data later. Body Visualizer's planner tells you to "Recalculate with your actual weight every 2–4 weeks", recalculates expenditure as simulated weight falls, and says it is "not the NIH Body Weight Planner". That's the right amount of modesty for a planning tool.
- Say what body fat does. If an optional body-fat field switches equations, say so, and link to where the estimate comes from (for example, a body fat calculator that compares the Navy and BMI-based methods). Don't imply it's a lab measurement.
So, why does every TDEE calculator give you a different number?
Mostly it's the activity level: one step on the ladder is a few hundred kcal, and the ladders themselves differ between calculators. Next comes the equation (53 and 107 kcal apart at "sedentary" for the two posters here, among the height-based ones, and more for a weight-only equation). Then the hidden choices: age bands, a body-fat switch, a multiplier inside a quoted number, and whether the screen shows maintenance or a deficit target. Last are bugs, which can be off by more than 1,000 kcal and still look reasonable. None of the calculators is "correct" for you on day one. A well-labelled one gives you a reasonable starting point, and your own trend data refines it.
If you build one, close your enums, give each field its own unit, refuse impossible input, and test against numbers somebody else published. The module is about 150 lines with no dependencies and runs with node --test.
Sources
- r/WeightLossAdvice, "Every TDEE calculator gives me different numbers. Which one is correct?" (Feb 2026): https://www.reddit.com/r/WeightLossAdvice/comments/1qvq9hi/every_tdee_calculator_gives_me_different_numbers/
- r/loseit, "Calorie calculators giving me so many different numbers" (Mar 2026): https://www.reddit.com/r/loseit/comments/1rnm2p3/calorie_calculators_giving_me_so_many_different/
- r/loseit, Adaptive TDEE spreadsheet vs online calculators (Dec 2025): https://www.reddit.com/r/loseit/comments/1pnouho/may_anyone_share_their_experience_using_the/
- r/loseit, "Why is there so much variation between estimates of daily caloric expenditures?" (2017): https://www.reddit.com/r/loseit/comments/6hlqdt/why_is_there_so_much_variation_between_estimates/
- r/loseit, "Is there a consensus on what calorie calculator is most accurate?" (2018): https://www.reddit.com/r/loseit/comments/8lnv5j/is_there_a_consensus_on_what_calorie_calculator/
- r/caloriecount, "TDEE calculators" (2021): https://www.reddit.com/r/caloriecount/comments/lpx9nz/tdee_calculators/
- X post quoting a Mifflin figure (Nov 2026): https://x.com/ForgeYourFit/status/2125996775416934451
- OpenNutriTracker issue #1311, "Offer Mifflin-St Jeor as an alternative energy equation": https://github.com/simonoppowa/OpenNutriTracker/issues/1311
- Mifflin et al., "A new predictive equation for resting energy expenditure in healthy individuals", Am J Clin Nutr 1990: https://pubmed.ncbi.nlm.nih.gov/2305711/
- Roza & Shizgal, "The Harris Benedict equation reevaluated", Am J Clin Nutr 1984: https://pubmed.ncbi.nlm.nih.gov/6741850/
- Cunningham, "Body composition as a determinant of energy expenditure", Am J Clin Nutr 1991: https://pubmed.ncbi.nlm.nih.gov/1957828/
- Frankenfield, Roth-Yousey & Compher, "Comparison of predictive equations for resting metabolic rate in healthy nonobese and obese adults: a systematic review", J Am Diet Assoc 2005: https://pubmed.ncbi.nlm.nih.gov/15883556/
- FAO/WHO/UNU, Human energy requirements (2001), ch. 5, Tables 5.2 and 5.3: https://www.fao.org/4/y5686e/y5686e07.htm
- Pavlidou et al., "Revised Harris-Benedict Equation: New Human Resting Metabolic Rate Equation", Metabolites 2023 (Table 1): https://pmc.ncbi.nlm.nih.gov/articles/PMC9967803/
- Hall, "What is the required energy deficit per unit weight loss?", Int J Obes 2008: https://pubmed.ncbi.nlm.nih.gov/17848938/
- Body Visualizer, weight loss calculator and methodology: https://body-visualizer.net/weight-loss-calculator

