TDEE & Macro Calculator avatar

TDEE & Macro Calculator

Pricing

from $1.00 / 1,000 calculation completed

Go to Apify Store
TDEE & Macro Calculator

TDEE & Macro Calculator

Calculate BMR, TDEE, a goal-based calorie target and daily and per-meal protein, carb and fat grams from age, sex, weight, height and activity level. Deterministic and instant.

Pricing

from $1.00 / 1,000 calculation completed

Rating

0.0

(0)

Developer

Chun-Yung Yong Lo

Chun-Yung Yong Lo

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

an hour ago

Last modified

Features

Limited permissionsSingle-tenantServer interface

Share

Calculate your daily calorie needs and macro targets in one call. Give age, sex, weight, height and activity level and get BMR, TDEE, a goal-adjusted calorie target, protein/carb/fat grams per day and per meal, and BMI. Runs offline, is deterministic, and returns instantly.

What it does

  • BMR with the Mifflin-St Jeor equation: 10*kg + 6.25*cm - 5*age + 5 (male) or - 161 (female).
  • TDEE = BMR x activity multiplier (sedentary 1.2, light 1.375, moderate 1.55, active 1.725, veryActive 1.9).
  • Goal: lose = 80% of TDEE, maintain = 100%, gain = 110%.
  • Macro presets (share of calories, protein/carbs/fat): balanced 25/45/30, highProtein 35/35/30, lowCarb 30/20/50, keto 20/5/75. Protein and carbs are 4 kcal/g, fat 9 kcal/g.
  • Calories and macros split equally across 1-8 meals.

It does not include a food database or recipe-level meal plans.

Input example

{"sex": "male", "ageYears": 30, "weightKg": 80, "heightCm": 180, "activityLevel": "moderate", "goal": "maintain", "dietType": "balanced", "mealsPerDay": 3}

Limits: age 15-100, weight 30-300 kg, height 100-250 cm, meals 1-8.

Output example

{"status": "ok", "sex": "male", "ageYears": 30.0, "weightKg": 80.0, "heightCm": 180.0, "activityLevel": "moderate", "goal": "maintain", "dietType": "balanced", "formula": "Mifflin-St Jeor", "bmr": 1780, "tdee": 2759, "targetCalories": 2759, "proteinGrams": 172.4, "carbsGrams": 310.4, "fatGrams": 92.0, "bmi": 24.7, "mealsPerDay": 3, "caloriesPerMeal": 920, "proteinPerMealGrams": 57.5, "carbsPerMealGrams": 103.5, "fatPerMealGrams": 30.7, "warning": null}

Every row has a status field (ok on success). If the target is below 1500 kcal (male) or 1200 kcal (female), warning explains it. Invalid input stops the run with a clear error message naming the field.

Pricing

US$0.001 per calculation (one run = one calculation).

For AI agents (MCP)

Call this Actor through Apify's MCP server with:

{"sex": "female", "ageYears": 25, "weightKg": 60, "heightCm": 165, "activityLevel": "light", "goal": "lose", "dietType": "highProtein", "mealsPerDay": 4}

One call returns one row with a status of ok and costs US$0.001. Field names are stable camelCase. Check warning before presenting a low-calorie target to a user.

Limits and disclaimer

Estimates only, not medical advice. Equations are population averages; consult a qualified professional for medical conditions, pregnancy, or adolescents.

Credits

Uses the Mifflin-St Jeor equation (Mifflin et al., 1990), a published scientific formula, implemented from scratch. No third-party code or license applies; the Actor has no upstream open-source dependency.