The formula
m = (y₂ − y₁) ÷ (x₂ − x₁)
Slope measures steepness: how far a line rises for each unit it runs to the right. Positive slopes climb, negative slopes fall, zero is flat and a vertical line has no defined slope.
How to use this calculator
- Enter x₁.
- Enter y₁.
- Enter x₂.
- Enter y₂.
- Read the answer on the right. It updates as you type, and the numbered steps underneath show how it was worked out.
Worked example
Using x₁: 1; y₁: 2; x₂: 3; y₂: 8.
- Rise: 8 − 2 = 6
- Run: 3 − 1 = 2
- Slope = 6 ÷ 2 = 3
- Intercept: b = y₁ − m × x₁ = −1
Slope: 3
Common questions
What does a slope of 2 mean?
For every 1 unit you move right, the line goes up 2 units.
How do I turn a slope into an angle?
Take the inverse tangent of the slope. A slope of 1 is a 45° angle.