How steep is the line?
The slope of a line measures its steepness: how much it rises (or falls) for each step to the right. Two points are enough to find it. A positive slope climbs, a negative slope falls, a zero slope is flat and a vertical line has no defined slope.
Enter two points and this calculator gives the slope, the equation of the line, both intercepts, the angle with the x-axis, the distance between the points and their midpoint.
How it is calculated
Worked example
Points (1, 2) and (5, 10)
- Rise ÷ run
- 8 ÷ 4
- Slope
- 2
- Equation
- y = 2x + 0
- Angle
- 63.43°
Slope in real life
- Road and ramp gradients are slopes written as a percentage: a slope of 0.08 is an 8% grade.
- Parallel lines have equal slopes, and perpendicular lines have slopes whose product is −1.
- In a graph of cost against quantity, the slope is the price per unit.

