Geometry

Distance Between 2 Points

Euclidean distance in 2D.

Formula

Formula
d = (x2−x1)2 + (y2−y1)2

Variables

SymbolDefinitionType & rangeUnitsRole
x₁,y₁ first point computed result result
x₂,y₂ second point computed result result

Try it yourself

Interactive calculator
Result

Worked examples

Example 1
Givenx₁ = 0, y₁ = 0, x₂ = 3, y₂ = 4
Result5
Example 2
Givenx₁ = 1, y₁ = 1, x₂ = 4, y₂ = 5
Result5