Algebra 1 · Grades 8, 9
Slope-Intercept Form: y = mx + b
Quick answer
Slope-intercept form writes a line as y = mx + b, where m is the slope and b is the y-intercept, the value of y when x is 0. In y = 2x + 3 the line has slope 2 and crosses the y-axis at 3. To graph it, plot the intercept first, then use the slope as rise over run to step to a second point.
What you'll learn
- Identify the slope and y-intercept from an equation in slope-intercept form
- Graph a line directly from y = mx + b
- Rearrange a linear equation into slope-intercept form
The form
Two letters carry all the information:
| Letter | Name | Controls |
|---|---|---|
| slope | how steep the line is, and which way it tilts | |
| -intercept | where the line crosses the vertical axis |
So describes a line with slope that crosses the -axis at . You can read both facts off without drawing anything.
Why b is where the line crosses the axis
This is worth one line of algebra rather than memorizing.
The -axis is the set of points where . So to find where the line meets it, substitute :
The term vanishes, and what remains is . That is the whole reason is the intercept — it is the only part of the equation that survives when is zero.
The same substitution explains what means in a real situation: it is the value before anything has changed. A flat fee before any usage, a bank balance before any deposits, a temperature at time zero.
Why m is the slope
Take two points one step apart: and .
Subtract them:
Moving one across raises the line by exactly . That is rise over run with a run of , so is the slope, everywhere on the line.
Graphing in two moves
- Plot on the -axis. That is your first point, free of charge.
- From there, use the slope as to step to a second point.
- Draw the line through them.
For the first point is , straight off the . Stepping up and across lands on :
- y = 2x + 3
Two points is all a line needs. Everything else on the line follows from repeating the same step.
Line explorer
Drag the sliders for and and watch the line move. The steps follow the lesson: plot the intercept, then step by the slope.
The graph and steps below show , with and . Turn on JavaScript to drag the sliders.
Worked example:
The line y = 2x + 3 has slope 2 and crosses the y-axis at (0, 3). It rises from left to right, passing through (1, 5), and crosses the x-axis at (−3/2, 0), where x = −1.5.
- y = 2x + 3
Read the slope and the intercept
Comparing with gives and .
Plot the intercept
The y-axis is where . Substitute it:
The line crosses the y-axis at . Plot this point first.
Step by the slope
The slope is rise over run.
So from go up and across , landing on .
Check the second point
Substituting gives
This matches , so the point is on the line.
Draw the line
The slope is positive, so the line rises from left to right. Draw a straight line through and , extending past both.
Where it crosses the x-axis
The x-axis is where . Put into the equation:
Subtract from both sides:
Divide both sides by :
The line crosses the x-axis at .
Runs on your device: nothing you type is sent or saved. Want to see why is the slope and the intercept? Read the lessons on slope and graphing linear equations.
Worked examples
Common mistakes
Practice problems
-
Identify the slope and -intercept of .
Hint
Compare directly with , keeping the signs.
Answer
,
Full solution
The coefficient of is , so . The constant is , so the line crosses the -axis at .
-
Identify the slope and -intercept of .
Answer
,
Full solution
The slope is negative, so the line falls: down for every across, starting from .
-
Write in slope-intercept form.
Answer
Full solution
Subtract from both sides: , so and .
-
Write in slope-intercept form.
Hint
Isolate the term first, then divide every term by its coefficient.
Answer
Full solution
Subtract : . Divide every term by : .
Check at : , and ✓
-
What is the -intercept of ?
Answer
Full solution
There is no constant, so and the equation is . The line passes through the origin.
-
A line has slope and -intercept . Write its equation.
Answer
Full solution
Substitute and into .
-
Starting from the intercept of , give one other point on the line.
Hint
Plot , then step up and across .
Answer
Full solution
The intercept is . Rise and run gives .
Check: ✓
-
A tank holds 200 liters and drains at 8 liters per minute. Write an equation for the volume after minutes, and find when the tank is empty.
Hint
Draining means the volume decreases, so the slope is negative.
Answer
, empty after 25 minutes.
Full solution
The starting volume is the intercept, . Losing liters a minute makes the slope , so .
Empty means : , so and minutes.
Check: ✓
Frequently asked questions
What does b actually mean?
It is the value of y when x is 0, which is where the line crosses the vertical axis. In a real situation it is the starting amount before anything changes: a flat fee, an initial deposit, a temperature at time zero.
How do I get an equation into y = mx + b form?
Solve it for y, using the same inverse operations you use on any equation. From 2x + y = 7, subtract 2x from both sides to get y = -2x + 7, so the slope is -2 and the intercept is 7.
What if there is no visible b?
Then b is 0 and the line passes through the origin. In y = 3x the intercept is 0, because y = 3x + 0.
Formulas on this page
Key terms in this lesson
- Slope
- Slope measures how steep a line is: the change in y divided by the change in x. A slope of 2 means the line climbs 2 units for every 1 unit across.
- y-intercept
- The y-intercept is where a graph crosses the vertical axis — the value of y when x is 0. In y = 2x + 3 the y-intercept is 3, so the line passes through (0, 3).
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.8.F.A.3FunctionsInterpret the equation y = mx + b as defining a linear function, whose graph is a straight line; give examples of functions that are not linear.
- CCSS.MATH.CONTENT.HSF.IF.C.7aInterpreting FunctionsGraph linear and quadratic functions and show intercepts, maxima, and minima.