Enter readings taken at different intervals (leave blank if fewer than 5):
Calculated Average Heart Rate: bpm
Estimated Max Heart Rate: bpm
Intensity Level: of Max
function calculateAvgHeartRate() {
// Get Inputs
var age = document.getElementById('userAge').value;
var r1 = document.getElementById('hr1').value;
var r2 = document.getElementById('hr2').value;
var r3 = document.getElementById('hr3').value;
var r4 = document.getElementById('hr4').value;
var r5 = document.getElementById('hr5').value;
// Validation
if (age === "" || age <= 0) {
alert("Please enter a valid age.");
return;
}
// Collect readings into an array to handle empty fields
var readings = [r1, r2, r3, r4, r5];
var sum = 0;
var count = 0;
for (var i = 0; i 0) {
sum += val;
count++;
}
}
if (count === 0) {
alert("Please enter at least one valid heart rate reading.");
return;
}
// Calculations
var averageHR = sum / count;
var maxHR = 220 – parseFloat(age); // Standard formula
var intensity = (averageHR / maxHR) * 100;
// Display Results
document.getElementById('displayAvg').innerHTML = Math.round(averageHR);
document.getElementById('displayMax').innerHTML = Math.round(maxHR);
document.getElementById('displayPercent').innerHTML = intensity.toFixed(1) + "%";
// Determine Zone
var zoneText = "";
if (intensity = 50 && intensity = 60 && intensity = 70 && intensity = 80 && intensity < 90) {
zoneText = "Zone 4: Hard (Anaerobic Capacity)";
} else {
zoneText = "Zone 5: Maximum Effort (VO2 Max)";
}
document.getElementById('zoneDisplay').innerHTML = zoneText;
document.getElementById('resultBox').style.display = "block";
}
How to Calculate Average Heart Rate During Exercise
Monitoring your heart rate during physical activity is one of the most effective ways to gauge intensity, track progress, and ensure safety. Whether you are training for a marathon or simply trying to improve your cardiovascular health, understanding your average heart rate allows you to optimize your workouts.
Why Calculate Average Heart Rate?
Your average heart rate during a session provides a snapshot of the overall physiological load placed on your body. Unlike peak heart rate, which only tells you the maximum intensity reached, the average reflects your sustained effort over time.
Fat Burning: Lower average heart rates (60-70% of max) generally target fat stores for energy.
Cardio Improvement: Moderate averages (70-80% of max) improve lung capacity and heart strength.
Recovery Monitoring: A higher-than-normal average for a standard workout can indicate overtraining or illness.
The Formula for Calculation
While modern wearables (like smartwatches and chest straps) calculate this automatically, you can calculate it manually by taking periodic measurements. The basic mathematical formula for the arithmetic mean is:
Average HR = (Sum of all HR readings) รท (Total number of readings)
For example, if you measure your heart rate at 10-minute intervals during a 30-minute run and get readings of 130, 145, and 140, your average is (130 + 145 + 140) / 3 = 138.3 BPM.
Understanding Your Results
Once you have your average heart rate, it is crucial to compare it against your Maximum Heart Rate (MHR) to understand your training zone. The standard estimation for MHR is:
MHR = 220 – Age
Heart Rate Training Zones
By comparing your average HR to your MHR, you can place your workout into a specific intensity zone:
Zone 1 (50-60%): Very light activity, used for warm-ups.
Zone 2 (60-70%): The "Fat Burning" zone. Comfortable conversation is possible.
Zone 3 (70-80%): Aerobic zone. Improves blood circulation and skeletal muscle strength.
Zone 4 (80-90%): Anaerobic zone. High intensity, sustainable for shorter periods.
Zone 5 (90-100%): Maximum effort. Only sustainable for very short bursts.
Tips for Accurate Measurement
If you do not use a heart rate monitor, you can measure your pulse manually at the wrist (radial artery) or neck (carotid artery). Count the beats for 10 seconds and multiply by 6 to get your Beats Per Minute (BPM). Repeat this multiple times during your workout and use the calculator above to find your average.