Slope
The slope tells you the rate of change and whether the line rises, falls, or remains horizontal as x increases.
Free Algebra Guide
Learn what m and b mean, how to identify slope and y-intercept, how to graph y = mx + b, and how to write linear equations in slope-intercept form.
Slope-intercept form is one of the most useful ways to write a linear equation. When an equation is written as y = mx + b, you can quickly identify the line's slope and y-intercept. Those two pieces of information tell you how the line changes and where it crosses the y-axis.
More importantly, slope-intercept form connects three different ways of thinking about a linear relationship: its equation, its graph, and its rate of change. Learning to move between those representations is a major Algebra 1 skill.
Slope-intercept form is a way of writing a linear equation so that the slope and y-intercept are immediately visible.
Each part of the equation has a specific meaning. The variable x is the input, y is the output, m is the slope, and b is the y-intercept.
The slope tells you the rate of change and whether the line rises, falls, or remains horizontal as x increases.
The y-intercept tells you where the line crosses the y-axis. Its coordinate is always (0, b).
Compare the equation y = 3x − 4 with y = mx + b.
The coefficient of x is 3, so m = 3. The constant is −4, so b = −4. Therefore the line has slope 3 and crosses the y-axis at (0, −4).
| Part | Meaning | In y = 3x − 4 | What It Tells You |
|---|---|---|---|
| m | Slope | 3 | Rise 3 for every run of 1 |
| b | Y-intercept | −4 | Cross the y-axis at (0, −4) |
The value of m is the slope of the line. Slope tells you how much y changes when x changes.
If the slope is positive, the line rises from left to right. If the slope is negative, the line falls. If the slope is 0, the line is horizontal.
Rise 2 units for every run of 1 unit.
Fall 3 units for every run of 1 unit.
Rise 2 units for every run of 5 units.
The y-value does not change as x changes.
If m = 4, then each increase of 1 in x produces an increase of 4 in y. If m = −2, each increase of 1 in x produces a decrease of 2 in y.
The value of b is the y-intercept. It tells you where the line crosses the y-axis.
Every point on the y-axis has an x-coordinate of 0. That is why the y-intercept is always written as the ordered pair (0, b).
Substitute x = 0 into y = mx + b:
So whenever x = 0, y = b. That gives the point (0, b).
When a linear equation is already written in slope-intercept form, identifying m and b is usually very quick. Compare the equation directly with y = mx + b.
In y = x + 6, the coefficient of x is 1, so m = 1.
In y = −x + 6, the coefficient is −1, so m = −1.
| Equation | m | b | Y-Intercept |
|---|---|---|---|
| y = 5x + 2 | 5 | 2 | (0, 2) |
| y = −3x + 4 | −3 | 4 | (0, 4) |
| y = x − 8 | 1 | −8 | (0, −8) |
| y = −x | −1 | 0 | (0, 0) |
Slope-intercept form makes graphing especially convenient because the equation tells you exactly where to begin and how to move.
Consider the equation y = 2x − 3.
If you know the slope and y-intercept, you can write the equation by substituting those values directly into y = mx + b.
If b is negative, do not write + −2 in the final equation. Simplify the signs so y = 3x + (−2) becomes y = 3x − 2.
When you are given a graph instead of an equation, you can work backward. Find the y-intercept and the slope, then place those values into y = mx + b.
The y-intercept is often the easiest exact point to read from a graph. Once you know b, you only need the slope to finish the equation.
The slope in slope-intercept form does not have to be a whole number. Fractions are often especially useful because they show the rise and run directly.
Start at (0, 1), then rise 2 and run 3.
Start at (0, 5), then fall 3 and run 4.
The slope −3/4 can be interpreted as:
Some slope-intercept equations look slightly different because a coefficient or constant is not written explicitly.
| Equation | m | b | Meaning |
|---|---|---|---|
| y = x + 3 | 1 | 3 | The invisible coefficient of x is 1 |
| y = −x + 3 | −1 | 3 | The invisible coefficient is −1 |
| y = 4x | 4 | 0 | The line crosses at the origin |
| y = 6 | 0 | 6 | Horizontal line through (0, 6) |
A vertical line such as x = 4 has undefined slope. Because slope-intercept form uses a finite slope m, vertical lines cannot be written as y = mx + b.
In y = mx + b, m is the slope and b is the y-intercept. The coefficient of x is not the y-intercept.
In y = 2x − 5, b = −5, not 5. The line crosses the y-axis at (0, −5).
In y = x + 4, m = 1. In y = −x + 4, m = −1.
The value b gives the y-intercept, not the x-intercept. The corresponding point is always (0, b).
The slope is rise over run. For a slope of 2/3, move vertically 2 units and horizontally 3 units.
When graphing y = mx + b, plot the y-intercept first. Then use the slope from that point.
Vertical lines such as x = 3 have undefined slope and cannot be written in the form y = mx + b.
Practice identifying m and b, interpreting slope and y-intercept, building equations, and matching equations to graphs with step-by-step feedback.
Open the Slope-Intercept Form ToolPersonalized Math Support
If a concept still feels confusing, you do not have to work through it alone. Tell me what you are studying and where you are getting stuck, and I will help you determine the best next step.