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: —
How to use the Distance Formula Calculator
- Enter the x and y of the first point.
- Enter the x and y of the second point.
- Read the distance, the differences and the midpoint straight away.
Features
- Distance between any two points
- Shows the horizontal and vertical differences
- Also gives the midpoint of the segment
- Handles negative and decimal coordinates
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