Calculate How Many Calories to Maintain Your Weight

Calculate Your Daily Calorie Needs for Weight Maintenance :root { –primary-color: #004a99; –success-color: #28a745; –background-color: #f8f9fa; –text-color: #333; –border-color: #ddd; –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); line-height: 1.6; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; padding-top: 20px; padding-bottom: 40px; } .container { width: 95%; max-width: 960px; background-color: var(–card-background); padding: 30px; border-radius: 8px; box-shadow: var(–shadow); margin-bottom: 30px; } h1, h2, h3 { color: var(–primary-color); text-align: center; margin-bottom: 20px; } h1 { font-size: 2.2em; } h2 { font-size: 1.8em; margin-top: 30px; border-bottom: 2px solid var(–primary-color); padding-bottom: 10px; } h3 { font-size: 1.4em; margin-top: 25px; } .calculator-section { background-color: var(–card-background); padding: 30px; border-radius: 8px; box-shadow: var(–shadow); margin-bottom: 30px; } .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); padding: 12px; 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 2px rgba(0, 74, 153, 0.2); } .input-group .helper-text { font-size: 0.85em; color: #666; margin-top: 5px; display: block; } .error-message { color: #dc3545; font-size: 0.85em; margin-top: 5px; display: none; /* Hidden by default */ } .button-group { display: flex; justify-content: space-between; margin-top: 25px; gap: 10px; } .button-group button { padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 1em; font-weight: bold; transition: background-color 0.3s ease; flex-grow: 1; } .calculate-button { background-color: var(–primary-color); color: white; } .calculate-button:hover { background-color: #003366; } .reset-button { background-color: #6c757d; color: white; } .reset-button:hover { background-color: #5a6268; } .copy-button { background-color: var(–success-color); color: white; } .copy-button:hover { background-color: #218838; } #results { margin-top: 30px; padding: 25px; border: 1px dashed var(–primary-color); border-radius: 8px; background-color: #eef7ff; text-align: center; } #results h3 { margin-top: 0; color: var(–primary-color); } .primary-result { font-size: 2.5em; font-weight: bold; color: var(–primary-color); margin: 15px 0; display: inline-block; padding: 10px 20px; background-color: #fff; border-radius: 5px; border: 2px solid var(–primary-color); } .intermediate-results div { margin-bottom: 10px; font-size: 1.1em; } .intermediate-results span { font-weight: bold; color: var(–primary-color); } .formula-explanation { font-size: 0.9em; color: #555; margin-top: 15px; font-style: italic; } 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); } thead { background-color: var(–primary-color); color: white; } tbody tr:nth-child(even) { background-color: #f2f2f2; } caption { font-size: 1.1em; font-weight: bold; color: var(–primary-color); margin-bottom: 10px; caption-side: top; text-align: left; } canvas { margin-top: 20px; border: 1px solid var(–border-color); border-radius: 4px; background-color: var(–card-background); } .article-content { width: 95%; max-width: 960px; background-color: var(–card-background); padding: 30px; border-radius: 8px; box-shadow: var(–shadow); margin-top: 30px; text-align: left; } .article-content p, .article-content ul, .article-content ol { margin-bottom: 15px; } .article-content li { margin-bottom: 8px; } .article-content a { color: var(–primary-color); text-decoration: none; } .article-content a:hover { text-decoration: underline; } .faq-item { margin-bottom: 15px; border-bottom: 1px dashed var(–border-color); padding-bottom: 10px; } .faq-item:last-child { border-bottom: none; } .faq-question { font-weight: bold; color: var(–primary-color); cursor: pointer; display: block; margin-bottom: 5px; } .faq-answer { display: none; padding-left: 15px; font-size: 0.95em; color: #555; } .faq-item.open .faq-answer { display: block; } .related-tools ul { list-style: none; padding: 0; } .related-tools li { margin-bottom: 15px; } .related-tools a { font-weight: bold; } .related-tools p { font-size: 0.9em; color: #555; margin-top: 5px; } .highlighted-result-container { background-color: var(–primary-color); color: white; padding: 20px; border-radius: 8px; margin-top: 20px; box-shadow: inset 0 0 10px rgba(0,0,0,0.2); } .highlighted-result-container .primary-result { color: white; background-color: transparent; border: none; font-size: 3em; margin: 0; } .highlighted-result-container h3 { color: white; margin-bottom: 10px; font-size: 1.5em; } .highlighted-result-container .unit { font-size: 0.8em; opacity: 0.8; } .chart-container { text-align: center; margin-top: 30px; padding: 20px; background-color: var(–card-background); border-radius: 8px; box-shadow: var(–shadow); } .chart-container h3 { margin-top: 0; } .legend { display: flex; justify-content: center; gap: 20px; margin-top: 15px; flex-wrap: wrap; } .legend-item { display: flex; align-items: center; font-size: 0.9em; } .legend-color { width: 15px; height: 15px; margin-right: 8px; border-radius: 3px; display: inline-block; } .legend-color.basal { background-color: #1f77b4; } .legend-color.total { background-color: #ff7f0e; }

Calculate Your Daily Calorie Needs for Weight Maintenance

Determine the precise number of calories you need to consume daily to maintain your current body weight. This calculator uses the Mifflin-St Jeor equation, a widely accepted method for estimating Basal Metabolic Rate (BMR) and Total Daily Energy Expenditure (TDEE).

Calorie Maintenance Calculator

Male Female Select your gender.
Enter your age in years.
Enter your weight in kilograms (kg).
Enter your height in centimeters (cm).
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) Choose the option that best describes your lifestyle.

