Distance Between Two Points Calculator

Find the distance, midpoint and slope between two points on a coordinate plane.

Point 1 (x₁, y₁)
Point 2 (x₂, y₂)
Distance
5.0000
Midpoint
(1.500, 2.000)
Slope
1.3333
Δx, Δy
3.000, 4.000

d = √((x₂ − x₁)² + (y₂ − y₁)²) = √((3.00)² + (4.00)²) = 5.0000.

TThe Crypto Tools69+ free crypto calculators — profit, fees, DCA and more.Our networkVisit →

This calculator finds the straight-line distance between two points on a coordinate plane, along with their midpoint and the slope of the line connecting them. Enter the coordinates of the first point (x₁, y₁) and the second point (x₂, y₂), and it applies the distance formula instantly.

The distance formula comes straight from the Pythagorean theorem: the horizontal gap (x₂ − x₁) and the vertical gap (y₂ − y₁) form the two legs of a right triangle, and the distance between the points is the hypotenuse. That's why d = √((x₂ − x₁)² + (y₂ − y₁)²).

How to use it

  1. 1Enter the x and y coordinates of the first point.
  2. 2Enter the x and y coordinates of the second point.
  3. 3Read the distance between them, computed with the distance formula.
  4. 4Use the midpoint and slope outputs for the rest of the coordinate geometry.

Frequently asked questions

What is the distance formula?+

The distance between two points (x₁, y₁) and (x₂, y₂) is d = √((x₂ − x₁)² + (y₂ − y₁)²). You subtract the x-values, subtract the y-values, square both, add them, and take the square root.

How do I find the midpoint?+

The midpoint is the average of the two coordinates: ((x₁ + x₂) ⁄ 2, (y₁ + y₂) ⁄ 2). It's the point exactly halfway along the segment joining the two points.

What if the slope is undefined?+

Slope is (y₂ − y₁) ⁄ (x₂ − x₁). If the two points share the same x-value, the line is vertical and the slope is undefined (division by zero). This calculator shows 'Undefined (vertical)' in that case.

Can I use negative coordinates?+

Yes. Enter negative x or y values as needed — for example the distance between (0, 6) and (−6, 0) works fine and comes out to about 8.485.

Related calculators