Distance Calculator

Use this free online distance calculator to find the straight-line distance between two points on a coordinate plane. Enter the x and y coordinates of both points and get the exact Euclidean distance instantly.


How to Use the Distance Calculator

  1. Enter the coordinates of the first point in the "x1" and "y1" fields.
  2. Enter the coordinates of the second point in the "x2" and "y2" fields.
  3. Click "Calculate" to compute the distance.
  4. View the result in the "Distance" box below the button.

Frequently Asked Questions

It uses the Euclidean distance formula derived from the Pythagorean theorem: distance = √((x2 - x1)² + (y2 - y1)²).

Yes, all four coordinate fields (x1, y1, x2, y2) accept negative numbers and decimals.

The calculator requires valid numbers in all four fields. If any field is empty or not a number, it shows "Please enter valid numbers for all four coordinates" instead of a result.

For points (1, 2) and (4, 6), the distance is √((4-1)² + (6-2)²) = √(9 + 16) = √25 = 5.
No ratings yet — be the first!
Rate this calculator: