Exercise MET Calculator
Calculate calories burned for 70+ exercises using MET values.
Jogging (general)
MET = 7 · Running
245 kcal
Frequently Asked Questions
Code Implementation
# MET (Metabolic Equivalent of Task) calorie calculator
# Formula: Calories = MET × weight_kg × duration_hours
MET_VALUES = {
"running_8kph": 8.0,
"running_10kph": 10.0,
"cycling_moderate": 8.0,
"swimming_moderate": 6.0,
"walking_5kph": 3.5,
"weight_training": 3.5,
"yoga": 2.5,
"basketball": 6.5,
"soccer": 7.0,
"tennis": 7.3,
}
def calories_burned(met: float, weight_kg: float, duration_min: float) -> float:
"""Calculate calories burned from MET, weight, and duration."""
hours = duration_min / 60
return met * weight_kg * hours
# Example: 70 kg person running at 10 kph for 30 minutes
weight_kg = 70
duration_min = 30
activity = "running_10kph"
met = MET_VALUES[activity]
calories = calories_burned(met, weight_kg, duration_min)
print(f"Activity: {activity}")
print(f"MET: {met}")
print(f"Calories burned: {calories:.1f} kcal")
# Compare multiple activities at same duration
print("\nCalorie comparison (70 kg, 30 min):")
for name, m in MET_VALUES.items():
cal = calories_burned(m, weight_kg, duration_min)
print(f" {name:25s}: {cal:.0f} kcal")Comments & Feedback
Comments are powered by Giscus. Sign in with GitHub to leave a comment.