Distance Formula Calculator

Find the straight line distance between two points, with the x and y differences and the midpoint shown too.

Distance formula calculator

Distance: —
Differences: —
Midpoint: —
The distance is the square root of dx squared plus dy squared, which is the Pythagorean theorem in the plane.

How to use the Distance Formula Calculator

  1. Enter the x and y of the first point.
  2. Enter the x and y of the second point.
  3. Read the distance, the differences and the midpoint straight away.

Features

Advertisement

Frequently Asked Questions

Common questions about the free online distance formula calculator.

It is the square root of the difference in x squared plus the difference in y squared, which comes from the Pythagorean theorem.
Enter the x and y of both points and the distance appears instantly, along with the horizontal and vertical differences.
No. Squaring removes any negative sign, so swapping the two points gives exactly the same distance.
No. Distance is always zero or positive, because it is the length of the segment between the two points.
Yes. Negative and decimal coordinates both work, so points in any of the four quadrants are handled correctly.
For three dimensions add the square of the z difference before taking the square root of the total.
No. The calculation runs entirely in your browser, so your coordinates never leave your device.
Yes. The distance formula calculator is free, unlimited and needs no account or installation.

Last updated: October 10, 2026