AnyTool
Your files never leave your device. All processing happens locally in your browser.

How do I calculate speed, distance or time?

Use the relationship distance = speed × time, which rearranges to speed = distance ÷ time and time = distance ÷ speed. In AnyTool Speed Distance Time Calculator you pick which one you want to find, enter the other two in any units (km, miles, metres, feet, yards or nautical miles for distance; hours, minutes or seconds for time; km/h, mph, m/s, knots or ft/s for speed), and it converts everything to SI base units, solves for the unknown, shows the formula and substitution, restates the speed in every unit, and gives the running/cycling pace — all in your browser.

  • Solve for speed, distance or time from the other two — the algebra is done for you
  • Mix any units freely; conversion to metres and seconds is automatic
  • Answer restated in km/h, mph, m/s, knots and ft/s at once
  • Running/cycling pace in minutes per kilometre and per mile
  • 100% in your browser — no upload, no signup, works offline

What is

Speed Distance Time Calculator

A speed distance time calculator applies the constant-average-speed relationship distance = speed × time to find any one of the three quantities from the other two: speed = distance ÷ time, distance = speed × time, or time = distance ÷ speed. It converts mixed units (miles, kilometres, metres; hours, minutes, seconds; mph, km/h, m/s, knots) to a common base before solving and reports the average speed, not the instantaneous speed, of a journey.

Calculators

Related terms

Average speedVelocityPace (min/km)Unit conversionDistance = speed × time

Frequently Asked Questions

Divide the distance by the time: speed = distance ÷ time. 100 km in 2 hours is 50 km/h.

Average speed equals the total distance divided by the total time, speed = distance ÷ time. So 100 kilometres covered in 2 hours is 50 km/h. In AnyTool Speed Distance Time Calculator you choose “Speed”, enter the distance and the time in whatever units you like, and it converts them to metres and seconds, divides, and shows the answer in km/h, mph, m/s, knots and ft/s at once — all computed in your browser.

Divide 60 minutes by the speed in km/h. At 12 km/h that is 5 minutes per kilometre.

Pace is the inverse of speed. Minutes per kilometre equals 60 divided by the speed in km/h, and minutes per mile equals 60 divided by the speed in mph. At 12 km/h that is a 5:00 min/km pace. AnyTool Speed Distance Time Calculator shows this pace panel automatically for any speed you calculate or enter, in minutes-and-seconds format for both kilometres and miles — useful for runners and cyclists.

Yes. The calculator converts every input to metres and seconds first, so any combination of distance and time units works.

You can mix units freely — miles with hours, kilometres with minutes, metres with seconds — because the engine converts each value to SI base units (metres and seconds) before applying distance = speed × time, then converts the answer back to the unit you chose. This removes the most common source of error in speed problems, which is forgetting to put distance and time in matching units.

It is the average speed over the whole journey, not the instantaneous or top speed.

The formula distance = speed × time describes motion at a single constant speed, so the result is the average speed over the entire trip. Real journeys vary with traffic, hills, stops and wind, so your instantaneous speed will be higher and lower at different moments. The calculator states this honestly and flags division by zero (zero time or zero speed) instead of returning infinity. Everything runs in your browser with no upload.

Detailed Explanation

Methodology

How the Speed Distance Time Calculator Solves

The engine applies the single relationship distance = speed × time, rearranged for the chosen unknown: speed = distance ÷ time, distance = speed × time, or time = distance ÷ speed. Before solving it converts every input to SI base units — distance to metres (km ×1000, mile ×1609.344, yard ×0.9144, foot ×0.3048, nautical mile ×1852), time to seconds (h ×3600, min ×60), and speed to metres per second (km/h ÷3.6, mph ×1609.344/3600, knot ×1852/3600, ft/s ×0.3048) — then converts the answer back to the requested unit. This lets the user mix units freely (miles with hours, metres with seconds) without manual conversion. All routines are pure functions in a unit-testable engine.

  • distance = speed × time, rearranged for speed, distance or time
  • All inputs normalised to metres and seconds before solving
  • Distance: m, km, mi, ft, yd, nmi · Time: s, min, h
  • Speed: m/s, km/h, mph, knots, ft/s — mixed freely
  • Pure, unit-testable engine — no DOM, no server
How It Works

Multi-Unit Output and Running/Cycling Pace

A result-first card shows the solved value with its unit, the formula used and the substitution with the numbers plugged in. Below it, the speed is restated simultaneously in km/h, mph, m/s, knots and ft/s, and a pace panel converts that speed to running/cycling pace in minutes-and-seconds per kilometre and per mile (pace being the inverse of speed: 60 ÷ km/h gives min/km). Time results are also shown as a friendly H:M:S duration. The page recomputes live as you type and the copy button exports the formula and substitution.

  • Speed restated in km/h, mph, m/s, knots and ft/s at once
  • Running/cycling pace in min/km and min/mile
  • Formula and substitution line shown for every answer
  • Time results also given as an Hh Mm Ss duration
  • Live recompute as you type; one-tap copy of the working
Limitations

Average Speed, Not Instantaneous

distance = speed × time models motion at a single constant speed, so the result is the average speed over the whole journey, not the top or instantaneous speed; real trips vary with traffic, hills, stops and wind. The tool flags division by zero (zero time when finding speed, zero speed when finding time) and negative inputs rather than returning Infinity or NaN, and it uses IEEE-754 double precision so extreme values can round. It is a single-formula calculator, not a route planner or a trip simulator.

  • Result is the constant average speed, not instantaneous or top speed
  • Division by zero (zero time or speed) flagged, not Infinity
  • Negative distance/time/speed rejected with a clear message
  • Double-precision arithmetic can round on extreme inputs
  • Single-formula calculator, not a route planner or simulator
Privacy & Security

Privacy and Offline Use

All solving runs in the browser as pure functions, so nothing you enter is sent to a server, there is no account or tracking, and the page keeps working offline after first load. The values you type live only in the page and reset on reload.

Speed/distance/time solving: in-browser (AnyTool) vs typical online calculators
CapabilityAnyToolTypical online calculators
Where it runs100% in your browser, offline-capableOften server-side
Solve for any valueYes — speed, distance or timeSometimes one fixed output
Mix units freelyYes, auto-converted via SI baseOften requires matching units
Multi-unit answerkm/h, mph, m/s, knots, ft/s at onceUsually one unit
Running/cycling pacemin/km and min/mile shownRarely included
PrivacyNothing uploaded, no accountMay log inputs

AnyTool converts every input to metres and seconds, solves locally with a unit-tested engine, and uploads nothing.