Geometry

Point to Line Distance

Distance from a point to line ax+by+c=0.

Formula

Formula
d = a x0 + b y0 + c√a2+b2

Variables

SymbolDefinitionType & rangeUnitsRole
a,b,c line coefficients real number (ℝ) — input
x₀,y₀ point computed result — result

Try it yourself

Interactive calculator
Result
—

Worked examples

Example 1
Givena = 3, b = 4, c = -5, x₀ = 0, y₀ = 0
Result1
Example 2
Givena = 1, b = -1, c = 0, x₀ = 2, y₀ = 0
Result1.414213562