Math Calculator

Distance Between Two Points Calculator

Measure separation of two points in the plane or in space.

Choose 2D or 3D

Select dimension and enter matching coordinates.

Clear

About this calculator

How to use Distance Between Two Points Calculator, plus the formulas and logic behind the results.

Tool description

Euclidean distance generalizes the Pythagorean theorem to two or three coordinates.

How to use

  1. Select 2D or 3D.
  2. Enter both points’ coordinates.
  3. Select Calculate.
  4. Review distance and coordinate deltas.

Formulas & reference

  • 2D: √((x2−x1)² + (y2−y1)²)
  • 3D: √((x2−x1)² + (y2−y1)² + (z2−z1)²)

Examples

  • 2D (0,0)→(3,4) = 5
  • 3D adds a z term
  • Distance ≥ 0 always
  • Order of points does not matter

Calculation logic

Sums squared differences for the selected dimension and takes the square root.

In 2D mode z inputs are ignored.

Distance Between Two Points Calculator FAQ

Common questions about this calculator and how to use the results.

How is 3D distance different?

It includes an extra (z2−z1)² term under the square root.

Is this Manhattan distance?

No—this is straight-line Euclidean distance.

Can coordinates be negative?

Yes.

What if points are the same?

Distance is 0.

Do I need z in 2D mode?

No; z fields are ignored.

How does this relate to the distance formula calculator?

Same 2D idea; this tool also supports 3D.