Home/Math/Geometry/Slope Calculator

Slope Calculator

Calculate the slope (gradient), y-intercept, line equation, distance between two points, and angle of inclination.

Enter Two Points

Point 1: (x₁, y₁) and Point 2: (x₂, y₂)

x₁
y₁
x₂
y₂
Results
Slope (Gradient)
m = 2
Rising — positive slope
PropertyValue

Slope (Gradient) in Geometry

Slope m = (y₂ − y₁) / (x₂ − x₁) = rise / run. In Australia, road gradients are often expressed as percentages (e.g. "10% grade" = slope of 0.1) or as ratios (e.g. "1:10").

Line Equations

Slope-intercept form: y = mx + b (b = y-intercept)
Point-slope form: y − y₁ = m(x − x₁)
Standard form: Ax + By = C

Special Cases

CaseSlope
Horizontal linem = 0
Vertical linem = undefined
Parallel linesEqual slopes (m₁ = m₂)
Perpendicular linesm₁ × m₂ = −1