Refinance Rates Calculator Home

.tdee-calculator-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 800px; margin: 20px auto; padding: 0; border: 1px solid #e0e0e0; border-radius: 8px; background-color: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); } .tdee-calc-header { background-color: #2c3e50; color: white; padding: 20px; border-radius: 8px 8px 0 0; text-align: center; } .tdee-calc-header h3 { margin: 0; font-size: 24px; } .tdee-calc-body { padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .calc-input-group { margin-bottom: 15px; display: flex; flex-direction: column; } .calc-input-group label { font-weight: 600; margin-bottom: 8px; color: #333; font-size: 14px; } .calc-input-group input, .calc-input-group select { padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; transition: border-color 0.3s; } .calc-input-group input:focus, .calc-input-group select:focus { border-color: #3498db; outline: none; } .calc-radio-group { display: flex; gap: 20px; margin-top: 5px; } .radio-option { display: flex; align-items: center; cursor: pointer; } .radio-option input { margin-right: 8px; cursor: pointer; } .full-width { grid-column: 1 / -1; } .calc-btn { background-color: #e74c3c; color: white; border: none; padding: 15px 30px; font-size: 18px; font-weight: bold; border-radius: 6px; cursor: pointer; transition: background-color 0.3s; width: 100%; margin-top: 10px; } .calc-btn:hover { background-color: #c0392b; } .tdee-results { grid-column: 1 / -1; background-color: #f8f9fa; border: 1px solid #e9ecef; border-radius: 6px; padding: 25px; margin-top: 20px; display: none; } .result-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; padding: 12px 0; } .result-row:last-child { border-bottom: none; } .result-label { color: #555; font-weight: 500; } .result-value { font-weight: 800; font-size: 18px; color: #2c3e50; } .main-result { text-align: center; margin-bottom: 20px; border-bottom: 2px solid #ddd; padding-bottom: 15px; } .main-result h4 { margin: 0 0 10px 0; color: #7f8c8d; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; } .main-result .big-number { font-size: 42px; font-weight: 800; color: #27ae60; } .macro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 15px; text-align: center; } .macro-box { background: white; padding: 15px; border-radius: 8px; border: 1px solid #eee; } .macro-title { font-size: 12px; font-weight: 700; color: #95a5a6; text-transform: uppercase; margin-bottom: 5px; } .macro-val { font-size: 20px; font-weight: 700; color: #34495e; } .macro-sub { font-size: 12px; color: #7f8c8d; } .content-section { max-width: 800px; margin: 40px auto; line-height: 1.6; color: #333; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; } .content-section h2 { color: #2c3e50; margin-top: 30px; font-size: 28px; } .content-section p { margin-bottom: 15px; font-size: 17px; } .content-section ul { margin-bottom: 20px; padding-left: 20px; } .content-section li { margin-bottom: 10px; font-size: 17px; } @media (max-width: 600px) { .tdee-calc-body { grid-template-columns: 1fr; } .macro-grid { grid-template-columns: 1fr; } }

TDEE & Macro Calculator

Sedentary (Office job, little exercise) Lightly Active (Exercise 1-3 days/week) Moderately Active (Exercise 3-5 days/week) Very Active (Exercise 6-7 days/week) Extra Active (Physical job or 2x training)
Lose 1 lb per week (Recommended) Lose 2 lbs per week (Aggressive) Maintain Weight Gain 0.5 lb per week (Lean Bulk) Gain 1 lb per week

Daily Calorie Target

2,500
Calories / Day
Basal Metabolic Rate (BMR): 1,800
Maintenance Calories (TDEE): 2,500
Protein
180g
Moderate (30%)
Fats
80g
Healthy Fats (35%)
Carbs
250g
Fuel (35%)

Understanding Your TDEE and Macros

Calculating your Total Daily Energy Expenditure (TDEE) is the fundamental first step in any fitness journey. Whether you are looking to lose body fat, build muscle, or simply maintain your current physique, understanding the math behind your metabolism is crucial. This calculator uses the Mifflin-St Jeor equation, widely considered the most accurate formula for estimating calorie needs.

What is TDEE?

