{
  "schemaVersion": 1,
  "slug": "tdee-calculator",
  "category": "health",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "9363b05ab354c8a9ed8f034c905851d36b8e00faa53602bd0586af84f526bb8e",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/tdee-calculator.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "TDEE = (10W + 6.25H − 5A + s) × k",
    "vars": [
      [
        "W",
        "Body weight (kg)"
      ],
      [
        "H",
        "Height (cm)"
      ],
      [
        "A",
        "Age (years)"
      ],
      [
        "s",
        "Sex constant: +5 men, −161 women"
      ],
      [
        "k",
        "Activity multiplier"
      ],
      [
        "TDEE",
        "Daily energy expenditure"
      ]
    ],
    "note": "Mifflin–St Jeor equation; the bracket term is BMR (kcal/day). TDEE = BMR × k with the chosen activity factor."
  },
  "externalEvidence": {
    "reviewedAt": "2026-10-12",
    "sources": [
      {
        "name": "NIDDK — Body Weight Planner",
        "url": "https://www.niddk.nih.gov/health-information/weight-management/body-weight-planner"
      },
      {
        "name": "Mifflin et al. (1990) — Resting energy expenditure equation",
        "url": "https://pubmed.ncbi.nlm.nih.gov/2305711/"
      }
    ]
  },
  "contract": {
    "compute": "const base = 10 * weight + 6.25 * height - 5 * age; const bmr = sex === 'male' ? base + 5 : base - 161; return { bmr: bmr, tdee: bmr * activity };",
    "inputs": [
      {
        "name": "weight",
        "type": "number",
        "default": 70,
        "min": 1,
        "max": 500,
        "step": 0.1,
        "slider": true
      },
      {
        "name": "height",
        "type": "number",
        "default": 170,
        "min": 50,
        "max": 250,
        "step": 0.5,
        "slider": true
      },
      {
        "name": "age",
        "type": "number",
        "default": 30,
        "min": 19,
        "max": 120,
        "step": 1,
        "slider": true
      },
      {
        "name": "sex",
        "type": "select",
        "default": "male",
        "options": [
          {
            "value": "male"
          },
          {
            "value": "female"
          }
        ]
      },
      {
        "name": "activity",
        "type": "select",
        "default": 1.375,
        "options": [
          {
            "value": 1.2
          },
          {
            "value": 1.375
          },
          {
            "value": 1.55
          },
          {
            "value": 1.725
          },
          {
            "value": 1.9
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "tdee",
        "precision": 0,
        "unit": "kcal/day"
      },
      {
        "name": "bmr",
        "precision": 0,
        "unit": "kcal/day"
      }
    ],
    "interpret": null
  }
}
