Speed Distance Time Calculator
Free speed distance time calculator — solve v = d/t, d = v×t, or t = d/v across m/s, km/h, mph, kilometres, miles, seconds, minutes, and hours.
Speed Distance Time Calculator
Background.
This speed distance time calculator solves the most fundamental relationship in mechanics — distance equals speed multiplied by time, or v = d / t in its everyday rearranged form — for whichever of the three quantities you do not already know. Pick a 'solve for' mode, enter the two known values in your preferred units (the tool handles m/s, km/h, and mph for speed; metres, kilometres, and miles for distance; seconds, minutes, and hours for time), and the calculator returns the missing quantity together with the full self-consistent set, including the canonical SI speed in metres per second so you can verify the unit conversions independently.
The equation v = d / t is the operational definition of average speed and the first quantitative statement most students meet in physics: it sits at the doorway between geometry (lengths) and dynamics (motion), and from it follow every kinematic equation that comes later — constant-acceleration SUVAT, projectile motion, orbital mechanics, special relativity's velocity-addition formula, even the optical light-second used to compute astronomical distances.
In practical life the same three quantities and one equation answer an astonishing range of questions: how long will my 480 km drive from Mombasa to Nairobi take at an average 80 km/h (six hours plus rest stops); how fast is Usain Bolt's world-record 100 m in 9.58 s (10.44 m/s average, with a peak of 12.42 m/s in the 60 to 80 m segment per IAAF biomechanics); what is the pace per mile of a 3:30 marathon (8 minutes per mile, or 7:58 per mile to be exact); how long does light from the Sun take to reach Earth (the 1 AU distance of 149 597 870 700 m divided by c = 299 792 458 m/s gives 499.0 s, eight minutes nineteen seconds); how far has a passenger jet at 900 km/h cruise speed travelled during a 70-minute meal service (1050 km, roughly the length of Italy); and what cruise speed do I need to maintain to make my 200 mile drive in three and a half hours (57.14 mph average, accounting for nothing but pure highway motion).
The reason a single calculator can answer all of those is that 'speed' in physics is a scalar — a single non-negative number with units of length over time — that ignores the direction of travel. (Its directional cousin velocity, a vector, requires the same arithmetic but with sign or 2D/3D components, which is treated in the dedicated velocity and projectile-motion calculators.)
The widget below converts every input through NIST SP 811's exact factors (1 mile = 1 609.344 m, 1 km/h = 1/3.6 m/s, 1 mph = 0.447 04 m/s, 1 hour = 3 600 s — all exact by international agreement), performs the division or multiplication in full Decimal precision to avoid the floating-point drift that plagues naive JavaScript arithmetic, and converts the result back to your chosen display unit.
Below the calculator you will find the algebraic derivation of all three rearrangements (v = d / t, d = v × t, t = d / v) from the single definition; a worked example covering both a road-trip scenario and an athletics pace question; a reference table of human and natural speeds spanning eleven orders of magnitude from continental drift (2.5 cm/year) to the speed of light; an honest treatment of average versus instantaneous speed and why the simple v = d / t breaks down for variable-speed motion (the answer: the harmonic mean, not the arithmetic mean, governs equal-distance averaging); and how the same equation is used in athletics pace tables, marine navigation (knots and nautical miles), aviation (true airspeed versus ground speed), and astronomical distance measurement (the light-year, the light-second, and the radar-ranging of asteroids).
What is speed distance time calculator?
Speed is the rate at which an object covers distance — the magnitude of how fast it is moving, regardless of which way. The SI unit is the metre per second (m/s), but for human-scale problems most of the world uses kilometres per hour (km/h) and the United States plus a handful of others use miles per hour (mph). Mathematically, the simplest case is uniform motion: an object that covers equal distances in equal intervals of time, for which speed v = d / t is a single well-defined number that holds for any interval you pick. For non-uniform motion — every real journey, since cars accelerate, brake, and idle — v = d / t gives the average speed over the chosen interval, computed by dividing the total distance by the total elapsed time. The instantaneous speed, the value a speedometer reads, is the limit of that average as the interval shrinks to zero: v = dx/dt, the time derivative of position. Two distinctions are worth pinning down because they trip up students and journalists alike. First, speed is a scalar; velocity is a vector. A car that drives 100 km north then 100 km south in two hours has an average speed of 100 km/h (it covered 200 km in 2 h) but an average velocity of zero (its displacement is zero — it ended where it started). The calculator here computes speed, not velocity, which is the right tool for travel-time and pace questions but the wrong tool when direction matters (use the velocity or projectile-motion calculators for those). Second, average speed is not the arithmetic mean of segment speeds when the segments are of equal distance rather than equal time. Drive 60 km at 60 km/h and 60 km at 120 km/h — the average speed is not (60 + 120) / 2 = 90 km/h, it is the harmonic mean 2 × 60 × 120 / (60 + 120) = 80 km/h, because you spent twice as long in the slower segment. This is one of the most common bookkeeping errors in everyday physics; the calculator avoids it by always working from total distance and total time rather than averaging segment speeds.
How to use this calculator.
- Decide which quantity you want the calculator to compute — speed, distance, or time — and choose it from the 'Solve for' menu at the top of the widget.
- Set the three unit selectors to the units you want to work in: speed in m/s, km/h, or mph; distance in m, km, or mi; time in s, min, or h. The calculator converts internally to SI but reports results in your chosen display units.
- Enter the two known quantities in those units. If you are solving for speed, enter distance and time; for distance, enter speed and time; for time, enter speed and distance. The field corresponding to your unknown is ignored, so its value does not matter.
- Read the headline result in your chosen display unit, plus the canonical SI speed in metres per second underneath — the SI value is the same regardless of which display unit you picked, and is a useful sanity check on the conversion.
- For a road-trip estimate, set solveFor = 'time', enter your route distance in km (or mi) and your realistic average speed in km/h (or mph) — note that motorway cruise speed minus rest stops, fuel, and traffic typically averages 70 to 80% of the posted limit.
- For an athletics pace conversion, set solveFor = 'speed', enter distance = 1 km or 1 mi and time = your target split, and read off the average pace; alternatively set solveFor = 'time' with a known target pace and the race distance to predict your finish time.
- For a 'how far did I travel' question (light from the Sun, a plane during an hour of flight, a car during a known driving session), set solveFor = 'distance' and enter your cruise speed and elapsed time.
The formula.
The defining relation and its three algebraic rearrangements are:
v = d / t (definition of average speed) d = v × t (solve for distance — distance is the area under a speed-vs-time graph) t = d / v (solve for time)
Given any two of {v, d, t}, the third follows immediately. Internally the calculator does not perform this arithmetic in the user's chosen units directly — it converts every input to SI base units first, computes in m, s, and m/s, then converts the result back. The conversion chain uses exact factors from NIST Special Publication 811 (2008 edition):
distance: 1 m = 1 m (base) 1 km = 1 000 m (exact) 1 mi = 1 609.344 m (exact, international mile, since 1959)
time: 1 s = 1 s (base) 1 min = 60 s (exact) 1 h = 3 600 s (exact)
speed: 1 m/s = 1 m/s (base, SI) 1 km/h = 1/3.6 m/s (exact, = 1000 m / 3600 s) 1 mph = 0.447 04 m/s (exact, = 1 609.344 m / 3 600 s)
So a journey of 100 km in 2 h is internally 100 000 m divided by 7 200 s = 13.888… m/s, then converted back as 13.888… × 3.6 = 50 km/h. The full-precision intermediate is held in Decimal.js to avoid floating-point drift on awkward ratios like 1/3.6; the rounding you see in the output is purely cosmetic. Three guards are baked in. First, all three numerical inputs must be strictly positive — zero distance over zero time is mathematically indeterminate, and zero speed gives an infinite travel time, so the calculator raises an InvalidInputError rather than returning Infinity or NaN. Second, the equation v = d / t assumes constant speed (or, equivalently, gives the average speed of variable motion). For genuinely variable motion you should feed it the total distance and total elapsed time of the segment you care about, not the speed at any single moment. Third, the equation is non-relativistic — it assumes v is far below the speed of light c = 299 792 458 m/s, which is true for every terrestrial application but breaks down for particle accelerators and astronomical objects with appreciable redshift, where the relativistic velocity-addition formula and proper time replace the simple v = d / t.
A worked example.
The textbook road-trip case. You drive 100 kilometres in 2 hours of total elapsed time (including a brief coffee stop), and you want to know your average speed. Set solveFor = 'speed', distance = 100, time = 2, with units km, hours, and km/h. The calculator returns v = 100 / 2 = 50 km/h. Under the bonnet it converts the inputs to SI first — 100 km becomes 100 000 m, 2 h becomes 7 200 s — divides to get 13.8889 m/s, and converts back: 13.8889 × 3.6 = 50 km/h exactly. The canonical SI speed of 13.89 m/s is also reported, which you can cross-check by multiplying 50 km/h by the exact factor 1/3.6 — they match. Now flip the same scenario: you want to know how long the trip takes at 50 km/h. Switch solveFor to 'time', leave distance = 100 and speed = 50, and the calculator returns t = 100 / 50 = 2 h, equivalently 120 min, equivalently 7 200 s — same SI value, three display units. And once more, for the 'how far' version: at 50 km/h for 2 h, set solveFor = 'distance' and read d = 100 km. Three rearrangements of one equation, one self-consistent journey. The same workflow handles athletics: a marathon (42.195 km) run in 3 h 30 min (3.5 h) gives an average speed of 12.06 km/h, which is a pace of 8:00 per mile or 4:58 per kilometre — well above club-runner standard, just below sub-elite. And the same workflow handles astronomy: light from the Sun covers 149 597 870.7 km in t = 149 597 870.7 / 299 792.458 = 499.0 s = 8 min 19 s, the canonical Sun-Earth light-travel time used to time-stamp solar observations.
Frequently asked questions.
What is the formula for speed, distance, and time?
What is the difference between average speed and average velocity?
How do I average two different speeds for a round trip?
How do I convert km/h to mph and vice versa?
Why are the SI units of speed metres per second?
How do runners calculate pace per mile or per kilometre?
How long does light from the Sun take to reach Earth?
What is the difference between speed and velocity in physics?
Why do my driving travel-time estimates always come out too short?
What is the fastest known speed in physics?
References& sources.
- [1]Thompson, A. & Taylor, B. N. (2008). Guide for the Use of the International System of Units (SI). NIST Special Publication 811, 2008 Edition. National Institute of Standards and Technology, Gaithersburg, MD. Section B.8 'Factors for Units Listed Alphabetically' provides the exact unit-conversion factors used by this calculator (1 mi = 1 609.344 m, 1 km/h = 1/3.6 m/s, 1 mph = 0.447 04 m/s).
- [2]Halliday, D., Resnick, R. & Walker, J. (2018). Fundamentals of Physics, 11th edition. Wiley. Chapter 2 'Motion Along a Straight Line', sections 2-1 through 2-3, on position, displacement, average speed, average velocity, and instantaneous speed. The textbook treatment behind every distinction made in this calculator's content.
- [3]International Organization for Standardization (2019). ISO 80000-3:2019 'Quantities and units — Part 3: Space and time'. Defines the kinematic quantities length, distance, time, speed, and velocity, including their preferred SI units and the relationship v = ds/dt that underlies the calculator's formula.
- [4]Bureau International des Poids et Mesures (2019). The International System of Units (SI), 9th edition. Section 2.3 'Coherent derived units in the SI'. Establishes m/s as the coherent SI unit of speed via the defining constants — the speed of light c = 299 792 458 m/s exactly fixes the metre, and the caesium hyperfine transition fixes the second.
- [5]Khan Academy — Physics: One-Dimensional Motion. 'Distance, displacement and coordinate systems' and 'Average velocity and average speed'. Open educational resource used as the canonical curriculum reference for the introductory speed-distance-time material targeted by this calculator.
- [6]International Astronomical Union (2012). Resolution B2 'On the re-definition of the astronomical unit of length'. Fixes 1 AU = 149 597 870 700 m exactly. The basis for the 8 min 19 s Sun-Earth light-time calculation cited in the FAQs.
- [7]Graubard, S. T. & Higham, D. J. (1994). 'How to take averages of speeds'. The Mathematical Gazette, 78(481), 47-49. Short peer-reviewed paper on the harmonic-mean treatment of average speed across equal-distance segments — the result cited in this calculator's round-trip FAQ.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled