Linear Equation / Slope
Find the equation of a line from slope + intercept or two points, with a graph
y = mx + b
Equation
y = 2x − 1
Slope
2
y-intercept
-1
About this calculator
The Linear Equation Calculator finds the slope-intercept equation y = mx + b from either a slope and y-intercept or two coordinate points. It instantly shows the equation, slope, y-intercept, and a graph of the line. Useful for algebra, geometry, and data analysis.
Common examples
- Slope m=2, y-intercept b=3 → y = 2x + 3
- Points (0, 5) and (3, 11) → slope = 2, y = 2x + 5
- Points (1, 4) and (4, 13) → slope = 3, y = 3x + 1
- Slope m=−0.5, y-intercept b=10 → y = −0.5x + 10
- Points (−2, 0) and (4, 6) → slope = 1, y = x + 2