Distance Calculator

Calculate the Euclidean distance between two points in a 2D plane. Enter the coordinates of two points to find the distance, midpoint, and slope.

Your Results

Enter the coordinates for two points and click "Calculate".

The Distance Formula in Geometry

The distance formula is a fundamental concept in coordinate geometry, used to find the length of the straight line segment connecting two points in a Cartesian plane. It is a direct application of one of the most famous theorems in mathematics: the Pythagorean theorem.

Derivation from the Pythagorean Theorem

Imagine a right-angled triangle formed by the two points (x₁, y₁) and (x₂, y₂) and a third point (x₂, y₁). The horizontal leg of this triangle has a length of |x₂ - x₁| (the absolute difference in the x-coordinates, also called Δx or "delta x"), and the vertical leg has a length of |y₂ - y₁| (Δy or "delta y"). The straight line between the two points forms the hypotenuse of this triangle.

According to the Pythagorean Theorem, a² + b² = c². By substituting our leg lengths, we get:

(x₂ - x₁)² + (y₂ - y₁)² = d²

To find the distance (d), we simply take the square root of both sides, which gives us the distance formula.

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

Related Calculations: Midpoint and Slope

When you have two points, you can calculate more than just the distance. Our calculator also provides two other useful metrics:

Applications of the Distance Formula

Calculating the distance between two points is crucial in many fields and real-world scenarios:

This calculator is a versatile tool for students, programmers, and professionals who need quick and accurate geometric calculations. For more tools, browse our full list of Math Calculators.