What you can do with the Slope Calculator
- Check algebra and geometry homework step by step.
- Write the equation of a line in slope-intercept form.
- Work out how steep a line, ramp or roof pitch is.
How to use the Slope Calculator
- Enter or choose the first point (x₁, y₁).
- Enter or choose the second point (x₂, y₂).
- Your result updates as you type: the slope, equation of the line, y-intercept, angle and distance, with the working.
When it helps
Finding the equation of a line through two points on a graph for math homework.
Slope Calculator formula
m = (y₂ − y₁) ÷ (x₂ − x₁)
b = y₁ − m × x₁
y = mx + b
The slope is the rise (change in y) divided by the run (change in x) between the two points. The y-intercept comes from putting one point into y = mx + b. When both points have the same x, the line is vertical and its slope is undefined. The angle is the arctangent of the slope.