This site is a work in progress. New lessons are added regularly. Contact us

Slope and Intercepts

Learning goals

  • Read mm and bb straight off y=mx+by = mx + b
  • Derive the form from point-slope using (0,b)(0, b)
  • Graph by plotting the intercept, then stepping by the slope
  • Convert any linear equation by solving for yy
  • Find the xx-intercept by setting y=0y = 0
  • Handle the horizontal, vertical and through-the-origin special cases

From point-slope to slope-intercept form

Point-slope form asks for a point and a slope, and any point on the line will serve. Some points, though, are more convenient than others. The most convenient point of all is the one where the line crosses the yy-axis, because its xx-coordinate is 00. That zero coordinate makes the algebra collapse to almost nothing. Building point-slope form on that point produces the cleanest equation of a line there is.

That crossing point has a name. The y-intercept is the point where the line crosses the yy-axis. Every point on the yy-axis has x=0x = 0, so the yy-intercept has the form (0,b)(0, b) for some number bb. That number bb is the height at which the line meets the axis.

Deriving slope-intercept form from point-slope form#

Start with a line whose slope is mm and which crosses the yy-axis at the point (0,b)(0, b). That crossing point is an ordinary point on the line, so point-slope form applies to it. Substitute the point (x1,y1)=(0,b)(x_1, y_1) = (0, b) and the slope mm into yy1=m(xx1)y - y_1 = m(x - x_1):

yb=m(x0).y - b = m(x - 0).

The run x0x - 0 is just xx, and that is the whole trick: the zero coordinate erases the parenthesis and leaves

yb=mx.y - b = mx.

Add bb to both sides to get yy alone:

y=mx+b.y = mx + b.

This is slope-intercept form. Reading it back, mm is the slope of the line and bb is the yy-coordinate of the point where the line meets the yy-axis. Both facts are guaranteed by the way the equation was built, but they are worth confirming straight from y=mx+by = mx + b. Setting x=0x = 0 gives y=by = b, so the point (0,b)(0, b) really does lie on the line, which makes bb the yy-intercept. And taking any other point (x, mx+b)(x,\ mx + b) on the line, the slope between it and (0,b)(0, b) is

(mx+b)bx0=mxx=m,\frac{(mx + b) - b}{x - 0} = \frac{mx}{x} = m,

so the line really does have slope mm. The single equation y=mx+by = mx + b carries the line’s slope and its yy-intercept on its face.

Reading the slope and the intercept

Once an equation is written as y=mx+by = mx + b, the slope and the intercept require no work at all. In that form the slope mm is the number multiplying xx, and bb is the constant, which fixes the yy-intercept at (0,b)(0, b). The only care needed is to read each number with its own sign, and to make sure the equation is actually in this form before you read it.

Worked example 1 Read the slope and yy-intercept from an equation

Each line below is written as y=mx+by = mx + b (or can be with one small step), so match the pieces to mm and bb.

EquationSlope mmyy-intercept (0,b)(0, b)
y=3x4y = 3x - 433(0,4)(0, -4)
y=2x+5y = -2x + 52-2(0,5)(0, 5)
y=52xy = 5 - 2x2-2(0,5)(0, 5)
y=23xy = \tfrac{2}{3}x23\tfrac{2}{3}(0,0)(0, 0)
y=7y = 700(0,7)(0, 7)

Three of these rows hide a small trap. In y=3x4y = 3x - 4 the constant is 4-4, so the intercept is (0,4)(0, -4), not (0,4)(0, 4): carry the minus sign. The line y=52xy = 5 - 2x lists its terms out of order, and the slope is the coefficient of xx, which is 2-2, not the leading 55. Rewriting it as y=2x+5y = -2x + 5 puts the slope back where you expect it. In y=23xy = \tfrac{2}{3}x there is no visible constant, so b=0b = 0 and the line passes through the origin. And y=7y = 7 can be read as y=0x+7y = 0x + 7, a slope of 00 with intercept (0,7)(0, 7).

Writing an equation is the same reading in reverse. If you are told a line’s slope and its yy-intercept, you have mm and bb already, so drop them into y=mx+by = mx + b and you are done.

That reversal is what the figure below is for. Its three controls are mm and bb themselves, with the slope split into the rise and the run that make it. The figure’s readout writes the equation back out for whatever you set. So you can work the lesson in either direction: choose the numbers and read the equation, or pick an equation and hunt for the numbers that produce it.

Start at a rise of 33 over a run of 44 with the crossing at 2-2, and the readout says y=(3/4)x2y = (3/4)x - 2. Now step the crossing up to 00: the constant disappears from the equation, because a line through the origin has b=0b = 0. The equation then reads y=(3/4)xy = (3/4)x with nothing added. Take the rise down to 00 next. The xx term vanishes instead and the readout reads y=0y = 0, a flat line along the horizontal axis. That is the same shape as the table’s y=7y = 7 row, a slope of 00 with the constant left standing. But this figure’s crossing point stops at 66, so the constant it can reach is not 77 itself. Finally set the rise negative and watch the minus sign move into the coefficient rather than the constant. Those are the three places a sign or a missing term can hide.

