Calculate Basal Metabolic Rate Equation

Basal Metabolic Rate (BMR) Calculator .bmr-calculator-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 800px; margin: 0 auto; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); } .bmr-header { text-align: center; margin-bottom: 30px; background-color: #2c3e50; color: white; padding: 20px; border-radius: 8px 8px 0 0; margin: -20px -20px 30px -20px; } .bmr-form-group { margin-bottom: 20px; } .bmr-label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; } .bmr-input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; box-sizing: border-box; transition: border-color 0.3s; } .bmr-input:focus { border-color: #3498db; outline: none; } .bmr-radio-group { display: flex; gap: 20px; margin-bottom: 10px; } .bmr-radio-label { display: flex; align-items: center; cursor: pointer; font-weight: normal; } .bmr-radio-label input { margin-right: 8px; } .bmr-btn { background-color: #3498db; color: white; border: none; padding: 15px 30px; border-radius: 4px; cursor: pointer; font-size: 18px; font-weight: 600; width: 100%; transition: background-color 0.3s; } .bmr-btn:hover { background-color: #2980b9; } .bmr-results { margin-top: 30px; padding: 20px; background-color: #f8f9fa; border-radius: 4px; border-left: 5px solid #3498db; display: none; } .bmr-result-item { margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e9ecef; padding-bottom: 10px; } .bmr-result-item:last-child { border-bottom: none; margin-bottom: 0; } .bmr-result-label { font-weight: 600; color: #555; } .bmr-result-value { font-size: 20px; font-weight: 700; color: #2c3e50; } .unit-toggle { display: flex; justify-content: center; margin-bottom: 20px; background: #eee; padding: 5px; border-radius: 25px; width: fit-content; margin-left: auto; margin-right: auto; } .unit-btn { padding: 8px 20px; border-radius: 20px; border: none; background: none; cursor: pointer; font-weight: 600; color: #666; } .unit-btn.active { background: #3498db; color: white; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .height-imperial { display: flex; gap: 10px; } .article-content { margin-top: 50px; line-height: 1.6; color: #444; } .article-content h2 { color: #2c3e50; margin-top: 30px; border-bottom: 2px solid #ecf0f1; padding-bottom: 10px; } .article-content p { margin-bottom: 15px; } .article-content ul { margin-bottom: 20px; padding-left: 20px; } .article-content li { margin-bottom: 8px; } .hidden { display: none; } .error-msg { color: #e74c3c; text-align: center; margin-top: 10px; font-weight: 600; }

BMR Calculator & Equation

Calculate your Basal Metabolic Rate using the Mifflin-St Jeor Equation

Sedentary (little or no exercise) Lightly Active (exercise 1-3 days/week) Moderately Active (exercise 3-5 days/week) Very Active (hard exercise 6-7 days/week) Extra Active (very hard exercise/physical job)

Your Results

Basal Metabolic Rate (BMR):
Daily Calories to Maintain Weight:

*Based on the Mifflin-St Jeor equation. These are estimated caloric needs.

Understanding the Basal Metabolic Rate Equation

Your Basal Metabolic Rate (BMR) represents the number of calories your body requires to perform the most basic (basal) functions. Even when resting completely, your body burns calories to sustain breathing, blood circulation, cell production, and nutrient processing. In short, BMR is the energy cost of staying alive.

This calculator utilizes the Mifflin-St Jeor Equation, which is widely considered by clinical nutritionists to be the most accurate formula for estimating calorie needs in the general population. Knowing your BMR is the first critical step in designing a nutrition plan for weight loss, maintenance, or muscle gain.

The Formulas: How BMR is Calculated

While there are several formulas, the Mifflin-St Jeor equation is the standard. The logic differs slightly for men and women due to differences in lean body mass.

For Men:

BMR = (10 × weight in kg) + (6.25 × height in cm) - (5 × age in years) + 5

For Women:

BMR = (10 × weight in kg) + (6.25 × height in cm) - (5 × age in years) - 161

From BMR to TDEE

BMR only accounts for resting energy. To find your Total Daily Energy Expenditure (TDEE)—the actual amount of calories you burn in a day—you must multiply your BMR by an activity factor. This calculator handles that math for you automatically.

  • Sedentary (BMR x 1.2): Desk job, little to no exercise.
  • Lightly Active (BMR x 1.375): Light exercise or sports 1-3 days per week.
  • Moderately Active (BMR x 1.55): Moderate exercise 3-5 days per week.
  • Very Active (BMR x 1.725): Hard exercise 6-7 days per week.
  • Extra Active (BMR x 1.9): Very hard exercise, physical job, or twice-daily training.

Using These Numbers for Weight Goals

Once you have your TDEE (Maintenance Calories), you can adjust your intake based on your goals:

  • Weight Loss: Subtract 500 calories from your TDEE to lose roughly 0.5 kg (1 lb) per week.
  • Weight Gain: Add 250-500 calories to your TDEE to support muscle growth.
  • Maintenance: Eat roughly the TDEE amount to maintain your current weight.
var currentUnit = 'metric'; function switchUnit(unit) { currentUnit = unit; var btnMetric = document.getElementById('btnMetric'); var btnImperial = document.getElementById('btnImperial'); var heightMetricGroup = document.getElementById('heightMetricGroup'); var heightImperialGroup = document.getElementById('heightImperialGroup'); var weightLabel = document.getElementById('weightLabel'); var weightInput = document.getElementById('weight'); var heightCm = document.getElementById('heightCm'); var heightFt = document.getElementById('heightFt'); var heightIn = document.getElementById('heightIn'); // Reset inputs when switching to avoid confusion weightInput.value = "; heightCm.value = "; heightFt.value = "; heightIn.value = "; document.getElementById('results').style.display = 'none'; if (unit === 'metric') { btnMetric.classList.add('active'); btnImperial.classList.remove('active'); heightMetricGroup.classList.remove('hidden'); heightImperialGroup.classList.add('hidden'); weightLabel.innerText = 'Weight (kg)'; weightInput.placeholder = 'e.g., 70'; } else { btnMetric.classList.remove('active'); btnImperial.classList.add('active'); heightMetricGroup.classList.add('hidden'); heightImperialGroup.classList.remove('hidden'); weightLabel.innerText = 'Weight (lbs)'; weightInput.placeholder = 'e.g., 154'; } } function calculateBMR() { // Clear errors var errorDiv = document.getElementById('errorMsg'); errorDiv.innerText = "; // Get common inputs var age = parseFloat(document.getElementById('age').value); var genderMale = document.getElementById('genderMale').checked; var activityMultiplier = parseFloat(document.getElementById('activity').value); var rawWeight = parseFloat(document.getElementById('weight').value); // Validation variables var weightInKg = 0; var heightInCm = 0; // Validation Checks if (isNaN(age) || age 120) { errorDiv.innerText = "Please enter a valid age."; return; } if (isNaN(rawWeight) || rawWeight <= 0) { errorDiv.innerText = "Please enter a valid weight."; return; } // Logic based on unit system if (currentUnit === 'metric') { var rawHeightCm = parseFloat(document.getElementById('heightCm').value); if (isNaN(rawHeightCm) || rawHeightCm <= 0) { errorDiv.innerText = "Please enter a valid height in cm."; return; } weightInKg = rawWeight; heightInCm = rawHeightCm; } else { // Imperial Logic var ft = parseFloat(document.getElementById('heightFt').value); var inch = parseFloat(document.getElementById('heightIn').value); // Handle edge case where inches might be empty but feet is filled, assume 0 inches if (isNaN(ft)) ft = 0; if (isNaN(inch)) inch = 0; if (ft === 0 && inch === 0) { errorDiv.innerText = "Please enter a valid height (ft/in)."; return; } // Conversion: 1 lb = 0.453592 kg weightInKg = rawWeight * 0.453592; // Conversion: 1 ft = 30.48 cm, 1 inch = 2.54 cm heightInCm = (ft * 30.48) + (inch * 2.54); } // Mifflin-St Jeor Equation // Men: (10 × weight) + (6.25 × height) – (5 × age) + 5 // Women: (10 × weight) + (6.25 × height) – (5 × age) – 161 var bmr = 0; var term1 = 10 * weightInKg; var term2 = 6.25 * heightInCm; var term3 = 5 * age; if (genderMale) { bmr = term1 + term2 – term3 + 5; } else { bmr = term1 + term2 – term3 – 161; } // Calculate TDEE var tdee = bmr * activityMultiplier; // Display Results // Formatting numbers with commas and no decimals for calories document.getElementById('bmrValue').innerText = Math.round(bmr).toLocaleString() + " kcal/day"; document.getElementById('tdeeValue').innerText = Math.round(tdee).toLocaleString() + " kcal/day"; document.getElementById('results').style.display = 'block'; }

Leave a Comment