Yes, Microsoft’s AI Sketch2Code can build a basic website from a hand-drawn wireframe, but it does not generate production-ready code. You draw a rough layout on paper, take a photo, and the AI converts it into HTML and CSS that you can open in a browser. It is a proof-of-concept that shows how vision models can turn sketches into working front-end code, not a tool for deploying a full site.
Formula
The calculator above works out your average running pace and speed from a finish time and distance. The formulas are:
Pace (min/km) = Finish time (minutes) ÷ Distance (km)
Speed (km/h) = Distance (km) ÷ (Finish time (minutes) ÷ 60)
Variables:
- t – finish time in minutes (e.g., 50 means 50 minutes)
- d – distance in kilometers (e.g., 10 km)
The pace is the number of minutes it takes to run one kilometer. The speed is how many kilometers you cover in one hour.
Worked Example
Using the default values from the calculator: t = 50 minutes, d = 10 km.
- Pace = 50 ÷ 10 = 5.0 min/km
- Speed = 10 ÷ (50 ÷ 60) = 10 ÷ 0.8333 = 12.0 km/h
So a 50-minute 10 km run is a 5:00 min/km pace and a 12.0 km/h average speed.
When to Use This Calculator
Use this when you have a finish time and distance and want to know your average pace for training or race planning. Runners often use pace to set target times for intervals or to compare performances across different distances. The speed figure is useful for treadmill settings or for converting to miles if needed (1 km ≈ 0.621371 miles).
To get pace per mile instead of per kilometer, simply divide the pace in min/km by 1.60934. For example, 5.0 min/km ≈ 8.05 min/mile.
How to Read the Result
The first output is your pace in minutes per kilometer, shown as a decimal (e.g., 5.0). A lower number means faster. The second output is your average speed in km/h – a higher number means faster. Both are averages over the whole distance; your actual pace will vary with terrain, wind, and fatigue.
If you run a 5 km in 30 minutes, your pace is 6.0 min/km and speed is 10.0 km/h. If you run a marathon (42.195 km) in 4 hours (240 minutes), your pace is 240 ÷ 42.195 ≈ 5.69 min/km, or about 10.5 km/h.
Common Mistakes
- Using hours instead of minutes – Always convert hours to minutes (1 hour = 60 minutes) before entering. 1:30:00 becomes 90.
- Mixing miles and kilometers – If your distance is in miles, convert to km first (1 mile = 1.60934 km) or the pace will be wrong.
- Rounding too early – Keep at least two decimal places during the calculation. Rounding the pace to 5.0 before computing speed can shift the speed by 0.1 km/h.
Limits of the Formula
This formula assumes a constant speed. In reality, runners slow down on hills, speed up on downhills, and often run negative splits (faster second half). The average pace is still useful for training zones, but it does not predict your finish time for a different distance – that depends on endurance, training, and race conditions.
For very short distances (e.g., 100 m), the pace in min/km is extremely fast (under 3.0) and the speed is high, which is fine. For very long distances (e.g., 100 km), the pace will be slow. The calculator allows any positive distance up to 100,000 km, which covers all realistic running events.
Frequently Asked Questions
How do I convert pace to min/mile?
Divide the pace in min/km by 1.60934. For example, 5.0 min/km ÷ 1.60934 = 3.11 min/mile. That is a very fast pace (about 19.3 km/h). More typical: 6.0 min/km ÷ 1.60934 = 3.73 min/mile (about 16.1 km/h).
What is a good pace for a beginner?
For a beginner running a 5 km, a pace of 7–8 min/km (8.6–7.5 km/h) is common. For a 10 km, 6–7 min/km is typical for recreational runners. Elite runners run 10 km at under 3.0 min/km (over 20 km/h).
Can I use this for walking?
Yes, the formula works for any speed. A brisk walking pace is about 5 km/h, which is 12 min/km. Enter distance and time for a walk and you will get the same pace and speed.
Why does the calculator show speed in km/h and not mph?
Because the distance is entered in kilometers. To get mph, enter distance in miles (the calculator will treat it as km, so convert: 1 mile = 1.60934 km) or multiply the speed in km/h by 0.621371.
What if I run on a treadmill at a set speed?
If the treadmill shows km/h, you can enter that speed directly to find your pace for a given distance. For example, at 10 km/h, your pace is 6.0 min/km. The calculator works both ways: enter time and distance to get speed, or enter speed and a hypothetical time to get distance.