Your Estimated Daily Calorie Needs

calories/day
Basal Metabolic Rate (BMR): kcal/day
Total Daily Energy Expenditure (TDEE): kcal/day
Activity Factor:
Calculated using the Mifflin-St Jeor equation for BMR, then multiplied by an activity factor to estimate TDEE.

Calorie Expenditure Breakdown

Basal Metabolic Rate (BMR)
Total Daily Energy Expenditure (TDEE)

What is Calorie Maintenance?

{primary_keyword} refers to the specific number of calories an individual needs to consume daily to maintain their current body weight without gaining or losing any. It's the point where your energy intake perfectly matches your energy expenditure. Understanding your calorie maintenance is fundamental for anyone looking to manage their weight effectively, whether their goal is to stay the same, lose fat, or build muscle. It forms the baseline upon which weight management strategies are built.

Who should use a calorie maintenance calculator?

  • Individuals aiming to maintain their current weight.
  • People looking to lose weight: They need to know their maintenance calories to create a deficit.
  • Those aiming to gain weight (muscle or mass): They need to know their maintenance calories to create a surplus.
  • Athletes and fitness enthusiasts tracking their energy balance.
  • Anyone curious about their body's energy requirements.

Common misconceptions about calorie maintenance:

  • It's a fixed number: Calorie maintenance is dynamic and can change based on activity, muscle mass, age, and even hormonal fluctuations.
  • It's the same for everyone: Individual metabolism, genetics, and body composition play significant roles, making maintenance calories highly personal.
  • You must eat bland food: Calorie maintenance is about the quantity of energy, not the specific types of food, though nutrient density is crucial for health.

Calorie Maintenance Formula and Mathematical Explanation

The most common method to estimate calorie maintenance involves calculating your Basal Metabolic Rate (BMR) and then multiplying it by an appropriate physical activity level (PAL) factor to determine your Total Daily Energy Expenditure (TDEE). The Mifflin-St Jeor equation is widely considered one of the most accurate for BMR estimation.

Mifflin-St Jeor Equation for BMR

This equation estimates the number of calories your body burns at rest to maintain basic life functions.

  • 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

Total Daily Energy Expenditure (TDEE)

TDEE is your BMR multiplied by an activity factor that accounts for your daily physical activity.

  • TDEE = BMR × Activity Factor

Activity Factor (PAL – Physical Activity Level)

The activity factor is a multiplier based on your lifestyle:

  • Sedentary: 1.2 (little or no exercise)
  • Lightly Active: 1.375 (light exercise/sports 1-3 days/week)
  • Moderately Active: 1.55 (moderate exercise/sports 3-5 days/week)
  • Very Active: 1.725 (hard exercise/sports 6-7 days a week)
  • Extra Active: 1.9 (very hard exercise/sports & physical job)

