Algebra calculators
Slope Calculator
Find the slope, y-intercept and equation of a line from two points, with the rise-over-run working shown.
Formula: slope m = (y₂ − y₁) ÷ (x₂ − x₁). The line equation is y = mx + b, where b = y₁ − m×x₁.
How to use
- Enter the two points (x₁, y₁) and (x₂, y₂).
- Press “Calculate slope”.
- Read the slope, the y-intercept and the equation of the line.
Frequently asked questions
- What does the slope tell me?
- How steep the line is: rise over run. A positive slope rises left to right, a negative slope falls, zero is horizontal, and a vertical line has no defined slope.
- What is the y-intercept?
- Where the line crosses the y-axis (x = 0). It is the b in y = mx + b, worked out as b = y₁ − m×x₁.
- What if both points have the same x?
- The line is vertical (x = constant) and the slope is undefined, because the run (x₂ − x₁) is zero and division by zero is not allowed.
- Is my input stored?
- No. The calculation runs in your browser.