MathematicsGeometryMedium

Distance Formula

Also known as:Euclidean distancestraight-line distance

The distance formula gives the straight-line (Euclidean) distance between two points in the Cartesian plane using their coordinates. It is derived directly from the Pythagorean theorem by treating the horizontal and vertical separations as legs of a right triangle. The formula extends naturally to three dimensions as d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²) and is fundamental in analytic geometry, physics, and data science.

Key Formula

d = sqrt((x2 - x1)² + (y2 - y1)²)

LaTeX: d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

SymbolMeaningUnit
dDistance between the two pointssame as coordinate units
x₁, y₁Coordinates of the first pointunitless
x₂, y₂Coordinates of the second pointunitless

Worked Example

Problem

Find the distance between points P(1, 2) and Q(7, 10).

Solution

Step 1 — Identify coordinates: x₁=1, y₁=2, x₂=7, y₂=10. Step 2 — Apply formula: d = √((7−1)² + (10−2)²) = √(6² + 8²) = √(36 + 64) = √100. Step 3 — Simplify: d = 10.

Answer

Distance PQ = 10 units

Distance Formula Applied to Common Point Pairs

Point PPoint QΔxΔyDistance d
(0, 0)(3, 4)345
(1, 2)(7, 10)6810
(−2, 1)(2, 4)435
(−5, −5)(3, 1)8610
(0, 0)(0, 7)077 (vertical)

Interactive Tools

Desmos Graphing Calculator

Plot two points and measure the distance between them visually.

Open Tool

Wolfram Alpha

Compute distance between coordinate points immediately.

Open Tool

GeoGebra Geometry

Construct segments and measure lengths on the coordinate plane.

Open Tool
Coordinate plane showing distance between two points using the Pythagorean theorem

Wikimedia Commons, CC BY-SA

Related Terms

"Distance" comes from Latin "distantia" (a standing apart), from "distare" (to stand apart). The formula as applied to coordinates was a direct consequence of Descartes' analytic geometry (1637) combined with Pythagoras' theorem from ancient Greece (c. 570–495 BCE).

coordinate-geometrypythagorean-theoremalgebrageometrymeasurement