haya.
Browse notesExam matchAboutSign inStart free
‹ MathsTopic 2 of 5 · Chapter 10
Card 1 of 6 · 9 min

Distance between two points, and from the origin

In real life

A delivery app works out straight-line distances between shops and homes from their map coordinates, using exactly this formula before it plans a route.

The distance between (x₁, y₁) and (x₂, y₂) is √((x₂ − x₁)² + (y₂ − y₁)²). From the origin it is √(x² + y²).

Key facts
Distance formulaAB = √((x₂ − x₁)² + (y₂ − y₁)²)
Distance from the originOP = √(x² + y²)
Comes fromPythagoras theorem on a right triangle with legs x₂ − x₁ and y₂ − y₁
Points on a line parallel to an axisSame y: distance = |x₂ − x₁|; same x: distance = |y₂ − y₁|