Geometry

Slope of a Line

Slope through two points.

Formula

Formula
m = y2 − y1x2 − x1

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₁ = 1, y₁ = 2, x₂ = 4, y₂ = 8
Result2
Example 2
Givenx₁ = 0, y₁ = 0, x₂ = 5, y₂ = 10
Result2