Distance Formula Calculator
Enter coordinates for two points on a 2D plane to calculate straight-line distance.
Calculate
Calculate
Result
—
The formula
Use the Euclidean distance formula for two points (x1, y1) and (x2, y2).
d = √((x2−x1)^2 + (y2−y1)^2)
Worked example
- Points A(0, 0) and B(3, 4)
- Δx = 3 − 0 = 3, Δy = 4 − 0 = 4
- d = √(3^2 + 4^2) = √25 = 5
Result: Distance = 5
Interesting facts
Straight-line distance
This gives the shortest distance "as the crow flies" between two points on a flat coordinate plane.
Pythagorean link
The formula comes directly from the Pythagorean theorem, using Δx and Δy as triangle legs.
Works with negatives and decimals
Coordinates can be positive, negative, or decimal values.
Frequently asked questions
Yes. Negative x or y values work normally.
No. Swapping point A and B gives the same distance.
The distance is 0.
Yes, this version calculates distance on a 2D plane.
Squaring removes sign direction and follows the right-triangle relation behind Euclidean distance.