About the Distance Between Two Points Calculator
The distance formula comes straight from the Pythagorean theorem: the horizontal and vertical gaps between two points are the legs of a right triangle, and the distance is its hypotenuse. Add a z-coordinate for 3D space.
Also known as: distance formula calculator, coordinate distance calculator, distance between coordinates, 2 point distance calculator, distance between points, distance formula.
How to use this calculator
- Enter x₁, y₁, x₂, y₂ and the other fields.
- The result updates instantly as you type — press Calculate (or Enter) at any time.
- Open “Step-by-step” to see how the answer was worked out.
- Use Copy result or Share to save the answer or send a link with your inputs.
Formula
- (x₁, y₁)
- = first point
- (x₂, y₂)
- = second point
- d
- = straight-line distance
Worked example
Using the values pre-filled in the calculator above:
- x₁ = 2
- y₁ = 3
- x₂ = 5
- y₂ = 7
- z₁ (optional, 3D) = 0
- z₂ (optional, 3D) = 0
the calculator returns:
- Distance: 5
- Δx: 3
- Δy: 4
- d² (squared distance): 25
Working
Δx = 5 − 2 = 3Δy = 7 − 3 = 4d = √(3² + 4²) = √25 = 5