Distance Calculator (2D & 3D)
Find the straight-line distance between two points on a plane or in 3D space.
Distance
5
- Δx, Δy
- 3, 4
- Distance squared
- 25
Show the work
Difference along each axis
Δx = x₂ − x₁; Δy = y₂ − y₁
4 − 1; 6 − 2 = 3, 4
Square them and add
Δx to the power of 2 + Δy to the power of 2
3 to the power of 2 + 4 to the power of 2 = 25
Take the square root
d = √(sum of squares)
√25 = 5
How it works
d = √((x₂ − x₁)² + (y₂ − y₁)²) in 2D; add (z₂ − z₁)² inside the root in 3D
Questions
- How does the distance calculator (2D & 3D) work?
- d = √((x₂ − x₁)² + (y₂ − y₁)²) in 2D; add (z₂ − z₁)² inside the root in 3D.
- What do I need to enter?
- Space, x₁, y₁, z₁, x₂, y₂, z₂. Optional fields can be left blank.
Related tools
- Midpoint CalculatorFind the midpoint between two points in 2D or 3D.
- Slope & Line Equation CalculatorFind the slope through two points and the line's equation in slope-intercept, point-slope and standard form.
- Trapezoid CalculatorFind a trapezoid's area and median from its two bases and height, plus the perimeter if you know the legs.
- Parallelogram & Rhombus CalculatorFind the area, perimeter, height and diagonals of a parallelogram, or a rhombus from its diagonals.
- Ellipse CalculatorFind an ellipse's area, exact perimeter, eccentricity and foci from its two semi-axes.
- Annulus (Ring) CalculatorFind the area of a ring (annulus) between two circles, its width and both circumferences.
Want this on your site? Embed the distance calculator (2d & 3d).