📏 Distance Between Two Points Calculator

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

5.0 out of 5 (1 rating)

Enter details

Distance between two points
d = √((x2 - x1)² + (y2 - y1)²)
A,B,
  • X₁ (first point)
  • Y₁ (first point)
  • X₂ (second point)
  • Y₂ (second point)

Log in or create a free account to save your inputs and results, so you don't have to enter them again next time.🔒 No spam, ever. We never sell or share your details, and you can delete your history or account at any time. Privacy policy

Fill in the details and click Calculate to see your results.

Formula at a glance

2D Distance formula: d = sqrt((x2-x1)^2 + (y2-y1)^2)
How the 2d distance works: d = sqrt((x2-x1)^2 + (y2-y1)^2)

Rate this calculator

Was it useful? A quick star rating helps others — and you can leave a comment too.
Rate it: ★ ★ ★ ★ ★

📘 About the Distance Between Two Points Calculator

The distance formula comes from Pythagoras' theorem: the horizontal and vertical gaps between the points are the two shorter sides of a right triangle and the distance is the hypotenuse.

Enter the coordinates of both points to get the straight-line distance.

🧮 Formula

Distance
d = sqrt((x2-x1)^2 + (y2-y1)^2)

Where

  • x1, y1 = first point
  • x2, y2 = second point
Distance = sqrt((x2-x1)^2 + (y2-y1)^2).

✏️ Worked examples

(1, 2) to (5, 5)

You enter
X₁ (first point)1
Y₁ (first point)2
X₂ (second point)5
Y₂ (second point)5
You get
Distance5

Distance 5.

(−3, 4) to (2, −8)

You enter
X₁ (first point)-3
Y₁ (first point)4
X₂ (second point)2
Y₂ (second point)-8
You get
Distance13

Distance 13.

🧭 How to use this calculator

What you enter

  • X₁ (first point)
  • Y₁ (first point)
  • X₂ (second point)
  • Y₂ (second point)

What you get

  • Distance

💡 Common uses

  • Coordinate geometry homework and revision
  • Analytic geometry calculations
  • Checking graph and line calculations

❓ Frequently asked questions

What is the distance formula?

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

Can coordinates be negative?

Yes — the differences are squared, so signs do not matter.

What is the distance between (1, 2) and (5, 5)?

√(16 + 9) = √25 = 5.

What people are saying
★★★★★
Anonymous · 16 Nov 2026