Distance Calculator

2D/3D distance between points and midpoint. Uses √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²).

A distance calculator computes the distance and midpoint between two points in 2D or 3D space using the Euclidean distance formula derived from the Pythagorean theorem.

Select 2D or 3D, or the midpoint option. Enter the coordinates for both points (x, y and optionally z). Click Calculate to get the distance between the points and, for 2D/3D, the midpoint coordinates.

Examples

2D

(0,0) to (3,4) → distance 5

Frequently Asked Questions

What is the distance formula?
The distance formula d = √((x₂−x₁)² + (y₂−y₁)²) comes from the Pythagorean theorem applied to the horizontal and vertical differences between two points.
How does 3D distance differ from 2D?
The 3D formula adds a z-component: d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²). The midpoint formula also extends to average the z-coordinates.
Ad Space

Quick Tips

  • Double-check your inputs — small errors in coordinates lead to large errors in distance.
  • Convert units to the same system before entering values.
  • Use the midpoint output to quickly find the center between two points for geometry problems.

A distance calculator computes the distance and midpoint between two points in 2D or 3D space using the Euclidean distance formula derived from the Pythagorean theorem.

How to Use This Calculator

Select 2D or 3D, or the midpoint option. Enter the coordinates for both points (x, y and optionally z). Click Calculate to get the distance between the points and, for 2D/3D, the midpoint coordinates.

Understanding the Formula

2D: d = √((x₂−x₁)² + (y₂−y₁)²). Midpoint: ((x₁+x₂)/2, (y₁+y₂)/2).

Examples

2D

(0,0) to (3,4) → distance 5

Frequently Asked Questions

What is the distance formula?

The distance formula d = √((x₂−x₁)² + (y₂−y₁)²) comes from the Pythagorean theorem applied to the horizontal and vertical differences between two points.

How does 3D distance differ from 2D?

The 3D formula adds a z-component: d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²). The midpoint formula also extends to average the z-coordinates.

Assumptions & Limitations

  • Assumes Euclidean (flat) space — not suitable for geographic distances on a curved surface.
  • Assumes exact input values — rounding errors in the inputs will propagate to the result.
  • Results may show floating-point approximations for irrational numbers.