Slope Calculator

Find the slope (gradient) of a line between two points. Shows the rise over run and the line equation.

Point 1 (x₁, y₁)

Point 2 (x₂, y₂)

Slope Formula

m = (y₂ − y₁) / (x₂ − x₁)
Points (1, 2) and (4, 8):
m = (8 − 2) / (4 − 1) = 6/3 = 2

Slope Types

SlopeLine Type
m > 0Positive slope (rising left to right)
m < 0Negative slope (falling left to right)
m = 0Horizontal line
undefinedVertical line (x₁ = x₂)

Last updated: 2026-08-08