Enter the coordinates of two points to calculate the straight-line distance and midpoint between them.
Google AdSense Banner
This area will contain advertisements after approval.
Google AdSense Banner
This area will contain advertisements after approval.
Distance is calculated using the Pythagorean theorem applied to the coordinate plane (the distance formula): the square root of (x2-x1)² plus (y2-y1)². Midpoint is simply the average of the two x-coordinates and the average of the two y-coordinates.
For point 1 at (0, 0) and point 2 at (3, 4): distance = √((3−0)² + (4−0)²) = √(9 + 16) = √25 = 5. The midpoint is the average of each coordinate: ((0+3)÷2, (0+4)÷2) = (1.5, 2).
Using this calculator for real-world GPS or map distances, it uses flat-plane geometry suited to graph coordinates, not the Earth's curved surface, which needs a different formula (like the Haversine formula) to stay accurate over long distances.
Subtracting coordinates in the wrong order, (x2−x1) and (x1−x2) give opposite signs, but since the distance formula squares the result, the final distance comes out the same either way, only the midpoint and other directional calculations are order-sensitive.
Forgetting that midpoint is a coordinate pair, not a single number, it's the average x-coordinate and the average y-coordinate together, describing a point exactly halfway between the two original points.
Yes, enter any positive or negative coordinate values for either point.
This calculator uses flat-plane (Euclidean) geometry, suited to graph coordinates. Real-world GPS distances over the Earth's curved surface require a different formula (like the Haversine formula) and aren't covered by this tool.
Slope Calculator
Calculate the slope, y-intercept and equation of a line through two points.
Triangle Calculator
Calculate a triangle's area, perimeter and angles from its three side lengths.
Google AdSense Banner
This area will contain advertisements after approval.