keepcalculator

06 Numbers and Powers

Re Run Last Command Replacing Syntax or Typo

Card No. 06·68400 · Updated · Standard formula, shown below

Average pace 5.00 min/km
Average speed
12.00 km/h
Result
Finish time
50 min
You entered
Distance
10 km
You entered
You enter
Finish time, Distance
You get
Average pace, Average speed
Rounding
2 dp

Yes, you can re-run your last command after replacing a syntax error or typo. The fastest way is to use the shell’s history expansion: type ^old^new and press Enter, or use !! with a substitution like !!:s/old/new/. This works in Bash, Zsh, and most other Unix-like shells, and similar features exist in PowerShell and Windows Command Prompt.

Formula

The calculator above computes your average pace and speed from a finish time and distance. The pace formula is:

pace (min/km) = finish time (min) / distance (km)

The speed formula is:

speed (km/h) = distance (km) / (finish time (min) / 60)

Variables:

  • t – finish time in minutes (e.g., 50 min)
  • d – distance in kilometers (e.g., 10 km)
  • pace – minutes per kilometer, shown with 2 decimals
  • speed – kilometers per hour, shown with 2 decimals

Worked Example

Using the defaults: t = 50 minutes, d = 10 km.

  1. Pace = 50 / 10 = 5.00 min/km
  2. Speed = 10 / (50 / 60) = 10 / 0.8333 = 12.00 km/h

The calculator returns pace 5.00 min/km and speed 12.00 km/h. That matches the formula output.

When to Use This Calculator

Use this calculator when you have a finish time and a known distance – for example, a 5K race, a 10-mile training run, or a cycling time trial. It converts your total time into a per-kilometer pace, which is the standard way runners compare effort across different distances. It also gives speed in km/h, useful if you are more familiar with cycling or treadmill displays.

Pace is the inverse of speed: a faster pace means a lower number (e.g., 4:30 min/km is faster than 6:00 min/km). Speed is higher when pace is lower. This calculator uses minutes per kilometer, but you can convert to minutes per mile by multiplying the pace by 1.60934.

How to Read the Result

The headline answer is the average pace. If you ran 10 km in 50 minutes, your average pace is 5:00 per kilometer. That means every kilometer took exactly 5 minutes. The speed output tells you the same thing in different units: 12 km/h. Both are averages – your actual pace likely varied with hills, wind, and fatigue.

For training, pace helps you set target times. If you want to run a 45-minute 10K, your required pace is 4:30 per km. You can use the calculator to check if a planned pace is realistic for your current fitness.

Common Mistakes and Unit Mix-Ups

  • Using miles instead of kilometers: If your distance is in miles, convert to kilometers first (1 mile = 1.60934 km) or the pace will be wrong.
  • Entering time in hours and minutes: The calculator expects total minutes. For 1 hour 10 minutes, enter 70, not 1.10.
  • Confusing pace and speed: Pace is time per distance; speed is distance per time. A lower pace is faster, but a lower speed is slower.
  • Rounding too early: Keep at least two decimals in intermediate steps to avoid a slightly off final pace.

Limitations of the Formula

This is a simple average formula. It does not account for elevation gain, terrain, weather, or rest stops. It assumes you moved continuously at a constant effort. For interval workouts or trail runs with steep climbs, your average pace may not reflect the actual difficulty. Also, the calculator only works for a single continuous effort – if you paused your watch, the time you enter should be moving time, not elapsed time.

The formula is exact for any distance and time, but the result is only as good as the inputs. If you round your distance to the nearest kilometer, the pace will be approximate.

Frequently Asked Questions

How do I convert pace to minutes per mile?

Multiply the pace in min/km by 1.60934. For example, 5.00 min/km × 1.60934 = 8.05 min/mile. You can also use the speed value: 60 / speed in km/h gives min/km, and 60 / (speed in mph) gives min/mile.

What is a good running pace for a beginner?

It depends on age, fitness, and gender. A common beginner 5K pace is around 6:30–8:00 min/km. The calculator itself does not judge what is good; it just computes the number. Compare your pace to age-graded tables from running organizations for context.

Can I use this for walking or cycling?

Yes. The formula works for any activity where you cover a distance in a time. For cycling, speed in km/h is often more intuitive. For walking, pace is usually slower, like 10–12 min/km.

Why does the calculator show speed as 12.00 km/h for a 50-minute 10K?

Because 10 km divided by 0.8333 hours (50 minutes) equals 12.00 km/h. That is the mathematical average speed. It is a simple conversion from pace.

How do I calculate pace for a marathon if I know my finish time?

Enter the total finish time in minutes (e.g., 3 hours 30 minutes = 210 minutes) and the marathon distance (42.195 km). The calculator will give your average pace per kilometer. For a 3:30 marathon, that is about 4:58 min/km.

What if I run on a treadmill and it shows mph?

Convert mph to km/h by multiplying by 1.60934. Then use the calculator with that speed to get pace, or directly use the speed output. For example, 7.5 mph × 1.60934 = 12.07 km/h, which is about 4:58 min/km.

Related

Formula used
in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0 | 100000
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →