2D Point Distance Calculator

Quickly compute the straight-line distance between two points on a flat map or graph using the classic Euclidean distance formula. Ideal for surveying, CAD layouts, navigation routes, and geometry homework.

Enter the x-coordinate of Point A in any consistent unit
Enter the y-coordinate of Point A
Enter the x-coordinate of Point B
Enter the y-coordinate of Point B

Educational information, not professional advice.

Examples

  • City grid example: from (−2.5, 1.2) to (3.5, 6.8) ⇒ 7.62 distance units, representing 7.62 km if your coordinates are kilometres.
  • Navigation: plot a drone flying from waypoint (1, 0.5) to (−4, −2.5) ⇒ 5.70 units, which equals 5.70 metres if your inputs are in metres.
  • Design layout: distance between PCB pads at (0, 0) and (12.7, −8.89) ⇒ 15.49 units, or 15.49 millimetres.

FAQ

What distance formula does this use?

It uses the Euclidean distance (straight-line) formula derived from the Pythagorean theorem, which is standard for Cartesian coordinates.

Can I enter negative coordinates or decimals?

Absolutely. Negative values simply indicate a point in another quadrant, and decimals give you sub-unit precision for surveying or CAD projects.

How do I convert the distance into another unit?

Because the output shares the same unit as your inputs, convert afterward using a unit converter—e.g., multiply kilometres by 0.621371 to get miles.

What if I need to add waypoints or obstacles?

This tool measures direct distance only. For routes with turns or blocked paths, consider a path-planning calculator or GIS routing software.

Additional Information

  • The calculator applies the Euclidean distance formula √((x₂ − x₁)² + (y₂ − y₁)²) and always returns a non-negative result.
  • For accurate results, use the same units for every coordinate input—feet, metres, miles, or any consistent scale.
  • Squared differences magnify large deviations, so outlier coordinates will increase the distance quickly.
  • If you need 3D spacing, try a dedicated 3D distance calculator that also accounts for the z-axis.