🛠️ToolsShed

TDEE Calculator

Calcula tu Gasto Energético Total Diario y tus necesidades calóricas diarias.

La calculadora TDEE estima tu Gasto Energético Total Diario — el total de calorías que tu cuerpo quema en un día, teniendo en cuenta tu Tasa Metabólica Basal (TMB) y tu nivel de actividad física. El TDEE es la base de cualquier plan dietético o de fitness basado en calorías.

Introduce tu edad, altura, peso, sexo biológico y selecciona tu nivel de actividad. La herramienta usa la ecuación de Mifflin-St Jeor para calcular la TMB y la multiplica por un factor de actividad para producir tu TDEE.

Tu TDEE es una estimación — el metabolismo individual varía. Úsalo como punto de partida, realiza un seguimiento del cambio real de peso durante 2-3 semanas y ajusta tu ingesta calórica en consecuencia.

Preguntas Frecuentes

Implementación de Código

def mifflin_bmr(weight_kg, height_cm, age, sex):
    """
    Mifflin-St Jeor BMR formula (1990).

    Parameters:
        weight_kg  - body weight in kilograms
        height_cm  - height in centimetres
        age        - age in years
        sex        - 'male' or 'female'

    Returns BMR in kcal/day.
    """
    bmr = 10 * weight_kg + 6.25 * height_cm - 5 * age
    bmr += 5 if sex.lower() == 'male' else -161
    return bmr

def tdee(weight_kg, height_cm, age, sex, activity_level='sedentary'):
    """
    Calculate Total Daily Energy Expenditure (TDEE).

    Activity multipliers (Mifflin-St Jeor):
        sedentary        1.2   (desk job, little/no exercise)
        light            1.375 (1-3 days/week exercise)
        moderate         1.55  (3-5 days/week exercise)
        active           1.725 (6-7 days/week hard exercise)
        very_active      1.9   (physical job + hard exercise)
    """
    multipliers = {
        'sedentary':   1.2,
        'light':       1.375,
        'moderate':    1.55,
        'active':      1.725,
        'very_active': 1.9,
    }
    bmr = mifflin_bmr(weight_kg, height_cm, age, sex)
    factor = multipliers.get(activity_level, 1.2)
    return bmr * factor

# Example: 30-year-old male, 80 kg, 180 cm, moderately active
bmr  = mifflin_bmr(80, 180, 30, 'male')
tdee_val = tdee(80, 180, 30, 'male', 'moderate')
print(f"BMR:  {bmr:.0f} kcal/day")
print(f"TDEE: {tdee_val:.0f} kcal/day")
print(f"Weight loss target (-500 kcal): {tdee_val - 500:.0f} kcal/day")
print(f"Muscle gain target (+250 kcal): {tdee_val + 250:.0f} kcal/day")

Comments & Feedback

Comments are powered by Giscus. Sign in with GitHub to leave a comment.