Skip to content
PithLab

↑↓ to move · Enter to open · Esc to close

Calorie and TDEE Calculator API

Basal metabolic rate (Mifflin–St Jeor) and total daily energy expenditure for an adult, with calorie targets to lose, maintain or gain weight and macro grams.

POST /api/v1/tools/tdee-calculatorMCP tdee_calculatorCalculators

Estimate your BMR and total daily energy expenditure, then see calorie targets to lose, maintain or gain weight and a suggested protein, fat and carb split.

Input

Send these as a JSON object. Unknown fields are rejected.

sex
male or female. (string, one of male, female, required)
age
Age in whole years (18 to 100). (integer, 18 to 100, required)
units
metric: kg and cm. imperial: lb, and height in feet plus inches. (string, one of metric, imperial, default "metric")
weight
Weight in kg (metric) or lb (imperial); 30 to 300 kg. (number, 0 to …, required)
height
Height in cm (metric, 100 to 250) or whole feet (imperial). (number, 0 to …, required)
heightInches
Imperial only: inches on top of the feet. (number, 0 to 120)
activity
Activity level: sedentary = Sedentary (little or no exercise) (×1.2); light = Lightly active (exercise 1–3 days a week) (×1.375); moderate = Moderately active (exercise 3–5 days a week) (×1.55); very = Very active (hard exercise 6–7 days a week) (×1.725); extra = Extra active (physical job or training twice a day) (×1.9). (string, one of sedentary, light, moderate, very, extra, default "moderate")
macroSplit
Macro split for the maintenance calories: balanced = Balanced (30% protein, 30% fat, 40% carbs); lower-carb = Lower carb (35% protein, 40% fat, 25% carbs); higher-carb = Higher carb (25% protein, 20% fat, 55% carbs). (string, one of balanced, lower-carb, higher-carb, default "balanced")
curl https://pithlab.com/api/v1/tools/tdee-calculator \n  -H "Authorization: Bearer $PITHLAB_KEY" \n  -H "Content-Type: application/json" \n  -d '{"sex":"female","age":30,"units":"metric","weight":65,"height":168,"activity":"moderate"}'
Example response
{
  "ok": true,
  "result": {
    "bmr": 1389,
    "tdee": 2153,
    "targets": [
      {
        "goal": "lose-0.5",
        "label": "Lose 0.5 kg (1.1 lb) a week",
        "calories": 1603,
        "belowSafeMinimum": false
      },
      {
        "goal": "lose-0.25",
        "label": "Lose 0.25 kg (0.55 lb) a week",
        "calories": 1878,
        "belowSafeMinimum": false
      },
      {
        "goal": "maintain",
        "label": "Maintain weight",
        "calories": 2153,
        "belowSafeMinimum": false
      },
      {
        "goal": "gain-0.25",
        "label": "Gain 0.25 kg (0.55 lb) a week",
        "calories": 2428,
        "belowSafeMinimum": false
      },
      {
        "goal": "gain-0.5",
        "label": "Gain 0.5 kg (1.1 lb) a week",
        "calories": 2703,
        "belowSafeMinimum": false
      }
    ],
    "maintenanceMacros": {
      "proteinG": 161,
      "fatG": 72,
      "carbsG": 215
    },
    "text": "BMR about 1,389 kcal/day; TDEE about 2,153 kcal/day (1.55 × BMR)"
  }
}