Distance formula and variables
The coordinate differences form the two legs of a right triangle. The distance d is its hypotenuse, so the formula follows from the Pythagorean theorem.
- x₁, y₁
- the horizontal and vertical coordinates of Point 1
- x₂, y₂
- the horizontal and vertical coordinates of Point 2
- Δx
- the horizontal change, x₂ − x₁
- Δy
- the vertical change, y₂ − y₁
- d
- the nonnegative straight-line distance
The answer is in coordinate units unless the axes represent a named physical unit. For example, coordinates measured in metres produce a distance in metres.
