Straight lines are everywhere in algebra, and slope-intercept form is the fastest way to read one. The moment you see an equation written as y = mx + b, you already know how steep the line is and exactly where it crosses the y-axis — no table of points required. This guide breaks down each piece, shows how to convert equations into this form, and walks through graphing with worked examples.
What Is Slope-Intercept Form?
Slope-intercept form is the structure used to write any non-vertical linear equation:
y = mx + b
- y — the dependent variable (output on the vertical axis).
- m — the slope, measuring steepness and direction as rise over run.
- x — the independent variable (input on the horizontal axis).
- b — the y-intercept, the point (0, b) where the line crosses the y-axis.
Take y = 3x + 2: the slope is 3 (the line rises 3 units for every 1 unit it moves right) and the y-intercept is 2 (the line crosses the y-axis at (0, 2)).
If your algebra foundation feels shaky, reviewing how to factor polynomials with examples first can help. For systems where lines intersect, see our tutorial on solving systems of equations by substitution. You can also verify slopes and intercepts with the CalcSolver calculation engine.
Understanding Slope (m) and Direction
The slope m tells you how the line tilts:
- Positive slope (m > 0): the line rises from left to right.
- Negative slope (m < 0): the line falls from left to right.
- Zero slope (m = 0): the line is perfectly flat and horizontal (y = b).
- Undefined slope: vertical lines (x = a) have no slope-intercept form.
The slope between two points (x₁, y₁) and (x₂, y₂) comes from this formula:
m = (y₂ – y₁)/(x₂ – x₁)
Worked Example: Building an Equation from Two Points
Find the slope-intercept equation of the line through (1, 2) and (4, 8).
Step 1: Calculate the slope.
m = (8 − 2)/(4 − 1) = 6/3 = 2
Step 2: Solve for b using one point.
Plug m = 2 and the point (1, 2) into y = mx + b:
2 = 2(1) + b → 2 = 2 + b → b = 0
Step 3: Write the equation.
y = 2x
Check with the second point: 2(4) = 8. ✓ Both points satisfy the equation.
How to Convert Standard Form to Slope-Intercept Form
Equations often appear in standard form, Ax + By = C. To convert, isolate y on the left side.
Worked Example: Convert 4x + 2y = 12
Step 1: Subtract the x-term from both sides.
2y = −4x + 12
Step 2: Divide every term by the coefficient of y (2).
y = (−4/2)x + (12/2) → y = −2x + 6
Now the structure is visible: slope m = −2 and y-intercept b = 6, so the line crosses the y-axis at (0, 6).
When solving for y, divide every term on the right side by the coefficient of y — the x-term and the constant both get divided.
Graphing a Line in 3 Steps
- Plot the y-intercept. Find b on the y-axis and mark the point (0, b).
- Use the slope to find a second point. Read m as rise over run. From the intercept, move vertically by the rise and horizontally by the run.
- Draw the line. Connect the two points with a ruler and extend with arrows at both ends.
Graphing Example: y = (2/3)x − 1
Step 1: Plot the intercept at (0, −1).
Step 2: The slope 2/3 means rise = +2, run = +3. From (0, −1), move up 2 and right 3 to reach (3, 1).
Step 3: Connect (0, −1) and (3, 1) to complete the graph.
Verify: (2/3)(3) − 1 = 2 − 1 = 1. ✓ The second point lies on the line.
Fractional slopes like 2/3 are common here. If fraction arithmetic slows you down, our overview on 1/4 as a percent and decimal and our reference on what is equivalent to 3/4 can sharpen that skill.
Common Mistakes to Avoid
- Mixing up the axes: the y-intercept b always goes on the vertical axis, never the horizontal one.
- Dropping negative signs in slope: for a slope like −3/4, apply the negative to either the rise (down 3) or the run — never to both at once, which would flip the sign.
- Dividing only one term: when isolating y, every term on the right must be divided by y’s coefficient.
- Treating vertical lines the same: x = a has no y-intercept and no slope, so it can never be written as y = mx + b.
Read any line equation left to right: the number stuck to x is the slope, the lone constant is the intercept. Once you see that pattern, graphing takes seconds.