Calculate Bmr to Lose Weight

Calculate BMR to Lose Weight | Your Guide :root { –primary-color: #004a99; –success-color: #28a745; –background-color: #f8f9fa; –text-color: #333; –border-color: #ccc; –card-background: #fff; –shadow: 0 2px 5px rgba(0,0,0,0.1); } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(–background-color); color: var(–text-color); margin: 0; padding: 0; line-height: 1.6; } .container { max-width: 1000px; margin: 20px auto; padding: 20px; background-color: var(–card-background); border-radius: 8px; box-shadow: var(–shadow); } h1, h2, h3 { color: var(–primary-color); text-align: center; } h1 { font-size: 2.5em; margin-bottom: 0.5em;} h2 { font-size: 2em; margin-top: 1.5em; margin-bottom: 1em; border-bottom: 2px solid var(–primary-color); padding-bottom: 0.3em;} h3 { font-size: 1.5em; margin-top: 1em; margin-bottom: 0.8em;} .calculator-section { background-color: var(–card-background); padding: 25px; border-radius: 8px; box-shadow: var(–shadow); margin-bottom: 30px; } .calculator-section h2 { margin-top: 0; margin-bottom: 20px; } .input-group { margin-bottom: 20px; text-align: left; } .input-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(–primary-color); } .input-group input[type="number"], .input-group select { width: calc(100% – 22px); /* Adjust for padding and border */ padding: 10px; border: 1px solid var(–border-color); border-radius: 4px; font-size: 1em; box-sizing: border-box; } .input-group input[type="number"]:focus, .input-group select:focus { outline: none; border-color: var(–primary-color); box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.2); } .input-group .helper-text { font-size: 0.85em; color: #666; margin-top: 5px; display: block; } .error-message { color: red; font-size: 0.8em; margin-top: 5px; display: block; min-height: 1.2em; /* Reserve space for error message */ } .button-group { display: flex; justify-content: space-between; margin-top: 25px; } .button-group button { padding: 12px 20px; border: none; border-radius: 5px; font-size: 1em; cursor: pointer; transition: background-color 0.3s ease; font-weight: bold; } #calculateBtn { background-color: var(–primary-color); color: white; } #calculateBtn:hover { background-color: #003366; } #resetBtn, #copyBtn { background-color: #6c757d; color: white; } #resetBtn:hover, #copyBtn:hover { background-color: #5a6268; } .result-section { margin-top: 30px; padding: 20px; border: 1px solid var(–border-color); border-radius: 8px; background-color: #eef; text-align: center; } .result-section h3 { margin-top: 0; color: var(–primary-color); } .primary-result { font-size: 2.5em; font-weight: bold; color: var(–success-color); margin: 10px 0; background-color: white; padding: 15px; border-radius: 5px; display: inline-block; } .intermediate-results div, .key-assumptions div { margin-bottom: 10px; font-size: 1.1em; } .intermediate-results span, .key-assumptions span { font-weight: bold; color: var(–primary-color); } .formula-explanation { font-size: 0.9em; color: #555; margin-top: 15px; padding: 10px; background-color: #f0f0f0; border-radius: 4px; text-align: left; } table { width: 100%; border-collapse: collapse; margin-top: 20px; box-shadow: var(–shadow); } th, td { padding: 12px 15px; text-align: left; border: 1px solid var(–border-color); } th { background-color: var(–primary-color); color: white; font-weight: bold; } tr:nth-child(even) { background-color: #f2f2f2; } tr:hover { background-color: #ddd; } caption { font-size: 1.1em; font-weight: bold; color: var(–primary-color); margin-bottom: 10px; caption-side: top; text-align: left; } canvas { display: block; margin: 20px auto; max-width: 100%; border: 1px solid var(–border-color); border-radius: 5px; } .article-content { background-color: var(–card-background); padding: 30px; border-radius: 8px; box-shadow: var(–shadow); margin-top: 30px; text-align: left; } .article-content h2, .article-content h3 { text-align: left; margin-top: 1.5em; } .article-content p { margin-bottom: 1em; } .article-content ul, .article-content ol { margin-left: 20px; margin-bottom: 1em; } .article-content li { margin-bottom: 0.5em; } .article-content a { color: var(–primary-color); text-decoration: none; } .article-content a:hover { text-decoration: underline; } .faq-list dt { font-weight: bold; color: var(–primary-color); margin-top: 1em; cursor: pointer; } .faq-list dd { margin-left: 20px; margin-bottom: 0.5em; display: none; /* Initially hidden */ } .faq-list dt.open + dd { display: block; /* Show when parent dt is open */ } .related-tools ul { list-style: none; padding: 0; } .related-tools li { margin-bottom: 1em; } .related-tools li strong { display: block; color: var(–primary-color); } .primary-highlight { background-color: var(–success-color); color: white; padding: 8px 12px; border-radius: 4px; font-weight: bold; } .input-error { border-color: red !important; } .input-success { border-color: var(–success-color) !important; } #copyStatus { font-size: 0.9em; margin-left: 10px; color: var(–success-color); display: none; } #copyStatus.visible { display: inline-block; } @media (max-width: 768px) { .container { margin: 10px; padding: 15px; } h1 { font-size: 2em; } h2 { font-size: 1.75em; } .button-group { flex-direction: column; gap: 10px; } .button-group button { width: 100%; } }

Calculate BMR to Lose Weight

Understand your body's energy needs to create an effective weight loss plan. Our BMR calculator helps you determine your resting calorie burn.

BMR Calculator for Weight Loss

Male Female Select your biological sex for accurate calculation.
Enter your current age in whole years.
Enter your current weight in kilograms.
Enter your height in centimeters.
Sedentary (little or no exercise) Lightly Active (light exercise/sports 1-3 days/week) Moderately Active (moderate exercise/sports 3-5 days/week) Very Active (hard exercise/sports 6-7 days a week) Extra Active (very hard exercise/sports & physical job or 2x training) Choose the option that best describes your daily physical activity.
Copied!

Your Results

Formula Used:

We use the Mifflin-St Jeor equation to estimate your Basal Metabolic Rate (BMR), the calories your body burns at rest. For total daily energy expenditure (TDEE), we multiply BMR by your selected activity factor.

Mifflin-St Jeor Equation:
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
TDEE = BMR × Activity Factor

BMR: kcal/day
TDEE: kcal/day
Estimated Weight Loss Calories: kcal/day

Key Assumptions for Weight Loss

Calorie Deficit Target: kcal/day
Estimated Weekly Fat Loss: kg
Your Basal Metabolic Rate (BMR): kcal/day

What is BMR for Weight Loss?

{primary_keyword} refers to the minimum number of calories your body needs to perform essential life-sustaining functions while at complete rest. These functions include breathing, circulating blood, maintaining body temperature, and cell production. Understanding your BMR is a cornerstone of any successful weight loss strategy because it provides a baseline for your body's energy expenditure. Without knowing how many calories you burn at rest, it's difficult to accurately determine how many calories you need to consume to create a deficit for weight loss.

Who should use it? Anyone looking to lose weight, gain muscle, or simply maintain their current weight can benefit from knowing their BMR. It's particularly crucial for weight loss as it helps in setting realistic calorie intake goals. By understanding your BMR, you can ensure you're not undereating to the point of harming your metabolism or overeating and hindering your progress.

Common misconceptions about BMR include thinking it's the total calories you burn in a day (it's not; that's TDEE) or believing it's fixed and unchangeable (your BMR can be influenced by factors like muscle mass, age, and metabolism). Another misconception is that a very low-calorie diet is always best; this can actually lower your BMR over time, making weight loss harder.

BMR Formula and Mathematical Explanation

The most widely accepted formula for calculating BMR is the Mifflin-St Jeor equation. It's considered more accurate than older formulas like the Harris-Benedict equation, especially for modern populations. Our calculator uses this equation, which accounts for age, sex, weight, and height.

The Mifflin-St Jeor Equation:

  • 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

Once BMR is calculated, we estimate the Total Daily Energy Expenditure (TDEE) by multiplying the BMR by an activity factor. TDEE represents the total calories burned in a day, including all activities. For weight loss, a common approach is to consume 500-1000 calories less than your TDEE per day, aiming for a loss of approximately 0.5 to 1 kg (1-2 lbs) per week.

Variables Explained:

Variables in the Mifflin-St Jeor Equation
Variable Meaning Unit Typical Range
Weight Body mass Kilograms (kg) 30 – 200+ kg
Height Body height Centimeters (cm) 120 – 210 cm
Age Years since birth Years 1 – 120 years
Sex Factor (Men) Constant for males kcal/kg/cm/year +5
Sex Factor (Women) Constant for females kcal/kg/cm/year -161
Activity Factor Multiplier for daily activity Unitless 1.2 – 1.9

Practical Examples (Real-World Use Cases)

Let's illustrate with two examples:

Example 1: Sarah, aiming for gradual weight loss

Inputs:

  • Biological Sex: Female
  • Age: 30 years
  • Weight: 75 kg
  • Height: 165 cm
  • Activity Level: Moderately Active (1.55)

Calculations:

  • BMR = (10 * 75) + (6.25 * 165) – (5 * 30) – 161 = 750 + 1031.25 – 150 – 161 = 1470.25 kcal/day
  • TDEE = 1470.25 * 1.55 = 2278.89 kcal/day
  • Calorie Deficit Target: 500 kcal/day
  • Target Calories for Weight Loss: 2278.89 – 500 = 1778.89 kcal/day
  • Estimated Weekly Fat Loss: (500 kcal/day * 7 days) / 7700 kcal/kg ≈ 0.45 kg/week

Interpretation: Sarah needs approximately 2279 calories to maintain her current weight. To lose about 0.45 kg per week, she should aim to consume around 1779 calories daily. This is a sustainable rate of weight loss.

Example 2: Mark, aiming for faster weight loss

Inputs:

  • Biological Sex: Male
  • Age: 40 years
  • Weight: 90 kg
  • Height: 180 cm
  • Activity Level: Lightly Active (1.375)

Calculations:

  • BMR = (10 * 90) + (6.25 * 180) – (5 * 40) + 5 = 900 + 1125 – 200 + 5 = 1830 kcal/day
  • TDEE = 1830 * 1.375 = 2516.25 kcal/day
  • Calorie Deficit Target: 1000 kcal/day
  • Target Calories for Weight Loss: 2516.25 – 1000 = 1516.25 kcal/day
  • Estimated Weekly Fat Loss: (1000 kcal/day * 7 days) / 7700 kcal/kg ≈ 0.91 kg/week

Interpretation: Mark's TDEE is about 2516 calories. A 1000-calorie deficit would put his target intake at roughly 1516 calories. This aggressive deficit targets nearly 1 kg of fat loss per week. While effective, Mark should monitor his energy levels and ensure he's meeting nutritional needs.

How to Use This BMR Calculator for Weight Loss

Using our calculator is straightforward. Follow these steps:

  1. Select Biological Sex: Choose 'Male' or 'Female'.
  2. Enter Age: Input your age in years.
  3. Enter Weight: Provide your current weight in kilograms.
  4. Enter Height: Input your height in centimeters.
  5. Choose Activity Level: Select the option that best reflects your typical daily physical activity. Be honest for the most accurate results.
  6. Click Calculate: Press the "Calculate BMR & TDEE" button.

Reading Your Results:

  • BMR: This is the number of calories your body burns at rest.
  • TDEE: This is your total estimated daily calorie burn, factoring in your activity level.
  • Estimated Weight Loss Calories: This suggests a daily calorie intake for a specific weight loss rate (defaulting to a 500 kcal deficit).
  • Calorie Deficit Target: The number of calories you are aiming to subtract from your TDEE.
  • Estimated Weekly Fat Loss: An approximation of how much fat you could lose per week based on your calorie deficit. (Note: 1 kg of fat ≈ 7700 kcal).

Decision-Making Guidance: Aim for a calorie deficit that is sustainable and aligns with your health goals. A deficit of 500-1000 calories per day is generally recommended for safe and effective weight loss. Consult with a healthcare professional or registered dietitian if you have underlying health conditions or specific dietary needs.

Key Factors That Affect BMR Results

While the Mifflin-St Jeor equation provides a good estimate, several factors can influence your actual metabolic rate:

  1. Body Composition (Muscle vs. Fat): Muscle tissue burns more calories at rest than fat tissue. Individuals with higher muscle mass will have a higher BMR, even at the same weight. Building muscle through resistance training can increase your BMR over time.
  2. Age: BMR naturally declines with age, primarily due to a gradual loss of muscle mass and hormonal changes.
  3. Genetics: Your inherited genes play a role in determining your metabolic rate. Some people are naturally predisposed to have a faster metabolism.
  4. Hormonal Factors: Conditions like thyroid disorders (hypothyroidism or hyperthyroidism) can significantly impact BMR. An underactive thyroid lowers BMR, while an overactive thyroid raises it.
  5. Dietary Intake and Previous Dieting: Severe calorie restriction over long periods can cause your body to adapt by lowering your BMR (adaptive thermogenesis) to conserve energy. This is why crash dieting can be counterproductive.
  6. Environmental Temperature: Your body expends energy to maintain its core temperature. In very cold or very hot environments, your BMR might slightly increase as your body works harder to regulate temperature.
  7. Health Status: Illness, fever, or injury can temporarily increase BMR as the body works to heal and fight off infection.

Frequently Asked Questions (FAQ)

Is the Mifflin-St Jeor equation the best for everyone?
It's generally considered one of the most accurate for the general adult population. However, individual variations exist, and factors like extreme body composition or specific medical conditions might require personalized assessments.
Can I use my weight in pounds and height in feet/inches?
Our calculator requires weight in kilograms and height in centimeters for accuracy. You can use online converters if needed (e.g., 1 kg = 2.20462 lbs, 1 inch = 2.54 cm).
What if my calculated TDEE is very low?
A low TDEE might indicate a smaller body size, lower muscle mass, or a more sedentary lifestyle. If it falls below 1200 calories (for women) or 1500 calories (for men), it's crucial to consult a professional to ensure adequate nutrient intake and avoid potential metabolic slowdown.
How much weight can I realistically expect to lose per week?
A safe and sustainable rate is typically 0.5 to 1 kg (1 to 2 lbs) per week. This corresponds to a daily deficit of 500 to 1000 calories. Faster loss is possible but may be less sustainable and could lead to muscle loss.
Does this calculator account for exercise calories burned?
The calculator estimates TDEE based on your *activity level* (how active you are generally). Calories burned during specific workouts are in addition to this and can be factored in separately if you wish to create a larger deficit, but be careful not to over-estimate exercise calorie burn.
What happens to my BMR if I lose weight?
As you lose weight, particularly fat mass, your BMR will likely decrease slightly because there's less body mass to sustain. This is why weight loss can sometimes slow down, and adjustments to calorie intake or activity may be needed.
Is it okay to eat below my BMR?
Eating below your BMR for extended periods is generally not recommended. It can lead to nutrient deficiencies, muscle loss, fatigue, and a significant drop in your metabolic rate, making future weight loss more challenging.
How often should I recalculate my BMR?
It's a good idea to recalculate your BMR every few months, especially after significant changes in weight, body composition, or activity level, or as you age.

Related Tools and Internal Resources

// Initial default values var defaultValues = { gender: 'male', age: 30, weight: 70, heightCm: 175, activityLevel: '1.375' // Lightly Active }; function calculateBMR() { var gender = document.getElementById("gender").value; var age = parseFloat(document.getElementById("age").value); var weight = parseFloat(document.getElementById("weight").value); var heightCm = parseFloat(document.getElementById("heightCm").value); var activityLevel = parseFloat(document.getElementById("activityLevel").value); var bmr = 0; var tdee = 0; var calorieDeficit = 500; // Default deficit for weight loss var targetCalories = 0; var estimatedWeeklyLoss = 0; // BMR Calculation (Mifflin-St Jeor) if (gender === "male") { bmr = (10 * weight) + (6.25 * heightCm) – (5 * age) + 5; } else { // female bmr = (10 * weight) + (6.25 * heightCm) – (5 * age) – 161; } // TDEE Calculation tdee = bmr * activityLevel; // Weight Loss Calculation targetCalories = tdee – calorieDeficit; // 1 kg fat = 7700 kcal estimatedWeeklyLoss = (calorieDeficit * 7) / 7700; // Ensure results are not negative or excessively low if (targetCalories < 1000) targetCalories = 1000; // Minimum sensible intake if (bmr < 0) bmr = 0; if (tdee < 0) tdee = 0; // Display Results document.getElementById("primaryResult").innerText = Math.round(targetCalories) + " kcal/day"; document.getElementById("bmrValue").getElementsByTagName('span')[0].innerText = Math.round(bmr); document.getElementById("tdeeValue").getElementsByTagName('span')[0].innerText = Math.round(tdee); document.getElementById("weightLossEstimate").getElementsByTagName('span')[0].innerText = Math.round(targetCalories); document.getElementById("calorieDeficit").getElementsByTagName('span')[0].innerText = calorieDeficit + " kcal/day"; document.getElementById("weeklyLoss").getElementsByTagName('span')[0].innerText = estimatedWeeklyLoss.toFixed(2) + " kg"; document.getElementById("targetBMR").getElementsByTagName('span')[0].innerText = Math.round(bmr) + " kcal/day"; document.getElementById("results").style.display = "block"; updateChart(bmr, tdee, targetCalories); } function validateInput(id, errorId, minValue, maxValue) { var input = document.getElementById(id); var errorSpan = document.getElementById(errorId); var value = parseFloat(input.value); var isValid = true; errorSpan.innerText = ''; input.classList.remove('input-error', 'input-success'); if (isNaN(value) || input.value.trim() === "") { errorSpan.innerText = 'This field is required.'; input.classList.add('input-error'); isValid = false; } else if (value maxValue) { errorSpan.innerText = 'Value cannot exceed ' + maxValue + '.'; input.classList.add('input-error'); isValid = false; } else { input.classList.add('input-success'); } return isValid; } function validateAndCalculate() { var allValid = true; allValid &= validateInput('age', 'ageError', 1, 120); allValid &= validateInput('weight', 'weightError', 1, 500); // Realistic max weight allValid &= validateInput('heightCm', 'heightCmError', 50, 250); // Realistic height range // Gender and activity level are selects, errors are less critical for them unless needed var genderError = document.getElementById('genderError'); if (document.getElementById('gender').value === "") { genderError.innerText = 'Please select a value.'; allValid = false; } else { genderError.innerText = "; } var activityLevelError = document.getElementById('activityLevelError'); if (document.getElementById('activityLevel').value === "") { activityLevelError.innerText = 'Please select a value.'; allValid = false; } else { activityLevelError.innerText = "; } if (allValid) { calculateBMR(); } } function resetCalculator() { document.getElementById("gender").value = defaultValues.gender; document.getElementById("age").value = defaultValues.age; document.getElementById("weight").value = defaultValues.weight; document.getElementById("heightCm").value = defaultValues.heightCm; document.getElementById("activityLevel").value = defaultValues.activityLevel; // Clear errors and success classes document.getElementById("ageError").innerText = "; document.getElementById("weightError").innerText = "; document.getElementById("heightCmError").innerText = "; document.getElementById("genderError").innerText = "; document.getElementById("activityLevelError").innerText = "; document.getElementById("age").classList.remove('input-error', 'input-success'); document.getElementById("weight").classList.remove('input-error', 'input-success'); document.getElementById("heightCm").classList.remove('input-error', 'input-success'); document.getElementById("results").style.display = "none"; document.getElementById("primaryResult").innerText = "–"; document.getElementById("bmrValue").getElementsByTagName('span')[0].innerText = "–"; document.getElementById("tdeeValue").getElementsByTagName('span')[0].innerText = "–"; document.getElementById("weightLossEstimate").getElementsByTagName('span')[0].innerText = "–"; document.getElementById("calorieDeficit").getElementsByTagName('span')[0].innerText = "–"; document.getElementById("weeklyLoss").getElementsByTagName('span')[0].innerText = "–"; document.getElementById("targetBMR").getElementsByTagName('span')[0].innerText = "–"; if (window.myChart instanceof Chart) { window.myChart.destroy(); } var canvas = document.getElementById("bmrChart"); var ctx = canvas.getContext("2d"); ctx.clearRect(0, 0, canvas.width, canvas.height); // Clear canvas document.getElementById("copyStatus").style.display = "none"; } function copyResults() { var primaryResult = document.getElementById("primaryResult").innerText; var bmrValue = document.getElementById("bmrValue").innerText; var tdeeValue = document.getElementById("tdeeValue").innerText; var weightLossEstimate = document.getElementById("weightLossEstimate").innerText; var calorieDeficit = document.getElementById("calorieDeficit").innerText; var weeklyLoss = document.getElementById("weeklyLoss").innerText; var targetBMR = document.getElementById("targetBMR").innerText; var textToCopy = "— BMR & Weight Loss Results —\n\n"; textToCopy += "Primary Target Intake: " + primaryResult + "\n"; textToCopy += bmrValue + "\n"; textToCopy += tdeeValue + "\n"; textToCopy += weightLossEstimate + "\n\n"; textToCopy += "— Key Assumptions —\n"; textToCopy += "Calorie Deficit Target: " + calorieDeficit + "\n"; textToCopy += "Estimated Weekly Fat Loss: " + weeklyLoss + "\n"; textToCopy += targetBMR + "\n"; textToCopy += "\nCalculated using the Mifflin-St Jeor equation."; navigator.clipboard.writeText(textToCopy).then(function() { var status = document.getElementById("copyStatus"); status.style.display = "inline-block"; setTimeout(function() { status.style.display = "none"; }, 3000); }, function(err) { console.error("Failed to copy text: ", err); }); } // Charting Logic var myChart = null; // Global variable to hold chart instance function updateChart(bmr, tdee, targetCalories) { var ctx = document.getElementById("bmrChart").getContext("2d"); // Destroy previous chart if it exists if (myChart) { myChart.destroy(); } // Ensure targetCalories is not negative or zero for display var safeTargetCalories = Math.max(0, targetCalories); var safeTdee = Math.max(0, tdee); var safeBmr = Math.max(0, bmr); myChart = new Chart(ctx, { type: 'bar', data: { labels: ['BMR (Resting)', 'TDEE (Total Daily)', 'Target Intake (Weight Loss)'], datasets: [{ label: 'Calories per Day', data: [safeBmr, safeTdee, safeTargetCalories], backgroundColor: [ 'rgba(0, 74, 153, 0.6)', // Primary Blue 'rgba(40, 167, 69, 0.6)', // Success Green 'rgba(255, 193, 7, 0.6)' // Warning Yellow (for target intake) ], borderColor: [ 'rgba(0, 74, 153, 1)', 'rgba(40, 167, 69, 1)', 'rgba(255, 193, 7, 1)' ], borderWidth: 1 }] }, options: { responsive: true, maintainAspectRatio: false, scales: { y: { beginAtZero: true, title: { display: true, text: 'Calories (kcal)' } } }, plugins: { title: { display: true, text: 'Calorie Expenditure and Target Intake', font: { size: 16 } }, legend: { display: false // Hide legend as labels are on x-axis } } } }); } // Initialize chart with placeholder data or call calculateBMR on load document.addEventListener('DOMContentLoaded', function() { // Set initial values and trigger calculation resetCalculator(); // Resets to defaults validateAndCalculate(); // Calculate with defaults // Initialize chart area even if results are hidden initially var canvas = document.getElementById("bmrChart"); if (!canvas) { var chartContainer = document.createElement('div'); chartContainer.innerHTML = "; document.querySelector('.result-section').appendChild(chartContainer); } // Initial chart call with default values var defaultAge = parseFloat(document.getElementById("age").value); var defaultWeight = parseFloat(document.getElementById("weight").value); var defaultHeight = parseFloat(document.getElementById("heightCm").value); var defaultGender = document.getElementById("gender").value; var defaultActivity = parseFloat(document.getElementById("activityLevel").value); var tempBmr, tempTdee, tempTarget; if (defaultGender === "male") { tempBmr = (10 * defaultWeight) + (6.25 * defaultHeight) – (5 * defaultAge) + 5; } else { tempBmr = (10 * defaultWeight) + (6.25 * defaultHeight) – (5 * defaultAge) – 161; } tempTdee = tempBmr * defaultActivity; tempTarget = tempTdee – 500; updateChart(tempBmr, tempTdee, tempTarget); }); // Basic FAQ toggle var faqTitles = document.querySelectorAll('.faq-list dt'); faqTitles.forEach(function(dt) { dt.addEventListener('click', function() { this.classList.toggle('open'); }); });

Leave a Comment