5K Pace Calculator Formula

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

Formulas Used

Pace (min/mile)

pace_min_part = floor(pace_per_mile)

Pace (sec remainder)

pace_sec_part = round((pace_per_mile - floor(pace_per_mile)) * 60)

Pace (min/km)

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

Average Speed

speed_mph = round(3.10686 / (total_minutes / 60) * 100) / 100

Variables

VariableDescriptionDefault
target_minutesTarget Minutes(min)25
target_secondsTarget Seconds(sec)0
total_minutesDerived value= target_minutes + target_seconds / 60calculated
pace_per_mileDerived value= total_minutes / 3.10686calculated

How It Works

How 5K Pace Is Calculated

A 5K is 5 kilometers or 3.10686 miles.

Formula

Pace (min/mile) = Total Time (minutes) / 3.10686

About the 5K

The 5K is the most popular race distance worldwide. It is a great starting point for new runners and a benchmark event for experienced athletes testing their speed-endurance.

Worked Example

You want to finish a 5K in 25 minutes.

target_minutes = 25target_seconds = 0
  1. 01Total time = 25 + 0/60 = 25 minutes
  2. 02Pace = 25 / 3.10686 = 8.05 min/mile
  3. 03That is 8 minutes and 3 seconds per mile
  4. 04Pace per km = 25 / 5 = 5.00 min/km
  5. 05Speed = 3.10686 / (25/60) = 7.46 mph

Ready to run the numbers?

Open 5K Pace Calculator