Distance Between Two Points Calculator
Find the distance, midpoint and slope between two points on a coordinate plane.
d = √((x₂ − x₁)² + (y₂ − y₁)²) = √((3.00)² + (4.00)²) = 5.0000.
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
- 1Enter the x and y coordinates of the first point.
- 2Enter the x and y coordinates of the second point.
- 3Read the distance between them, computed with the distance formula.
- 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
Find a percentage of a number, percentage change, and what percent one number is of another.
Calculate your grade point average from course grades and credit hours.
Find your weighted course grade from assignment scores and weights, or the score you need on the final to hit your target.
Add, subtract, multiply and divide fractions with simplified results and decimals.