Calculators

Distance Between Two Points Calculator

Calculate the straight-line distance between two points on a plane.

Distance—
Midpoint
—

What is the Distance Between Two Points Calculator?

Calculate the straight-line distance between two points on a plane.

Enter x₁, y₁, x₂ and y₂ and the Distance Between Two Points Calculator returns distance and midpoint. Results update as you type, and nothing you enter leaves your device.

How it is calculated

d = √((x₂ − x₁)² + (y₂ − y₁)²)

How to use it

  1. Enter x₁.
  2. Enter y₁.
  3. Enter x₂.
  4. Enter y₂.
  5. Read distance in the results panel. It updates as you type.
  6. Change any value to compare scenarios, or use Share to send the result as a link.

Common questions

What formula does the Distance Between Two Points Calculator use?

It uses: d = √((x₂ − x₁)² + (y₂ − y₁)²).

What do I need to use the Distance Between Two Points Calculator?

You need x₁, y₁, x₂ and y₂. Sensible starting values are filled in so you can see how it works straight away.

Is the Distance Between Two Points Calculator free, and is my data stored?

It is free with no sign-up. The calculation runs in your browser, so the values you enter are not sent to or stored on our server.

Your calculations