Distance-Speed-Time Triangle Calculator
Solve any one of distance, speed, or time given the other two. Use the interactive D-S-T triangle to pick the unknown, mix units freely (km, mi, m, ft, km/h, mph, m/s, ft/s, knots, sec/min/hr/day), enter time as 1h 30m or 5400 sec, and see an animated journey, full step-by-step solution, plus bonus modes for multi-leg average speed and round-trip harmonic-mean speed.
Your ad blocker is preventing us from showing ads
MiniWebtool is free because of ads. If this tool helped you, please support us by going Premium (ad‑free + faster tools), or allowlist MiniWebtool.com and reload.
- Allow ads for MiniWebtool.com, then reload
- Or upgrade to Premium (ad‑free)
About Distance-Speed-Time Triangle Calculator
The Distance-Speed-Time Triangle Calculator turns the classic schoolbook DST triangle into an interactive solver. Tap any corner of the triangle — Distance, Speed, or Time — and the tool hides that field, asks for the other two, and returns the answer with a step-by-step LaTeX explanation, an animated journey visualization, and an intuition tag that translates the result into something familiar (walking pace, highway driving, cruising airliner). Distances accept km, miles, metres, feet, yards, and nautical miles. Speeds accept km/h, mph, m/s, ft/s, knots, and Mach. Time accepts seconds, minutes, hours, days, or natural strings like 1h 30m, 90 min, 1:30:00, or 5400 sec. Two bonus modes go beyond the basic triangle: a multi-leg average-speed solver (up to four legs) and a round-trip solver that correctly returns the harmonic mean of the two speeds.
How to use this calculator
- Tap the corner you want to solve for. Click D, S, or T directly on the triangle. The corresponding mode is selected automatically and the unknown field disappears so you only see the two values you actually need to provide.
- Enter the two known values in any units — the calculator converts everything to consistent SI (metres, seconds, m/s) before solving and shows the result back in the unit family of your inputs.
- Type time naturally by switching the time unit to mixed. Strings like
1h 30m,90 min,1:30:00, and5400 secare all accepted. - Click Solve to see the headline answer, alternative-unit conversions, an animated journey strip, and a numbered LaTeX-formatted step-by-step solution.
- Switch tabs for bonus problems. The Multi-leg tab averages a journey with multiple distance-and-speed legs (correctly using total-distance over total-time). The Round-trip tab handles the famous "60 mph there, 40 mph back" puzzle with the harmonic mean.
The DST triangle, explained
The triangle is a finger-cover memory aid that bakes three formulas into one picture:
Cover D → S × T
D sits at the top. Cover it with your finger and the bottom row reads "S times T".
\( d = s \times t \)
Cover S → D ÷ T
S is bottom-left. Cover it and the remaining shape reads "D over T".
\( s = \dfrac{d}{t} \)
Cover T → D ÷ S
T is bottom-right. Cover it and the remaining shape reads "D over S".
\( t = \dfrac{d}{s} \)
The horizontal divider in the middle of the triangle is the fraction bar. The empty space between S and T is multiplication. That single picture is enough to derive every distance-speed-time formula you will ever need.
Worked example: solving for time
You drive 240 km at a steady 80 km/h. How long does it take?
- Cover T on the triangle. The remaining shape reads \( t = d / s \).
- Convert nothing — both values are already in compatible units.
- \( t = 240 / 80 = 3 \) hours, or 10,800 seconds, or 180 minutes.
Worked example: solving for distance with mixed units
A train cruises at 25 m/s for 1 hour 30 minutes. How far does it go?
- Convert time to seconds: \( 1\,\text{h}\,30\,\text{min} = 5400\,\text{s} \).
- Apply \( d = s \times t \): \( d = 25 \times 5400 = 135{,}000 \) m = 135 km.
- That's about an 85-mile commute — roughly the highway distance from London to Birmingham.
Worked example: round-trip harmonic mean
You drive 60 miles to a town at 60 mph and return at 40 mph. What is your average speed for the whole trip?
- Outbound time: \( 60 / 60 = 1 \) hour. Return time: \( 60 / 40 = 1.5 \) hours.
- Total distance \( D = 60 + 60 = 120 \) mi. Total time \( T = 1 + 1.5 = 2.5 \) h.
- Average speed \( = D / T = 120 / 2.5 = 48 \) mph — NOT 50 mph.
- The harmonic-mean formula gives the same answer in one step: \( \bar v = \dfrac{2 v_1 v_2}{v_1 + v_2} = \dfrac{2 \times 60 \times 40}{60 + 40} = \dfrac{4800}{100} = 48 \) mph.
Common pitfalls to avoid
- Mixing km/h with seconds. Multiplying 60 km/h by 30 seconds gives a number that means nothing. Either convert km/h to m/s (multiply by 5/18 ≈ 0.2778) or convert seconds to hours.
- Averaging speeds the naive way. Going 60 mph and 40 mph for equal *distances* averages to 48 mph, not 50. Going 60 mph and 40 mph for equal *times* averages to 50 mph. The triangle averages distances and times — never raw speeds.
- Forgetting to convert minutes. "It took 90 minutes" used as raw \( t = 90 \) inside \( d = s \times t \) with km/h gives a distance off by 60 times. Use the mixed-time parser or pick "min" as the unit.
- Using zero or near-zero values. Time and speed must be strictly positive — division by zero would produce infinity. The calculator rejects such inputs with a friendly message.
- Decimal commas vs decimal points. The calculator accepts both —
1,5and1.5mean the same hour-and-a-half.
Quick conversion reference
| From | To | Multiply by | Worked example |
|---|---|---|---|
| km/h | m/s | 5/18 ≈ 0.2778 | 72 km/h × 5/18 = 20 m/s |
| m/s | km/h | 18/5 = 3.6 | 25 m/s × 3.6 = 90 km/h |
| mph | km/h | 1.609344 | 60 mph × 1.6093 ≈ 96.6 km/h |
| mph | m/s | 0.44704 | 60 mph × 0.44704 ≈ 26.82 m/s |
| knots | km/h | 1.852 | 30 kn × 1.852 = 55.56 km/h |
| Mach 1 (sea level) | m/s | ≈ 343 | Mach 0.85 × 343 ≈ 291.5 m/s |
| km | m | 1000 | 1.5 km = 1500 m |
| mi | km | 1.609344 | 5 mi ≈ 8.05 km |
| nmi (nautical) | km | 1.852 | 10 nmi = 18.52 km |
| ft | m | 0.3048 | 500 ft = 152.4 m |
| hour | seconds | 3600 | 1.5 h = 5400 s |
| day | seconds | 86 400 | 1 day = 86,400 s |
Frequently asked questions
What is the distance-speed-time triangle?
It is a visual memory aid for the relationship \( d = s \times t \). Distance sits at the top of the triangle, with speed on the bottom-left and time on the bottom-right. To find any one of them, cover that letter with your finger and read off the formula from the remaining two letters. Cover D and you see "S × T". Cover S and you see "D over T". Cover T and you see "D over S".
How do I find distance from speed and time?
Use \( d = s \times t \), making sure both values are in compatible units. For 60 km/h over 2 hours: \( d = 60 \times 2 = 120 \) km. For 25 m/s over 30 minutes: convert 30 minutes to 1800 seconds first, then \( d = 25 \times 1800 = 45{,}000 \) m = 45 km.
How do I find speed from distance and time?
Use \( s = d / t \). For 240 km in 3 hours: \( s = 240 / 3 = 80 \) km/h. To convert m/s to km/h multiply by 3.6; to convert km/h to m/s multiply by 5/18.
How do I find time from distance and speed?
Use \( t = d / s \). For 150 miles at 50 mph: \( t = 150 / 50 = 3 \) hours. Multiply by 60 to get minutes (180 min) or by 3600 to get seconds (10,800 s).
Why is the round-trip average not just (v1 + v2)/2?
Because the slower leg of the round trip takes more time, so it weighs more in the time-weighted average. Average speed is total distance ÷ total time, which for equal distances each way works out to the harmonic mean \( \dfrac{2 v_1 v_2}{v_1 + v_2} \). Going 60 mph there and 40 mph back gives 48 mph, not 50.
What about a multi-leg trip with different distances on each leg?
Switch to the Multi-leg tab. For each leg, enter its distance and the speed during that leg. The calculator computes the time on each leg as \( t_i = d_i / v_i \), then divides total distance by total time. This is the only correct way to average speeds across unequal legs — averaging the raw speeds will generally give a wrong answer.
Can I mix units, like km/h with miles?
Yes. Each input has its own unit dropdown. The calculator converts every value to metres, seconds, and metres per second internally before solving, then formats the answer in your chosen unit family.
What does the "intuition" tag mean?
It is a friendly comparison that translates the calculated speed or distance into something familiar — walking pace, highway driving, cruising airliner, hypersonic, and so on. The tag helps you sanity-check whether your inputs make sense before you trust the number.
Reference this content, page, or tool as:
"Distance-Speed-Time Triangle Calculator" at https://MiniWebtool.com// from MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: 2026-05-10
You can also try our AI Math Solver GPT to solve your math problems through natural language question and answer.