📈 Slope Calculator

Slope (m)

Slope Formula

Slope measures the steepness of a line — how much it rises or falls per unit of horizontal distance. It is often described as "rise over run."

m = (y₂ − y₁) / (x₂ − x₁)
Line equation: y = mx + b
Angle: θ = arctan(m)

Slope Types

m > 0
Positive slope (rises left to right)
m < 0
Negative slope (falls left to right)
m = 0
Horizontal line
undefined
Vertical line (x₁=x₂)

Frequently Asked Questions

What is the slope between (1,2) and (4,8)?
m = (8−2)/(4−1) = 6/3 = 2. The line rises 2 units for every 1 unit to the right.
What does a slope of 0 mean?
A slope of 0 means the line is perfectly horizontal — it has no rise. The y-value stays constant: y = b.
How do you find the equation of a line from slope?
Use slope-intercept form: y = mx + b. Substitute slope m and one point (x₁,y₁) to find b: b = y₁ − m×x₁.