Variables Table

Variable Meaning Unit Typical Range
Gender Biological sex, affects metabolic rate Categorical (Male/Female) Male, Female
Age Years since birth Years 18 – 80+
Weight Body mass Kilograms (kg) 30 – 200+
Height Body length Centimeters (cm) 140 – 200+
Activity Factor Multiplier for daily energy expenditure based on lifestyle Decimal (e.g., 1.2 – 1.9) 1.2 – 1.9
BMR Basal Metabolic Rate (calories burned at rest) Kilocalories (kcal) 1000 – 2500+
TDEE Total Daily Energy Expenditure (maintenance calories) Kilocalories (kcal) 1500 – 3500+

Practical Examples (Real-World Use Cases)

Example 1: Sarah, aiming to maintain her weight

Sarah is a 28-year-old female, weighs 65 kg, and is 168 cm tall. She works an office job but goes to the gym for moderate exercise 4 times a week. She wants to maintain her current weight.

  • Inputs: Gender: Female, Age: 28, Weight: 65 kg, Height: 168 cm, Activity Level: Moderately Active (1.55)
  • Calculation:
    • BMR = (10 × 65) + (6.25 × 168) – (5 × 28) – 161
    • BMR = 650 + 1050 – 140 – 161 = 1400 – 161 = 1299 kcal
    • TDEE = 1299 × 1.55 = 2013 kcal
  • Outputs:
    • Basal Metabolic Rate (BMR): 1299 kcal/day
    • Activity Factor: 1.55
    • Total Daily Energy Expenditure (TDEE): 2013 kcal/day
    • Primary Result (Maintenance Calories): 2013 kcal/day
  • Interpretation: Sarah needs to consume approximately 2013 calories per day to maintain her current weight of 65 kg. If she eats more than this consistently, she will gain weight; if she eats less, she will lose weight.

Example 2: Mark, a very active individual

Mark is a 35-year-old male, weighs 85 kg, and is 185 cm tall. He is a construction worker and also trains intensely for a marathon 6 days a week. He wants to ensure he's eating enough to support his activity level and maintain his weight.

  • Inputs: Gender: Male, Age: 35, Weight: 85 kg, Height: 185 cm, Activity Level: Extra Active (1.9)
  • Calculation:
    • BMR = (10 × 85) + (6.25 × 185) – (5 × 35) + 5
    • BMR = 850 + 1156.25 – 175 + 5 = 2011.25 – 175 + 5 = 1836.25 + 5 = 1841.25 kcal
    • TDEE = 1841.25 × 1.9 = 3498.38 kcal
  • Outputs:
    • Basal Metabolic Rate (BMR): 1841 kcal/day
    • Activity Factor: 1.9
    • Total Daily Energy Expenditure (TDEE): 3498 kcal/day
    • Primary Result (Maintenance Calories): 3498 kcal/day
  • Interpretation: Mark requires a significantly higher calorie intake, around 3498 calories per day, to maintain his weight due to his extremely high activity level. This highlights how crucial activity is in determining energy needs.

How to Use This Calorie Maintenance Calculator

Using this calculator is straightforward and designed to provide a quick estimate of your daily calorie needs for weight maintenance. Follow these simple steps:

  1. Select Gender: Choose 'Male' or 'Female' from the dropdown menu. This is important as metabolic rates differ between sexes.
  2. Enter Age: Input your current age in years. Metabolism tends to slow down with age.
  3. Enter Weight: Provide your current weight in kilograms (kg). Body mass is a key factor in energy expenditure.
  4. Enter Height: Input your height in centimeters (cm). Height influences body surface area and metabolic rate.
  5. Choose Activity Level: Select the option that best reflects your average daily physical activity. This is crucial as exercise significantly increases calorie burn.
  6. Click 'Calculate Maintenance Calories': Once all fields are filled, click the button. The calculator will process your inputs using the Mifflin-St Jeor equation and activity multipliers.

