Health & Fitness

Pace calculator

This pace calculator lets you calculate running pace, time, or distance from any two of the three, and predicts how fast you’d run a 5K, 10K, half marathon, or marathon based on a recent result.

Pace calculator stopwatch showing pace, time, and distance and race predictions
What this pace calculator solves for, and the race distances it predicts.

Calculate pace, time, or distance

Choose what you want to calculate and enter the other two values.
min sec
h min sec
Enter the details

Predict race time

Enter a known distance and time (for example a recent 5K), and see a prediction for other distances.
h min sec

How to use this pace calculator

The top card handles three related questions at once, and the bottom card is a separate tool for predicting other race distances:

  1. Pick what you want to solve for. Click “Calculate time,” “Calculate pace,” or “Calculate distance” — the fields for the other two values stay visible so you can fill them in.
  2. Enter the two known values and press Calculate. Distance is in kilometers; pace and time use separate hour/minute/second fields. Pace is always shown in min per km (min/km), so a “5:30” result means 5 minutes 30 seconds for every kilometer.
  3. For a race time prediction, use the second card instead: enter a distance and time you’ve actually run, then press Predict to see 5K, 10K, half marathon, and marathon estimates.

How is pace calculated?

Pace indicates how much time you need to cover one kilometer, and is calculated by dividing your total time by the distance covered.

Pace = total time ÷ distance

The pace calculator also converts that pace to minutes per mile, using the exact definition 1 mile = 1.609344 km from the NIST guide to SI conversion factors, and shows your speed in km/h. Race distances are the official ones: 5 km, 10 km, 21.0975 km for the half marathon and 42.195 km for the marathon. For other distance conversions, use the kilometers to miles converter.

How does race time prediction work?

The pace calculator uses Riegel’s formula, a widely used method for predicting a realistic time at one distance based on a known performance at another distance. The formula accounts for the fact that your average pace naturally slows as distance increases. It was first published by engineer Pete Riegel in Runner’s World in 1977, and the 1.06 exponent below is still the standard value used in most race calculators today.

New time = known time × (new distance ÷ known distance)1.06

This prediction is most reliable when the known and predicted distances aren’t too far apart, and doesn’t account for factors such as weather, course terrain, or training specific to the longer distance.

Worked example

Both examples below use the exact math this pace calculator runs in your browser.

Pace/time calculator: 10 km at 5:30/km (the default values)

5:30 × 10 = 0:55:00 total time — matching the default “Calculate time” result above.

Race prediction from a 25:00 5K (the default values)

DistancePredicted timePace per km
10K0:52:075:13/km
Half marathon1:55:005:27/km
Marathon3:59:475:41/km

Pace calculator vs. race time predictor

These solve different problems. The pace calculator answers “how fast am I actually running, or how long will this distance take at a given pace” — pure arithmetic with no assumptions. The race time predictor instead answers “what does a result at one distance suggest about another distance,” which requires a model of how pace changes with distance, hence Riegel’s formula. Use the first for pacing a workout or race you’re already running, and the second for setting a realistic goal time before you toe the line.

Limitations of race time prediction

Riegel’s formula is a genuinely useful starting point, but it isn’t precise, especially when stretching a short result across a big jump in distance. A well-known Slate investigation into marathon predictors found that runners with a solid half-marathon time were often predicted to finish the marathon around 15 minutes faster than they actually did, because endurance-specific fatigue at 42 km isn’t fully captured by a single exponent tuned mostly on shorter races. Treat predictions from a 5K or 10K as rough guidance for a marathon goal, not a firm target, and weight them more heavily when the known and target distances are close together.

Frequently asked questions

Why is my pace slower over a longer distance?

Endurance plays a bigger role over longer distances, which means most runners hold a slower average pace than over shorter distances — this is normal and is accounted for in Riegel’s formula via the 1.06 exponent.

Is this prediction exact?

No, the pace calculator’s race prediction is a statistical estimate based on a recognized formula. Your actual performance also depends on specific training for that distance, the course, the weather, and your form on the day itself.

Can I also use this calculator for cycling or swimming?

The pace calculator’s time, pace and distance math works for any sport. The race time prediction is specifically calibrated for running and less reliable for other sports.

Can I use this as a marathon time calculator?

Yes — enter a recent 5K, 10K, or half marathon result in the “Predict race time” card and the marathon row of the results table gives you a Riegel-based estimate, alongside the same prediction for the other standard distances.

Is this pace calculator accurate enough to set a marathon goal time?

It’s a reasonable starting point, particularly if your known result is a half marathon rather than a 5K. Treat the predicted marathon time as the upper end of what’s realistic, and confirm it against your actual long-run training pace before committing to a race-day target.

This pace calculator provides a general, mathematically correct calculation based on the data you entered. It is not medical advice: if you have a heart condition or another health problem, talk to a doctor before starting hard training. To see how your training fits your daily energy needs, try the TDEE calculator. Back to CalcSwiftly home.

Reviewed by: CalcSwiftly · Last reviewed: