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
Geometry desk
Geometry desk

Match each dimension to the shape and keep units consistent.

See the method

Set the dimensions

Runs on your device

Your measurement

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.

Input reference and sample values

Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.

InputFormat and unitsSample
First point: xNumeric value.0
First point: yNumeric value.0
Second point: xNumeric value.3
Second point: yNumeric value.4

Result for these sample inputs

5 units
Horizontal change
3
Vertical change
4
Midpoint
1.5, 2

Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.

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.