How to read the results:

  • Primary Result (TDEE): This is the main output – the estimated number of calories you need to eat daily to maintain your current weight.
  • Basal Metabolic Rate (BMR): This is the calories your body burns at complete rest. It's the foundation of your energy needs.
  • Activity Factor: This shows the multiplier used based on your selected activity level.
  • Total Daily Energy Expenditure (TDEE): This is your BMR adjusted for your activity level, representing your total daily calorie needs for maintenance.

Decision-making guidance:

  • To Maintain Weight: Aim to consume calories close to your TDEE.
  • To Lose Weight: Consume fewer calories than your TDEE (create a calorie deficit). A common starting point is a deficit of 300-500 calories per day for gradual loss.
  • To Gain Weight: Consume more calories than your TDEE (create a calorie surplus). A surplus of 250-500 calories per day is often recommended for lean muscle gain.

Remember, these are estimates. Your actual needs may vary. Monitor your weight and adjust your intake accordingly. For personalized advice, consult a healthcare professional or registered dietitian.

Key Factors That Affect Calorie Maintenance Results

While the Mifflin-St Jeor equation provides a solid estimate, several factors can influence your actual daily calorie needs for weight maintenance. Understanding these can help you fine-tune your intake and achieve your goals more effectively.

  1. Body Composition (Muscle vs. Fat): Muscle tissue is metabolically more active than fat tissue. Individuals with higher muscle mass generally have a higher BMR and TDEE, even at the same weight and height. This calculator doesn't directly measure body composition, so results are estimates. Consider body fat percentage for a more nuanced view.
  2. Genetics: Individual genetic makeup plays a significant role in determining metabolic rate. Some people naturally have faster metabolisms than others, meaning they burn more calories at rest and during activity.
  3. Hormonal Factors: Hormones like thyroid hormones (T3 and T4) directly regulate metabolism. Conditions like hypothyroidism (underactive thyroid) can lower BMR, while hyperthyroidism (overactive thyroid) can increase it.
  4. Age: Metabolism naturally tends to decrease slightly with age, primarily due to a potential loss of muscle mass and hormonal changes. The calculator accounts for age, but individual variations exist.
  5. Thermic Effect of Food (TEF): Digesting, absorbing, and metabolizing food requires energy. Protein has a higher TEF than carbohydrates or fats, meaning your body burns more calories processing protein. While included in TDEE calculations implicitly, the exact impact varies with macronutrient ratios.
  6. Environmental Factors: Extreme temperatures can influence calorie expenditure. Your body burns extra calories to maintain its core temperature in very cold or very hot environments.
  7. Medications: Certain medications can affect metabolism and appetite, potentially altering calorie needs.
  8. Sleep Quality and Stress: Poor sleep and chronic stress can disrupt hormones that regulate appetite and metabolism (like cortisol and ghrelin), potentially impacting calorie balance and weight management.

Frequently Asked Questions (FAQ)