TDEE stands for Total Daily Energy Expenditure. It represents the total number of calories your body burns in a 24-hour period. It is composed of two main parts:

  • BMR (Basal Metabolic Rate): The calories your body burns just to stay alive (breathing, circulating blood, cell production) at complete rest.
  • Activity Expenditure: The calories burned through exercise, walking, your job, and Non-Exercise Activity Thermogenesis (NEAT).

If you eat exactly your TDEE, your weight will remain the same. To lose weight, you must eat below this number (a calorie deficit). To gain muscle, you typically need to eat slightly above this number (a calorie surplus).

How We Calculate Your Macros

While calories determine your weight, macronutrients (macros) determine your body composition. This calculator provides a balanced "Moderate Carb" split, which is effective for most people starting their journey:

  • Protein: Essential for muscle repair and retention. We prioritize protein to help you keep muscle while losing fat.
  • Fats: Vital for hormonal health and nutrient absorption.
  • Carbohydrates: The body's primary fuel source for high-intensity activity and brain function.

Tips for Success

1. Be Honest About Activity: Most people overestimate how active they are. If you have a desk job and lift weights 3 times a week, select "Lightly Active," not "Moderately Active."

2. Weigh Your Food: To hit these macro targets accurately, using a food scale and a tracking app is highly recommended.

3. Monitor and Adjust: Calculators are estimates. If you don't see weight changes after 2 weeks, adjust your daily intake by +/- 200 calories accordingly.

function calculateTDEE() { // 1. Get Input Values var age = parseFloat(document.getElementById('age').value); var weightLbs = parseFloat(document.getElementById('weight').value); var heightFt = parseFloat(document.getElementById('heightFt').value); var heightIn = parseFloat(document.getElementById('heightIn').value); var activityMultiplier = parseFloat(document.getElementById('activity').value); var goalAdjustment = parseFloat(document.getElementById('goal').value); // Get Gender Radio Value var gender = 'male'; var genderRadios = document.getElementsByName('gender'); for(var i = 0; i < genderRadios.length; i++) { if(genderRadios[i].checked) { gender = genderRadios[i].value; } } // 2. Validation if (isNaN(age) || isNaN(weightLbs) || isNaN(heightFt) || isNaN(heightIn)) { alert("Please enter valid numbers for Age, Weight, and Height."); return; } // 3. Convert Units (Imperial to Metric) var weightKg = weightLbs / 2.20462; var heightCm = ((heightFt * 12) + heightIn) * 2.54; // 4. Calculate BMR (Mifflin-St Jeor Equation) // Men: (10 × weight in kg) + (6.25 × height in cm) – (5 × age in years) + 5 // Women: (10 × weight in kg) + (6.25 × height in cm) – (5 × age in years) – 161 var bmr = 0; if (gender === 'male') { bmr = (10 * weightKg) + (6.25 * heightCm) – (5 * age) + 5; } else { bmr = (10 * weightKg) + (6.25 * heightCm) – (5 * age) – 161; } // 5. Calculate TDEE and Goal Calories var tdee = bmr * activityMultiplier; var targetCalories = tdee + goalAdjustment; // Safety check for very low calories if (targetCalories < 1200) { targetCalories = 1200; // Unsafe floor } // 6. Calculate Macros (Split: 30% Protein, 35% Fat, 35% Carb – Balanced Approach) // Protein: 4 cal/g, Fat: 9 cal/g, Carb: 4 cal/g var proteinCals = targetCalories * 0.30; var fatCals = targetCalories * 0.35; var carbCals = targetCalories * 0.35; var proteinGrams = Math.round(proteinCals / 4); var fatGrams = Math.round(fatCals / 9); var carbGrams = Math.round(carbCals / 4); // 7. Display Results document.getElementById('resultsArea').style.display = 'block'; // Format numbers with commas document.getElementById('dailyCalories').innerText = Math.round(targetCalories).toLocaleString(); document.getElementById('bmrValue').innerText = Math.round(bmr).toLocaleString() + ' kcal'; document.getElementById('tdeeValue').innerText = Math.round(tdee).toLocaleString() + ' kcal'; document.getElementById('proteinGrams').innerText = proteinGrams + 'g'; document.getElementById('fatGrams').innerText = fatGrams + 'g'; document.getElementById('carbGrams').innerText = carbGrams + 'g'; // Scroll to results document.getElementById('resultsArea').scrollIntoView({behavior: 'smooth'}); }

Leave a Comment