Slope-intercept form calculator
Get y = mx + b from two points, a point and a slope, or standard form, with exact fractions and the line drawn for you.
Equation
Slope , y-intercept , x-intercept (-0.5, 0).
Slope is rise over run
Positive slope: the line rises left to right. Moving 1 step right changes y by 1.
- the line
- run = 5
How to graph a linear equation from y = mx + b
- Plot the y-intercept .
- From there, use the slope as rise over run. For , go up 2 and right 3 and plot a second point.
- Draw a straight line through the two points and extend it both ways.
The three common forms of a line all describe the same thing: slope-intercept , point-slope , and standard . Two lines together make a system of equations.
Frequently asked questions
What is slope-intercept form?
y = mx + b, where m is the slope (rise over run) and b is the y-intercept, the y-value where the line crosses the y-axis.
How do I find the equation of a line through two points?
Find the slope m = (y₂ − y₁)/(x₂ − x₁). Then substitute one point into y = mx + b and solve for b.
How do I convert Ax + By = C to slope-intercept form?
Solve for y: subtract Ax from both sides (By = −Ax + C), then divide by B, giving y = (−A/B)x + C/B.
What about vertical lines?
A vertical line like x = 3 has an undefined slope and can’t be written as y = mx + b. Horizontal lines have slope 0: y = b.