Distance Between Two Points

Enter two points and get the distance and midpoint — runs locally, no upload.

Distance
Midpoint X
Midpoint Y


How the distance formula works

The Euclidean distance between two points (x₁, y₁) and (x₂, y₂) is calculated using the Pythagorean theorem: distance = √((x₂ − x₁)² + (y₂ − y₁)²). Think of it as the length of the straight line connecting the two points on a grid. The midpoint — the point exactly halfway between them — is ((x₁ + x₂) / 2, (y₁ + y₂) / 2). All calculations run locally in your browser; nothing is sent anywhere.

Results update as you type, so there is no button to press. Use the Clear button to reset all fields to zero.

FAQ

What is Euclidean distance? It’s the straight-line distance between two points in a plane, computed from the Pythagorean theorem. It’s the most common way to measure how far apart two coordinates are.

How do I find the midpoint? Average the x-coordinates and average the y-coordinates separately. For (0, 0) and (4, 6), the midpoint is (2, 3).

Can I use negative coordinates? Yes. The formula works for any real numbers, including negatives and decimals.

What’s the distance when both points are the same? Zero. The formula correctly returns 0 when all four coordinates are identical.

Related tools

Popular tools