How accurate is the Mifflin-St Jeor equation?
The Mifflin-St Jeor equation is considered one of the most accurate predictive equations for BMR currently available, especially compared to older formulas like Harris-Benedict. However, it's still an estimate, and individual metabolic rates can vary significantly due to genetics, body composition, and other factors.
What is the difference between BMR and TDEE?
BMR (Basal Metabolic Rate) is the minimum number of calories your body needs to function at rest (breathing, circulation, cell production). TDEE (Total Daily Energy Expenditure) includes your BMR plus the calories burned through all daily activities, including exercise, walking, and even digesting food. TDEE represents your actual daily calorie needs for maintenance.
Can I use this calculator if I'm pregnant or breastfeeding?
No, this calculator is not suitable for pregnant or breastfeeding individuals. Calorie needs increase significantly during these periods due to the demands of fetal development and milk production. Consult a healthcare provider for accurate recommendations.
What if my weight fluctuates a lot?
If your weight fluctuates significantly, it's best to use an average weight over a period (e.g., a month) for the calculation. Alternatively, recalculate your maintenance calories periodically as your weight changes. Consistent monitoring is key.
How often should I recalculate my maintenance calories?
It's advisable to recalculate your maintenance calories every few months, or whenever you experience significant changes in your body weight, body composition (e.g., after a period of intense training or weight loss/gain), or activity level.
Does the type of exercise matter more than the duration?
Both type and duration matter. High-intensity exercise burns more calories per minute than low-intensity exercise. However, longer durations of moderate-intensity exercise can also contribute significantly to total daily energy expenditure. The activity level multiplier attempts to broadly categorize this.
What if I want to lose weight? How much should I reduce my calories?
To lose weight, you need to consume fewer calories than your TDEE (create a deficit). A common and sustainable approach is to reduce your intake by 300-500 calories per day below your maintenance level, which typically leads to a loss of about 0.5-1 pound per week. Avoid drastic cuts, as they can be unsustainable and detrimental to health.
Can I eat more calories on workout days and fewer on rest days?
Yes, this is a common strategy known as calorie cycling. It can be effective for managing energy levels and adherence. On workout days, you might eat closer to or slightly above your TDEE, while on rest days, you'd eat below your TDEE to create an overall weekly deficit if weight loss is the goal.
function validateInput(id, min, max, errorElementId) { var input = document.getElementById(id); var value = parseFloat(input.value); var errorElement = document.getElementById(errorElementId); if (isNaN(value) || value === "") { errorElement.textContent = "This field is required."; errorElement.style.display = "block"; return false; } if (value max) { errorElement.textContent = "Value cannot be greater than " + max + "."; errorElement.style.display = "block"; return false; } errorElement.textContent = ""; errorElement.style.display = "none"; return true; } function calculateCalories() { var gender = document.getElementById("gender").value; var age = parseFloat(document.getElementById("age").value); var weight = parseFloat(document.getElementById("weight").value); var height = parseFloat(document.getElementById("height").value); var activityLevel = parseFloat(document.getElementById("activityLevel").value); var ageError = document.getElementById("ageError"); var weightError = document.getElementById("weightError"); var heightError = document.getElementById("heightError"); ageError.style.display = "none"; weightError.style.display = "none"; heightError.style.display = "none"; var isValid = true; if (isNaN(age) || age <= 0) { ageError.textContent = "Please enter a valid age."; ageError.style.display = "block"; isValid = false; } if (isNaN(weight) || weight <= 0) { weightError.textContent = "Please enter a valid weight."; weightError.style.display = "block"; isValid = false; } if (isNaN(height) || height <= 0) { heightError.textContent = "Please enter a valid height."; heightError.style.display = "block"; isValid = false; } if (!isValid) { return; } var bmr = 0; if (gender === "male") { bmr = (10 * weight) + (6.25 * height) – (5 * age) + 5; } else { // female bmr = (10 * weight) + (6.25 * height) – (5 * age) – 161; } var tdee = bmr * activityLevel; document.getElementById("bmrResult").querySelector("span").textContent = bmr.toFixed(0); document.getElementById("tdeeResult").querySelector("span").textContent = tdee.toFixed(0); document.getElementById("activityFactorResult").querySelector("span").textContent = activityLevel; document.getElementById("primaryResult").textContent = tdee.toFixed(0); updateChart(bmr, tdee); } function resetCalculator() { document.getElementById("gender").value = "male"; document.getElementById("age").value = "30"; document.getElementById("weight").value = "70"; document.getElementById("height").value = "175"; document.getElementById("activityLevel").value = "1.55"; document.getElementById("ageError").style.display = "none"; document.getElementById("weightError").style.display = "none"; document.getElementById("heightError").style.display = "none"; document.getElementById("bmrResult").querySelector("span").textContent = "–"; document.getElementById("tdeeResult").querySelector("span").textContent = "–"; document.getElementById("activityFactorResult").querySelector("span").textContent = "–"; document.getElementById("primaryResult").textContent = "–"; var ctx = document.getElementById("calorieChart").getContext("2d"); ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height); } function copyResults() { var primaryResult = document.getElementById("primaryResult").textContent; var bmr = document.getElementById("bmrResult").querySelector("span").textContent; var tdee = document.getElementById("tdeeResult").querySelector("span").textContent; var activityFactor = document.getElementById("activityFactorResult").querySelector("span").textContent; if (primaryResult === "–") { alert("No results to copy yet. Please calculate first."); return; } var textToCopy = "Your Estimated Daily Calorie Needs for Weight Maintenance:\n\n"; textToCopy += "Primary Result (TDEE): " + primaryResult + " kcal/day\n"; textToCopy += "Basal Metabolic Rate (BMR): " + bmr + " kcal/day\n"; textToCopy += "Total Daily Energy Expenditure (TDEE): " + tdee + " kcal/day\n"; textToCopy += "Activity Factor: " + activityFactor + "\n\n"; textToCopy += "Calculated using the Mifflin-St Jeor equation and activity multipliers."; navigator.clipboard.writeText(textToCopy).then(function() { alert("Results copied to clipboard!"); }).catch(function(err) { console.error("Failed to copy: ", err); alert("Failed to copy results. Please copy manually."); }); } function updateChart(bmr, tdee) { var canvas = document.getElementById("calorieChart"); var ctx = canvas.getContext("2d"); // Clear previous chart ctx.clearRect(0, 0, canvas.width, canvas.height); var chartWidth = canvas.width; var chartHeight = canvas.height; var barWidth = 50; var barSpacing = 40; var maxBarHeight = chartHeight – 50; // Leave space for labels // Draw bars var bmrBarHeight = (bmr / tdee) * maxBarHeight; var tdeeBarHeight = maxBarHeight; // TDEE is the total // BMR Bar ctx.fillStyle = '#1f77b4'; // Basal color ctx.fillRect(chartWidth / 2 – barSpacing / 2 – barWidth, chartHeight – bmrBarHeight – 20, barWidth, bmrBarHeight); // TDEE Bar (representing total expenditure) ctx.fillStyle = '#ff7f0e'; // Total color ctx.fillRect(chartWidth / 2 + barSpacing / 2, chartHeight – tdeeBarHeight – 20, barWidth, tdeeBarHeight); // Labels ctx.fillStyle = '#333'; ctx.font = '14px Segoe UI'; ctx.textAlign = 'center'; // BMR Label ctx.fillText('BMR', chartWidth / 2 – barSpacing / 2 – barWidth + barWidth / 2, chartHeight – 5); // TDEE Label ctx.fillText('TDEE', chartWidth / 2 + barSpacing / 2 + barWidth / 2, chartHeight – 5); // Value Labels ctx.font = '12px Segoe UI'; ctx.fillText(bmr.toFixed(0) + ' kcal', chartWidth / 2 – barSpacing / 2 – barWidth + barWidth / 2, chartHeight – bmrBarHeight – 25); ctx.fillText(tdee.toFixed(0) + ' kcal', chartWidth / 2 + barSpacing / 2 + barWidth / 2, chartHeight – tdeeBarHeight – 25); // Title ctx.font = '16px Segoe UI'; ctx.fillText('BMR vs TDEE', chartWidth / 2, 20); } // Initialize chart on load if default values exist document.addEventListener('DOMContentLoaded', function() { var ageInput = document.getElementById('age'); var weightInput = document.getElementById('weight'); var heightInput = document.getElementById('height'); var genderSelect = document.getElementById('gender'); var activitySelect = document.getElementById('activityLevel'); // Set default values ageInput.value = '30'; weightInput.value = '70'; heightInput.value = '175'; genderSelect.value = 'male'; activitySelect.value = '1.55'; calculateCalories(); // Calculate with default values // Add event listeners for real-time updates ageInput.addEventListener('input', calculateCalories); weightInput.addEventListener('input', calculateCalories); heightInput.addEventListener('input', calculateCalories); genderSelect.addEventListener('change', calculateCalories); activitySelect.addEventListener('change', calculateCalories); // FAQ toggles var faqQuestions = document.querySelectorAll('.faq-question'); faqQuestions.forEach(function(question) { question.addEventListener('click', function() { var faqItem = this.parentElement; faqItem.classList.toggle('open'); }); }); });

Leave a Comment