This distance calculator (also called a distance between two points calculator, coordinate distance calculator, or point distance formula calculator) returns the Euclidean straight-line distance and the Manhattan grid distance between any two points on a 2D plane. All math happens in your browser as you type, so you can test dozens of coordinate pairs in a minute.
- Enter Point A as (x1, y1). Defaults load to (0, 0). Negative numbers and decimals both work, so a point at (-2.5, 7) is fine.
- Enter Point B as (x2, y2). Defaults load to (3, 4), which gives the classic 3-4-5 right triangle with a distance of 5.
- Read the four result tiles. The large number is the Euclidean distance. Below it you will find the Manhattan distance, the midpoint coordinates, the slope of the line through the two points, and the Δx and Δy differences.
- Use the slope and midpoint for geometry homework, drafting, or any task where you need the line that passes through both points. A slope of 1.333 with a midpoint of (1.5, 2) fully describes the line segment.
This tool covers 2D coordinate geometry. For geographic distance such as miles between cities or kilometres between airports, plug latitude and longitude into the Haversine formula below. The straight-line formula here will give a wrong answer for global distances because it ignores Earth's curvature.