Distance Calculator
- Runs in your browser: what you type is not uploaded
- Free, no sign-up
- Formula and a worked example below
About Distance Calculator
The Distance Calculator measures the straight-line distance between two points on a 2D plane. Enter the coordinates of point A and point B and it returns the distance along with the horizontal and vertical change.
It applies the distance formula, which is the Pythagorean theorem applied to the horizontal and vertical gaps between the two points.
Formula
- x₁, y₁ — coordinates of the first point
- x₂, y₂ — coordinates of the second point
- d — straight-line distance between them
Distance Calculator: worked example
From (1, 2) to (5, 6)
- Δx = 5 − 1 = 4 and Δy = 6 − 2 = 4.
- d = √(4² + 4²) = √32.
- √32 = 5.6569.
Answer: The points are 5.6569 units apart (exactly 4√2).
How to use the Distance Calculator
- Enter the x and y coordinates of point A.
- Enter the x and y coordinates of point B.
- Read the distance plus the Δx and Δy differences.
- Coordinates can be negative or decimal values.
Good to know
- The distance formula is just the Pythagorean theorem: Δx and Δy are the two legs, and the distance is the hypotenuse.
- The order of the points does not matter — swapping A and B gives the same distance.
- If both points share an x or y value, the distance equals the difference on the other axis.
Frequently asked questions about the Distance Calculator
What does Δx and Δy mean?
They are the differences in the x and y coordinates: Δx = x₂ − x₁ and Δy = y₂ − y₁.
Can I use negative coordinates?
Yes. Points in any quadrant work; the squaring in the formula handles negative differences correctly.
Is this the shortest distance?
Yes, it is the straight-line (Euclidean) distance, which is always the shortest path between two points on a plane.
How is this related to the Pythagorean theorem?
The horizontal and vertical gaps form the two legs of a right triangle, and the distance is its hypotenuse.