If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Graphing slope-intercept form

Learn how to graph lines whose equations are given in the slope-intercept form y=mx+b.
If you haven't read it yet, you might want to start with our introduction to slope-intercept form.

Graphing lines with integer slopes

Let's graph y, equals, 2, x, plus, 3.
Recall that in the general slope-intercept equation y, equals, start color #ed5fa6, m, end color #ed5fa6, x, plus, start color #0d923f, b, end color #0d923f, the slope is given by start color #ed5fa6, m, end color #ed5fa6 and the y-intercept is given by start color #0d923f, b, end color #0d923f. Therefore, the slope of y, equals, start color #ed5fa6, 2, end color #ed5fa6, x, plus, start color #0d923f, 3, end color #0d923f is start color #ed5fa6, 2, end color #ed5fa6 and the y-intercept is left parenthesis, 0, comma, start color #0d923f, 3, end color #0d923f, right parenthesis.
In order to graph a line, we need two points on that line. We already know that left parenthesis, 0, comma, start color #0d923f, 3, end color #0d923f, right parenthesis is on the line.
Additionally, because the slope of the line is start color #ed5fa6, 2, end color #ed5fa6, we know that the point left parenthesis, 0, start color #ed5fa6, plus, 1, end color #ed5fa6, comma, start color #0d923f, 3, end color #0d923f, start color #ed5fa6, plus, 2, end color #ed5fa6, right parenthesis, equals, left parenthesis, 1, comma, 5, right parenthesis is also on the line.
A coordinate plane. The x- and y-axes each scale by one. The graph of a line goes through the points zero, three and one, five. Both of these points are plotted and labeled.

Check your understanding

Problem 1
Graph y, equals, 3, x, minus, 1.

Problem 2
Graph y, equals, minus, 4, x, plus, 5.

Graphing lines with fractional slope

Let's graph y, equals, start color #ed5fa6, start fraction, 2, divided by, 3, end fraction, end color #ed5fa6, x, start color #0d923f, plus, 1, end color #0d923f.
As before, we can tell that the line passes through the y-intercept left parenthesis, 0, comma, start color #0d923f, 1, end color #0d923f, right parenthesis, and through an additional point left parenthesis, 0, start color #ed5fa6, plus, 1, end color #ed5fa6, comma, start color #0d923f, 1, end color #0d923f, start color #ed5fa6, plus, start fraction, 2, divided by, 3, end fraction, end color #ed5fa6, right parenthesis, equals, left parenthesis, 1, comma, 1, start fraction, 2, divided by, 3, end fraction, right parenthesis.
While it is true that the point left parenthesis, 1, comma, 1, start fraction, 2, divided by, 3, end fraction, right parenthesis is on the line, we can't plot points with fractional coordinates as precisely as we draw points with integer coordinates.
We need a way to find another point on the line whose coordinates are integers. To do that, we use the fact that in a slope of start color #ed5fa6, start fraction, 2, divided by, 3, end fraction, end color #ed5fa6, increasing x by start color #ed5fa6, 3, end color #ed5fa6 units will cause y to increase by start color #ed5fa6, 2, end color #ed5fa6 units.
This gives us the additional point left parenthesis, 0, start color #ed5fa6, plus, 3, end color #ed5fa6, comma, start color #0d923f, 1, end color #0d923f, start color #ed5fa6, plus, 2, end color #ed5fa6, right parenthesis, equals, left parenthesis, 3, comma, 3, right parenthesis.
A coordinate plane. The x- and y-axes each scale by one. The graph of a line goes through the points zero, three and two, zero. Both of these points are plotted and labeled.

Check your understanding

Problem 3
Graph y, equals, start fraction, 3, divided by, 4, end fraction, x, plus, 2.

Problem 4
Graph y, equals, minus, start fraction, 3, divided by, 2, end fraction, x, plus, 3.

Want to join the conversation?