Mile Pace Calculator Formula

Understand the math behind the mile pace calculator. Each variable explained with a worked example.

Formulas Used

Speed

speed_mph = round(3600 / total_seconds * 100) / 100

Speed

speed_kph = round(3600 / total_seconds * 1.60934 * 100) / 100

Pace per Kilometer

pace_per_km = round(total_minutes / 1.60934 * 100) / 100

400m Lap Time

four_hundred_m = round(total_seconds / 4.023 * 10) / 10

Variables

VariableDescriptionDefault
mile_minutesMinutes(min)7
mile_secondsSeconds(sec)30
total_secondsDerived value= mile_minutes * 60 + mile_secondscalculated
total_minutesDerived value= total_seconds / 60calculated

How It Works

How Mile Pace Translates to Speed

Your mile time is a fundamental fitness benchmark.

Formulas

Speed (mph) = 3600 / Mile Time (seconds)

400m Lap Time = Mile Time (seconds) / 4.023 (since a mile is 4.023 laps of a 400m track)

Context

A 4-minute mile means running at 15 mph. Most recreational runners run a mile between 7 and 12 minutes.

Worked Example

Your mile time is 7 minutes and 30 seconds.

mile_minutes = 7mile_seconds = 30
  1. 01Total time = 7 * 60 + 30 = 450 seconds
  2. 02Speed = 3600 / 450 = 8.00 mph
  3. 03Speed in km/h = 8.00 * 1.60934 = 12.87 km/h
  4. 04Pace per km = 7.5 / 1.60934 = 4.66 min/km
  5. 05400m lap = 450 / 4.023 = 111.9 seconds

Ready to run the numbers?

Open Mile Pace Calculator