Base Rate Metabolism Calculator

Basal Metabolic Rate (BMR) Calculator

Your Basal Metabolic Rate (BMR) is the minimum number of calories your body needs to perform its basic, life-sustaining functions, such as breathing, circulation, and cell production, while at rest. It's often referred to as your metabolism. This calculator uses the Mifflin-St Jeor equation, which is widely considered one of the most accurate BMR formulas.

Male Female

Your Basal Metabolic Rate (BMR):

— kcal/day

This is the number of calories your body burns at rest. You will need more calories than this to account for your daily activities. To estimate your total daily energy expenditure (TDEE), multiply your BMR by an activity factor.

.calculator-wrapper { font-family: sans-serif; max-width: 600px; margin: 20px auto; padding: 20px; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, .1); display: flex; flex-wrap: wrap; gap: 20px; } .calculator-settings { flex: 1; min-width: 250px; } .calculator-result { flex: 1; min-width: 250px; background-color: #f9f9f9; padding: 15px; border-radius: 5px; text-align: center; } .calculator-result h3 { margin-top: 0; color: #333; } .input-group { margin-bottom: 15px; } .input-group label { display: block; margin-bottom: 5px; font-weight: bold; color: #555; } .input-group input[type="number"], .input-group select { width: calc(100% – 22px); padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; } button { background-color: #007bff; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; transition: background-color 0.3s ease; } button:hover { background-color: #0056b3; } #result { font-size: 2rem; font-weight: bold; color: #28a745; margin: 15px 0; } function calculateBMR() { var gender = document.getElementById("gender").value; var weight = parseFloat(document.getElementById("weight").value); var height = parseFloat(document.getElementById("height").value); var age = parseFloat(document.getElementById("age").value); var bmr = 0; if (isNaN(weight) || isNaN(height) || isNaN(age) || weight <= 0 || height <= 0 || age <= 0) { document.getElementById("result").innerHTML = "Please enter valid positive numbers for all fields."; return; } if (gender === "male") { bmr = (10 * weight) + (6.25 * height) – (5 * age) + 5; } else { // female bmr = (10 * weight) + (6.25 * height) – (5 * age) – 161; } document.getElementById("result").innerHTML = Math.round(bmr) + " kcal/day"; }

Leave a Comment