Distance Between Two Points Calculator (2D and 3D)
Enter the coordinates of two points. The distance and the working appear instantly, with a small plot for points on a plane.
- Nothing you type is stored
- Free
- No signup
Distance AB
10
- Δx = x₂ − x₁
- 6
- Δy = y₂ − y₁
- 8
- d² (for surd form)
- 100
Show working
- d = √((x₂ − x₁)² + (y₂ − y₁)²)
- d = √(6² + 8²) = √100 = 10
How to use
- Choose 2D or 3D.
- Enter the coordinates of both points.
- Read the distance and the steps.
Good to know
In 2D, d = √((x₂ − x₁)² + (y₂ − y₁)²), the distance formula from NCERT Class 10 "Coordinate Geometry". It is Pythagoras applied to the horizontal and vertical gaps.
In 3D, add the z gap: d = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²), from Class 11 "Introduction to Three Dimensional Geometry".
Answers like √50 are shown as decimals (7.0711); the "d²" value lets you write the surd form yourself. To check if three points are collinear or form an isosceles or right triangle, compare the three distances.
Questions
What is the distance formula?
d = √((x₂ − x₁)² + (y₂ − y₁)²) in 2D.
What is the distance of (3, 4) from the origin?
√(3² + 4²) = 5.
Does the order of the points matter?
No. The differences are squared, so the distance is the same either way.
How do I show three points are collinear?
If the two shorter distances add up to the longest, the points lie on one line.
Is anything I enter stored?
No. The calculation runs in your browser and nothing is sent to a server.