Slope calculator
Enter two points and get the slope. If the x‑values are the same, the line is vertical and the slope is undefined.
Enter two points and get the slope. If the x‑values are the same, the line is vertical and the slope is undefined.
Slope measures how steep a line is. This calculator uses the standard two‑point formula.
Example: Point 1 = (1, 2), Point 2 = (5, 10).
Slope m = (10 − 2) ÷ (5 − 1) = 8 ÷ 4 = 2. That means y increases by 2 for every +1 in x.
Slope is “change in y per change in x.” If y is dollars and x is hours, the slope is dollars/hour. If y is miles and x is time, the slope is miles per unit time.
If you know the slope m and one point (x₁, y₁), you can solve for b in y = mx + b:
That’s useful when you want the full line equation, not just how steep it is.
If you have slope m = rise/run, start at a point, then move run units along x and rise units along y to find the next point.