Line explorer

y = (3/4)x - 2. Rise 3 over run 4 is a slope of 3/4, so from any point on the line, 4 to the right and 3 up lands back on it. And it crosses the vertical axis at -2. A coordinate plane with a straight line drawn across it. Use the controls below the figure to change the rise, the run, where the line crosses the vertical axis. -6 -4 -2 2 4 6 -6 -4 -2 2 4 6
Rise Run Crosses at

y = (3/4)x - 2. Rise 3 over run 4 is a slope of 3/4, so from any point on the line, 4 to the right and 3 up lands back on it. And it crosses the vertical axis at -2.

A line on a coordinate plane whose slope and crossing point are set separately, the slope through the rise and run that form it. The readout writes the line's equation in slope-intercept form for whatever the controls are set to.

Worked example 2 Write y=mx+by = mx + b from a slope and a yy-intercept

Suppose a line has slope 4-4 and crosses the yy-axis at (0,3)(0, 3). Here m=4m = -4 and b=3b = 3, so substitute directly:

y=4x+3.y = -4x + 3.

Now suppose a graph shows a line crossing the yy-axis at (0,2)(0, -2) and climbing with slope 12\tfrac{1}{2}. Read the two numbers off the picture, b=2b = -2 and m=12m = \tfrac{1}{2}, and write

y=12x2.y = \tfrac{1}{2}x - 2.

No point-slope step is needed, because the yy-intercept is the one point the form is built to use.

Check your understanding

Written as y=mx+by = mx + b, what are the slope and yy-intercept of the line y=52xy = 5 - 2x?

Answer choices

Graphing from slope-intercept form

Slope-intercept form is built for fast graphing, because the two numbers it hands you are exactly the two things you need to draw a line. Those two things are a point to start from and a direction to head in. The recipe is short. Plot the yy-intercept (0,b)(0, b) first, since it sits right on the yy-axis and takes no calculation. Then read the slope as rise over run and step from that point to a second one. That step means moving across by the run and up or down by the rise. Two points fix a line, so lay a ruler across them and draw.

Graphing y = (1/2)x + 1 from its y-intercept and slopeThe line y = (1/2)x + 1 through the y-intercept (0, 1) and the point (2, 2), with a slope triangle marking a run of 2 across and a rise of 1 up.xy1202(0, 1)(2, 2)run = 2rise = 1y = (1/2)x + 1
Graphing y = (1/2)x + 1 from slope-intercept form. Plot the y-intercept (0, 1) first, then read the slope 1/2 as a run of 2 and a rise of 1 to step to the second point (2, 2). The line through those two points is the graph.

Worked example 3 Graph y=12x+1y = \tfrac{1}{2}x + 1 from slope-intercept form

Match the equation to y=mx+by = mx + b: the slope is m=12m = \tfrac{1}{2} and the intercept is b=1b = 1. Plot the yy-intercept (0,1)(0, 1) on the yy-axis. Then read the slope 12\tfrac{1}{2} as a run of 22 and a rise of 11, and step from (0,1)(0, 1) two units right and one unit up:

(0,1)    (0+2, 1+1)=(2,2).(0, 1) \;\longrightarrow\; (0 + 2,\ 1 + 1) = (2, 2).

Plot (2,2)(2, 2), then draw the straight line through the two points and extend it both ways. That line is the graph of y=12x+1y = \tfrac{1}{2}x + 1, exactly the figure above. If you want a check, step once more, right 22 and up 11 from (2,2)(2, 2) to reach (4,3)(4, 3), and confirm it too lands on the line.

Converting to slope-intercept form

Not every equation arrives in slope-intercept form. Standard form Ax+By=CAx + By = C and point-slope form yy1=m(xx1)y - y_1 = m(x - x_1) both hide the slope and intercept until you rearrange them. Getting to y=mx+by = mx + b is always the same goal: solve the equation for yy, so that yy stands alone on one side with a coefficient of 11. Then the slope and intercept read straight off.

Worked example 4 Convert 2x+3y=122x + 3y = 12 to slope-intercept form

Slope-intercept form has yy by itself, so solve the equation for yy. First subtract 2x2x from both sides to isolate the yy-term:

3y=2x+12.3y = -2x + 12.

The coefficient of yy is 33, so divide every term by 33:

y=23x+4.y = -\tfrac{2}{3}x + 4.

Now the slope and intercept are in plain sight: the slope is m=23m = -\tfrac{2}{3} and the yy-intercept is (0,4)(0, 4). As a check, the original equation at x=0x = 0 gives 3y=123y = 12, so y=4y = 4, matching bb.

