Calculate Running Pace

.pace-calc-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 800px; margin: 20px auto; padding: 25px; border: 1px solid #e1e1e1; border-radius: 12px; background-color: #ffffff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); } .pace-calc-header { text-align: center; margin-bottom: 25px; } .pace-calc-header h2 { color: #2c3e50; margin-bottom: 10px; } .pace-input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; } .pace-field { display: flex; flex-direction: column; } .pace-field label { font-weight: 600; margin-bottom: 8px; color: #34495e; } .pace-field input, .pace-field select { padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; } .time-inputs { display: flex; gap: 10px; } .time-inputs div { flex: 1; } .time-inputs label { font-size: 12px; text-align: center; display: block; } .calculate-btn { width: 100%; padding: 15px; background-color: #27ae60; color: white; border: none; border-radius: 6px; font-size: 18px; font-weight: bold; cursor: pointer; transition: background 0.3s; } .calculate-btn:hover { background-color: #219150; } #paceResult { margin-top: 25px; padding: 20px; background-color: #f8f9fa; border-radius: 8px; text-align: center; display: none; } .result-val { font-size: 24px; color: #27ae60; font-weight: 800; display: block; } .pace-article { margin-top: 40px; line-height: 1.6; color: #444; } .pace-article h3 { color: #2c3e50; border-bottom: 2px solid #27ae60; padding-bottom: 5px; margin-top: 25px; } .pace-table { width: 100%; border-collapse: collapse; margin: 20px 0; } .pace-table th, .pace-table td { border: 1px solid #ddd; padding: 12px; text-align: left; } .pace-table th { background-color: #f2f2f2; } @media (max-width: 600px) { .pace-input-grid { grid-template-columns: 1fr; } }

Running Pace Calculator

Determine your speed per mile or kilometer for any race distance.

Miles Kilometers
Your average pace: –:–

How to Use This Pace Calculator

Whether you are training for your first 5K or aiming for a Boston Marathon qualifying time, understanding your running pace is crucial. This calculator allows you to input your target distance and total time to find exactly how fast you need to run each mile or kilometer.

To use the tool, enter the distance of your run, select the unit (miles or kilometers), and input your total time. If you ran for 2 hours and 30 minutes, you would enter 2 in the hours box and 30 in the minutes box.

Common Race Distance Conversion

Race Event Miles Kilometers
5K 3.11 5.0
10K 6.21 10.0
Half Marathon 13.11 21.1
Marathon 26.22 42.2

The Math Behind Running Pace

The basic formula for pace is Pace = Time / Distance. For example, if you run a 5K (3.11 miles) in 25 minutes, the calculation is:

  • Convert 25 minutes to seconds: 1,500 seconds.
  • Divide by distance: 1,500 / 3.11 = 482.3 seconds per mile.
  • Convert back to minutes: 8 minutes and 2 seconds per mile.

Why Knowing Your Pace Matters

1. Race Strategy: Prevents you from starting too fast and burning out (hitting "the wall").

2. Training Zones: Different workouts (tempo, intervals, easy runs) require specific paces to trigger physiological adaptations.

3. Progress Tracking: As your fitness improves, you'll notice your "easy pace" getting faster at the same heart rate.

function calculateRunningPace() { var dist = parseFloat(document.getElementById("distance").value); var unit = document.getElementById("distUnit").value; var hrs = parseFloat(document.getElementById("hours").value) || 0; var mins = parseFloat(document.getElementById("minutes").value) || 0; var secs = parseFloat(document.getElementById("seconds").value) || 0; var resultDiv = document.getElementById("paceResult"); var output = document.getElementById("paceOutput"); if (!dist || dist <= 0 || (hrs === 0 && mins === 0 && secs === 0)) { alert("Please enter a valid distance and time."); return; } // Convert everything to total seconds var totalSeconds = (hrs * 3600) + (mins * 60) + secs; // Calculate seconds per unit (mile or km) var paceSecondsTotal = totalSeconds / dist; var paceMins = Math.floor(paceSecondsTotal / 60); var paceSecs = Math.round(paceSecondsTotal % 60); // Format seconds with leading zero if (paceSecs < 10) { paceSecs = "0" + paceSecs; } var unitLabel = unit === "miles" ? "per mile" : "per kilometer"; output.innerHTML = paceMins + ":" + paceSecs + " " + unitLabel + ""; resultDiv.style.display = "block"; }

Leave a Comment