About the Distance Calculator
"Distance" means two different things in school. In math class it is the straight-line length between two points on a graph. In physics it is how far something travels at a given speed over a given time. This tool covers both on one page.
The first tab takes two coordinate points and gives the distance, the exact square-root form and the midpoint, with every step and a graph. The second tab solves distance = speed × time for whichever value is missing and converts between kilometers, miles, meters, hours, minutes and seconds as it goes.
How to use it
- For a geometry or algebra question, stay on "Between two points" and enter (x₁, y₁) and (x₂, y₂).
- Read the distance and midpoint, and follow the steps to check your working.
- For a physics or travel question, open "Speed, distance & time".
- Choose what you want to find, enter the other two values and pick their units. Units can be mixed.
The formula
d = √((x₂ − x₁)² + (y₂ − y₁)²)
Midpoint = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2)
Distance = speed × time, so speed = distance ÷ time and time = distance ÷ speed. The coordinate formula is the Pythagorean theorem: the two differences are the legs of a right triangle and the distance is its hypotenuse.
Worked examples
Two points on a graph
(1, 2) and (7, 10): Δx = 6, Δy = 8, d = √(36 + 64) = √100 = 10. Midpoint (4, 6).
An answer with a root
(−2, 1) and (4, −3): Δx = 6, Δy = −4, d = √(36 + 16) = √52 = 2√13, about 7.211. Midpoint (1, −1).
A road trip
Driving 240 miles at an average of 60 mph: time = 240 ÷ 60 = 4 hours.
A sprint
A runner covers 100 m in 12.5 s: speed = 100 ÷ 12.5 = 8 m/s, which is 28.8 km/h.
Frequently asked questions
Can the distance between two points be negative?
No. The differences are squared, so the distance is always zero or positive, whichever point you enter first.
What is the difference between distance and displacement?
Distance is the total path length. Displacement is the straight-line change in position with a direction. For travel in a straight line they are the same size.
Does the speed tab use average speed?
Yes. Distance = speed × time assumes a constant or average speed. For changing speed, physics uses the equations of motion instead.
Can I mix units, like miles and minutes?
Yes. Each value has its own unit menu, and the tool converts everything before it calculates.
How do I find the distance in 3D?
Add a third difference under the root: d = √(Δx² + Δy² + Δz²).