The rmdir command removes empty directories in Linux and macOS. You give it one or more directory paths, and it deletes them only if they contain no files or subdirectories. This guide shows practical examples, explains how it differs from rm -r, and covers common pitfalls.
Formula
The calculator works out your average pace and speed for a run, walk, or cycle. You enter the total time taken and the distance covered. The tool then returns your average pace in minutes per kilometer and your average speed in kilometers per hour.
The formulas are:
- Pace = Time (minutes) ÷ Distance (km)
- Speed = Distance (km) ÷ (Time (minutes) ÷ 60)
Where:
- t = total time in minutes
- d = distance in kilometers
Worked Example
Using the default values from the calculator (50 minutes and 10 km):
- Pace = 50 ÷ 10 = 5.00 min/km
- Speed = 10 ÷ (50 ÷ 60) = 10 ÷ 0.8333 = 12.00 km/h
So a 50‑minute, 10‑km run gives an average pace of 5 minutes per kilometer and an average speed of 12 km/h. The calculator rounds both to two decimal places.
When to Use This Calculator
Use this tool when you want a quick, consistent way to track your training intensity. Runners often express effort as pace (min/km), while cyclists and drivers think in speed (km/h). This calculator gives you both from the same two inputs, so you can compare workouts without doing the math by hand.
It also helps when you plan a route: if you know your usual pace, you can estimate how long a new distance will take. Conversely, if you have a target time for a race, you can see what pace you need to hold.
How to Read the Results
The first output is your average pace. A lower number means faster – 4:30 min/km is quicker than 6:00 min/km. The second output is your average speed in km/h. For most runners, a typical easy pace is between 8 and 10 km/h; for cyclists, 20–30 km/h is common.
Remember that this is an average. If you run intervals or hills, your instantaneous pace will vary. The average smooths out those changes.
Common Mistakes
- Mixing units: Enter time in minutes, not hours. If you ran for 1 hour 15 minutes, enter 75, not 1.15.
- Using miles with km: The calculator expects distance in kilometers. If you measured in miles, convert first (1 mile = 1.60934 km).
- Rounding too early: Do the division in one step, as the calculator does. Rounding the intermediate speed before computing pace can give a slightly different answer.
Limitations of the Formula
The formula assumes a constant pace throughout the activity. It does not account for stops, elevation gain, or varying terrain. For a hilly run, your average pace will be slower than your flat‑ground pace, but the calculator still gives a correct overall average.
Also, the calculator is unit‑agnostic in the sense that you could enter time in hours and distance in miles, but the outputs would be in hours per mile and miles per hour – the formulas still work, but the labels would be wrong. Stick to minutes and kilometers for the intended output.
Frequently Asked Questions
What is a good running pace for a beginner?
A comfortable conversational pace for a beginner is often around 6:30 to 8:00 min/km (roughly 7.5–9.5 km/h). This varies widely with age, fitness, and terrain. The calculator helps you find your own baseline.
How do I convert pace from min/km to min/mile?
Multiply the pace in min/km by 1.60934. For example, 5:00 min/km × 1.60934 = 8:03 min/mile. Conversely, divide min/mile by 1.60934 to get min/km.
Does the calculator work for walking?
Yes. The math is identical for walking, running, cycling, or any activity where you know the time and distance. A typical walking pace is 12–20 min/km, which corresponds to 3–5 km/h.
Why does the speed output show 0.00 sometimes?
If you enter a very large time (like 10,000 minutes) and a small distance, the speed rounds to 0.00 because it is less than 0.005 km/h. The formula is still correct, but the display precision hides it. Use a smaller time unit or more decimals if you need finer detail.
Can I use this to plan a race pace?
Yes. Enter your target finish time and the race distance. The calculator will show the average pace you need to sustain. For example, a 10‑km race in 45 minutes requires a 4:30 min/km pace.