Math

Distance Between Two Points Calculator

Calculate straight-line distance, coordinate changes and the midpoint of two points in a plane.

Exact method explained belowEditable inputs

Set up your calculation

Runs on your device

SOLUTION

Your result

Let’s calculate.

Use the Calculate button to see your result.

Review the method below for assumptions and conventions.

How to use this tool

  1. Enter first point: x, first point: y, second point: x, second point: y.
  2. Select Calculate to view the result.
  3. Check the method and assumptions below before using the result.

The method, explained

Distance = square root of ((x₂ − x₁)² + (y₂ − y₁)²). The midpoint averages the two x coordinates and the two y coordinates separately.

A WORKED EXAMPLE

The points (0, 0) and (3, 4) are 5 units apart. Their midpoint is (1.5, 2).

What to keep in mind

For Cartesian coordinates with the same scale on both axes. Geographic latitude and longitude require a geodesic calculation; road distance is not modeled.

Common questions

Can I enter negative coordinates?

Yes. Each coordinate may be positive, zero or negative.

What if both points are the same?

Their distance is zero and the midpoint is the point itself.

Methodology maintained by ClarityKit. How these tools are built and checked.