Skip to content
📏

Distance Calculator

Find the distance between two points in 2D or 3D, plus the midpoint and direction.

Distance

5

Midpoint 1.5, 2
Direction from A to B 53.13° below horizontal
Squared distance (a² + b² + c²) 169

Distance uses the Pythagorean theorem in three dimensions. Switching to 3D adds a z coordinate, so the same calculation covers a three dimensional line.

What Is Distance Calculator?

The Distance Calculator finds the distance between two points in 2D or 3D using the Pythagorean theorem, and also returns the midpoint, the direction from A to B, and the squared distance for checking.

Who Uses the Distance Calculator?

Students use it for geometry and coordinate work. Game and graphics developers use it for distances in a level, and anyone checking a triangle measurement uses it as a second opinion.

How to Use the Distance Calculator

  1. Choose 2D or 3D.
  2. Enter the coordinates of point A and point B.
  3. Read the distance, midpoint, and direction.

Why Choose Our Distance Calculator?

  • 2D and 3D in one place
  • Midpoint and direction included
  • Squares the axes so both points always fit

Try the Distance Calculator above — it is free, fast, and works on any device. Bookmark this page to return whenever you need it.