Midpoint and Distance Calculator

Enter two points, in 2D or 3D, to get the midpoint, the straight-line distance and the exact root form.

Use the tool

Loading the tool…

About Midpoint and Distance Calculator

Work out the midpoint and the distance between two points in two or three dimensions. For two dimensions, leave the z values empty.

Worked example

Enter the points (0, 0) and (3, 4). The tool shows the distance as 5.

Limits

The distance is a straight line between the points. It does not follow roads or paths.

How to use Midpoint and Distance Calculator

  1. Enter x and y for each point. Add z for 3D.
  2. Read the midpoint and the distance.
  3. Check the exact form, such as 6sqrt(2).
  4. Copy the distance if you need it.

Good to know

  • Distance is sqrt((x2 - x1)^2 + (y2 - y1)^2), plus (z2 - z1)^2 in 3D.
  • The midpoint is the average of each coordinate.
  • The exact form is shown when the squared distance is a whole number up to 1,000,000,000,000.
  • Fractions are exact; the distance is rounded to 10 decimal places.

Frequently asked questions

How do I find the midpoint of two points?

Add the two x values and halve them, and do the same for y (and z).

What is the distance between (0,0) and (3,4)?

It is 5, because the square root of 9 + 16 is 5.

Can I use 3D points?

Yes. Fill in both z values. Leave both empty for 2D.