Math Tools
Distance Calculator
Calculate the distance between two points in 2D or 3D coordinates. Get distance, deltas, and midpoint instantly.
Point 1
Point 2
Distance
5.00 units
Math Tools
Calculate the distance between two points in 2D or 3D coordinates. Get distance, deltas, and midpoint instantly.
Point 1
Point 2
Distance
5.00 units
Distance between two points is the length of the shortest line connecting them. In 2D, you need x and y coordinates. In 3D, add a z coordinate. The calculator uses the Euclidean distance formula to find the exact distance.
Select 2D or 3D mode. Enter the x, y (and z if 3D) coordinates for Point 1. Enter the coordinates for Point 2. The calculator instantly computes the distance using the distance formula and displays deltas and midpoint.
2D: d = √((x₂−x₁)² + (y₂−y₁)²) | 3D: d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²)Euclidean distance finds the straight-line distance between points. Square the difference in each coordinate, sum them, then take the square root. In 3D, include the z-component in the sum.
| Input | Result | Notes |
|---|---|---|
| 2D: Point 1 (0, 0), Point 2 (3, 4) | 5 units | √((3−0)² + (4−0)²) = √(9 + 16) = √25 = 5; this is a classic 3-4-5 triangle |
| 2D: Point 1 (1, 2), Point 2 (4, 6) | 5 units | √((4−1)² + (6−2)²) = √(9 + 16) = √25 = 5 |
| 3D: Point 1 (0, 0, 0), Point 2 (1, 2, 2) | 3 units | √((1−0)² + (2−0)² + (2−0)²) = √(1 + 4 + 4) = √9 = 3 |
2D uses x and y coordinates on a flat plane. 3D adds a z coordinate for depth. The formula is the same principle, just with an extra term in the square root.
Yes. Negative values are treated like positive ones in the distance formula. A point at (−5, 3) is treated as a valid coordinate.
The midpoint is the point exactly halfway between two given points. In 2D, it is ((x₁+x₂)/2, (y₁+y₂)/2).
Yes. You can enter 1.5, 3.75, or any decimal value. The calculator computes with full precision.
The distance is in the same unit as your coordinates. If your coordinates are in meters, distance is in meters. If in feet, distance is in feet.
Yes, the 2D distance formula is an application of the Pythagorean theorem. The distance is the hypotenuse of a right triangle formed by Δx and Δy.