A point-slope equation converts the same way, by distributing the slope and then moving the constant across. Take y3=2(x1)y - 3 = 2(x - 1). Distribute the 22 on the right, then add 33 to both sides:

y3=2x2,y=2x+1.y - 3 = 2x - 2, \qquad y = 2x + 1.

The line has slope 22 and yy-intercept (0,1)(0, 1). Both forms describe one line; slope-intercept form just displays the slope and intercept that point-slope form kept folded up.

Check your understanding

Rewrite 4x+2y=104x + 2y = 10 in slope-intercept form.

Answer choices

Finding the intercepts

The lesson is named for slope and intercepts, and slope-intercept form already hands you one of the two intercepts for free. The yy-intercept is (0,b)(0, b), read straight from the constant, or found by setting x=0x = 0 in any form of the equation. The other crossing, the x-intercept, is the point where the line meets the xx-axis. Every point on the xx-axis has y=0y = 0, so to find it you set y=0y = 0 and solve for xx. The two rules are mirror images: zero the coordinate of the axis you are crossing, which is always the opposite letter from the one you keep.

Worked example 5 Find both intercepts of a line

Start with y=2x6y = 2x - 6, already in slope-intercept form. The yy-intercept is the constant, so it is (0,6)(0, -6). For the xx-intercept, set y=0y = 0 and solve for xx:

0=2x6,2x=6,x=3,0 = 2x - 6, \qquad 2x = 6, \qquad x = 3,

so the xx-intercept is (3,0)(3, 0).

Now take 4x5y=204x - 5y = 20, which is in standard form. The intercepts are just as quick without first solving for yy. Set y=0y = 0 for the xx-intercept:

4x5(0)=20,4x=20,x=5,4x - 5(0) = 20, \qquad 4x = 20, \qquad x = 5,

so the xx-intercept is (5,0)(5, 0). Set x=0x = 0 for the yy-intercept:

4(0)5y=20,5y=20,y=4,4(0) - 5y = 20, \qquad -5y = 20, \qquad y = -4,

so the yy-intercept is (0,4)(0, -4). With both crossings in hand, you can plot the line from its intercepts, the quick two-point method from the graphing lesson.

The two intercepts of y = x - 2The line y = x - 2 drawn through the marked y-intercept (0, -2) on the y-axis and x-intercept (2, 0) on the x-axis.xy2-20(2, 0)(0, -2)y = x - 2
The two intercepts of y = x - 2. Reading b = -2 gives the y-intercept (0, -2) at once, and setting y = 0 gives the x-intercept: 0 = x - 2, so x = 2 and the point is (2, 0). Plotting both and drawing through them graphs the line.

Check your understanding

What is the xx-intercept of the line y=3x12y = 3x - 12?

Answer choices

Special cases

Three lines stretch slope-intercept form to its edges, or past them, and each is worth a moment.

A horizontal line has slope 00. In slope-intercept form that reads y=0x+by = 0x + b, which collapses to y=by = b. So a horizontal line is its own yy-intercept turned into an equation: it meets the yy-axis at (0,b)(0, b) and never tilts. When bb is not 00, the line has no xx-intercept, because it holds the height bb and never reaches the xx-axis. When b=0b = 0, the line is the xx-axis itself and lies flat along it.

A vertical line is the one case slope-intercept form cannot describe. Its slope is undefined, so there is no mm to write, and its equation is x=cx = c instead. A vertical line has an xx-intercept at (c,0)(c, 0) but no yy-intercept, unless c=0c = 0, when the line is the yy-axis.

A line through the origin has yy-intercept (0,0)(0, 0), so its bb is 00 and its equation is simply y=mxy = mx. Here the xx-intercept and the yy-intercept are the same point, the origin, because setting x=0x = 0 and setting y=0y = 0 both land there. Because both intercepts land on that same point, plotting such a line from intercepts alone is not enough; step out to a second point using the slope.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)
A bit of history (Optional)

Picture yourself taking an algebra exam in Stockholm. The line on the page is written y=kx+my = kx + m, and you were taught last week that mm is the slope. Here it is the height at which the line crosses the axis.

The form y=mx+by = mx + b can feel like a law of nature, because it is what every classroom in the United States writes. It is not a law. It is a local costume. British textbooks prefer y=mx+cy = mx + c, taking cc for the constant term. Swedish and Finnish ones prefer y=kx+my = kx + m, which moves the slope onto kk and hands mm over to the intercept. Three traditions, three sets of letters, one line. The packaging is younger than you would guess, too: naming and drilling these forms is the work of standardized textbooks over the last century and a half.

What the traditions never disagree about is the mathematics. Every version says the identical thing, that a straight line is pinned down by exactly two numbers. One number fixes how steeply it tilts. The other fixes where it crosses the vertical axis. Settle those two and the line has nowhere else to go. That is why you can graph it by plotting the intercept and then stepping off the slope, and why solving for yy hands you both numbers at once.

The lettering is a habit. The pair of numbers is the lesson.