What is slope-intercept form?
Slope-intercept form is the standard way to write a linear equation so that its graph can be read straight off the symbols:
y = mx + b
Every symbol has one job, and every job is on screen in the grapher above:
| Symbol | Meaning | In the grapher |
|---|---|---|
| m | the slope: how much y changes when x increases by 1 | the Slope m slider (-4 to 4, steps of 0.5) |
| b | the y-intercept: the height where the line crosses the y-axis | the Intercept b slider (-4 to 4, steps of 0.5) |
| x | any input: a horizontal position on the grid | the horizontal axis |
| y | the output the rule gives back for that x | the vertical axis |
The grapher starts at m = 1 and b = 2, so its equation box reads y = x + 2. Move either slider and the line redraws instantly, the equation rewrites itself with your numbers, and the labeled dots track both intercepts. The Reset button returns you to y = x + 2 at any time.
Behind the graph, y = mx + b is just a rule: take any x, multiply it by m, add b, and out comes the matching y. Plot every (x, y) pair the rule produces and they all land on one straight line. That is why two numbers are enough to describe the entire line.
What do m and b mean?
m is the slope. It answers one question: when x increases by 1, how much does y change? The grapher draws that as a dashed triangle sitting on the y-intercept: a teal leg marked +1 running right, and an amber leg showing the rise, which always equals m. The readout says the same thing in words, right 1 → up 1 at the default. Bigger m, steeper climb; negative m, the line falls instead. The slope lesson shows how to compute m from any two points on a line.
b is the y-intercept. It is the y-value where the line crosses the y-axis, so the line always passes through the point (0, b). At the default settings the grapher marks it with a dot labeled (0, 2).
The trap: b is not an x-value. Students see y = 2x - 3 and plot a point at (-3, 0), three units along the x-axis. Wrong axis. The -3 is a height: the line crosses the y-axis at (0, -3), three units down. The grapher makes the difference impossible to miss because it labels both crossings. At the default y = x + 2, the y-intercept dot reads (0, 2) while the x-intercept dot reads (-2, 0). Same b = 2, yet the line crosses the x-axis at negative 2. If b were an x-value those two labels would match; they do not.
How to graph a linear equation from y = mx + b
Graphing linear equations from slope-intercept form is a two-step recipe:
- Plot the y-intercept. Mark the point (0, b) on the y-axis.
- Step with the slope. From (0, b), move right 1 and up m (down if m is negative). Mark the point. Repeat once more for a third point.
- Draw the line through the points and extend it in both directions.
Worked example: y = 2x - 3. Here m = 2 and b = -3.
- Start at the y-intercept: (0, -3).
- Right 1, up 2: at x = 1, y = 2(1) - 3 = -1, the point (1, -1).
- Right 1, up 2 again: at x = 2, y = 2(2) - 3 = 1, the point (2, 1).
Draw the straight line through (0, -3), (1, -1), and (2, 1). Both sliders can reach these exact numbers, so you can verify every point of this example live:
If the slope is a fraction, the same recipe works with a wider step. For m = 0.5 (a reachable slider value), going right 1 rises only 0.5, so it is often cleaner to go right 2 and up 1: the same slope, landed on whole-number grid points.
Changing m vs changing b
The two sliders never do each other’s job, and that separation is the whole point of the form:
| You change | The line… | What stays fixed |
|---|---|---|
| m larger (toward 4) | tilts steeper uphill; the rise readout grows | the y-intercept (0, b) |
| m negative | falls left to right; the readout flips to “down” | the y-intercept (0, b) |
| m = 0 | goes flat; the x-intercept readout says “none (horizontal line)“ | the y-intercept (0, b) |
| b larger | slides straight up, tilt unchanged | the slope readout’s number |
| b smaller | slides straight down, tilt unchanged | the slope readout’s number |
In short: m pivots, b slides. Pick a tilt, pick a height, and the line is fully determined. The one number that responds to both sliders is the x-intercept, because where a line crosses the x-axis depends on its tilt and its height together: solving 0 = mx + b gives x = -b/m, which is exactly the value the grapher’s x-intercept readout reports.
When slope-intercept form is the right tool
Slope-intercept form is the fastest form for graphing and for reading a graph back into an equation: spot where the line crosses the y-axis (that is b), count the rise for one step right (that is m), and write y = mx + b. It is also the best form for comparing lines: two lines with the same m are parallel, and writing two equations in this form sets up systems of equations, where the point the two lines cross is the solution.
It is not always the least work, though. If you know the slope and a point that is not the y-intercept, say m = 2 through (3, 5), slope-intercept form makes you solve for b first. Point-slope form takes that information as-is. Both forms describe the same lines; you are only choosing which starting facts to plug in.
The grapher above also works as a y = mx + b calculator: set m and b and read the equation, both intercepts, and the graph straight off the screen.
It’s free to embed on your own site or LMS. Next, practice reading m from any two points in the slope lesson, or graph a line from any known point with point-slope form.