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=2x+3.
Recall that in the general slope-intercept equation y=mx+b, the slope is given by m and the y-intercept is given by b. Therefore, the slope of y=2x+3 is 2 and the y-intercept is (0,3).
In order to graph a line, we need two points on that line. We already know that (0,3) is on the line.
Additionally, because the slope of the line is 2, we know that the point (0+1,3+2)=(1,5) 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=3x1.

Problem 2
Graph y=4x+5.

Graphing lines with fractional slope

Let's graph y=23x+1.
As before, we can tell that the line passes through the y-intercept (0,1), and through an additional point (0+1,1+23)=(1,123).
While it is true that the point (1,123) 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 23, increasing x by 3 units will cause y to increase by 2 units.
This gives us the additional point (0+3,1+2)=(3,3).
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=34x+2.

Problem 4
Graph y=32x+3.