Home › Calculators › Line Slope
Calculators
Line Slope
From two points, get a line's slope, its angle in degrees and its y-intercept. Handy for graphing, ramps, roofs and linear equations.
Try it now
Worked example
Slope: 2 · Angle°: 63.434949 · y-int: 0
How it’s solved
Worked on the example above, step by step — follow along and you can do it on paper next time, no tool required.
- Slope is “rise over run”: how far y climbs for each step across in x.
- Slope = (y₂ − y₁) ÷ (x₂ − x₁)
(8 − 2) ÷ (4 − 1) = 2 - y-intercept = y₁ − slope × x₁
2 − 2 × 1 = 0
Learn the method
Inputs
- x₁
1 - y₁
2 - x₂
4 - y₂
8
Frequently asked
What's the slope through (1,2) and (4,8)?
A slope of 2, about a 63.43° angle, crossing the y-axis at 0.
What does the y-intercept mean?
It's where the line crosses the y-axis, the value of y when x is zero.