To graph a linear equation like y = 2x + 3, plot the y-intercept on the y-axis, use the slope to step to a second point, and draw a straight line through them. That's the whole method — everything below is just showing you how to do it cleanly and how to handle equations that aren't already in y = mx + b form.
A linear equation always produces a straight line, so you only need two accurate points to draw it (a third is a good sanity check).
Worked example: graphing y = 2x + 3
The equation is already in slope-intercept form y = mx + b, where m = 2 (slope) and b = 3 (y-intercept).
- Plot the y-intercept. Since
b = 3, plot the point(0, 3)on the y-axis. - Use the slope to find a second point. Slope
m = 2means2/1: rise 2, run 1. From(0, 3), move right 1 and up 2 to reach(1, 5). - (Optional) Find a third point. Repeat from
(1, 5): right 1, up 2, to get(2, 7). - Draw the line. Connect the points with a straight line and extend it in both directions with arrows.
Quick check: at x = 2, the equation gives y = 2(2) + 3 = 7. That matches the point (2, 7), so the line is correct.
The general method in 4 steps
- Rewrite in y = mx + b form if needed. Example:
2x + y = 5becomesy = -2x + 5. - Plot the y-intercept (0, b). Example: for
y = -2x + 5, plot(0, 5). - Use the slope m = rise/run to step to a second point. Example: slope
-2 = -2/1means from(0, 5)go right 1, down 2 to(1, 3). - Draw a straight line through both points. Use a ruler and extend past both points.
What if the equation is in standard form Ax + By = C?
You have two clean options: (a) solve for y to get slope-intercept form, or (b) find the two intercepts directly. To find the x-intercept, set y = 0. To find the y-intercept, set x = 0. Plot both, connect them.
Horizontal and vertical lines
y = 4 is a horizontal line through (0, 4). x = -2 is a vertical line through (-2, 0). Students mix these up constantly — the variable that's fixed tells you which axis the line crosses.
Worked example: graphing 2x + 3y = 6 using intercepts
This one's in standard form, so intercepts are the fastest route.
- Find the x-intercept. Set
y = 0:2x + 3(0) = 6→2x = 6→x = 3. Point:(3, 0). - Find the y-intercept. Set
x = 0:2(0) + 3y = 6→3y = 6→y = 2. Point:(0, 2). - Plot both points and draw the line. Connect
(3, 0)and(0, 2)with a straight line and extend it. - Check with a third point. Solving for
y:y = -2x/3 + 2. Atx = -3,y = 4. The point(-3, 4)should also lie on the line — it does.
Common mistakes to avoid
- Swapping x and y when plotting.
(3, 2)means 3 right, 2 up — not 2 right, 3 up. - Reading slope backwards. Slope
2/3is rise 2, run 3 (up 2, right 3) — not right 2, up 3. - Drawing the line from only one point. One point defines infinitely many lines. Always plot at least two.
- Confusing horizontal and vertical.
y = 5is horizontal,x = 5is vertical. - Forgetting to convert standard form. If you try to read the slope directly from
2x + 3y = 6, you'll get the wrong number. Solve foryfirst, or use intercepts.
Next step: practice with a guided tutor
Reading the method is one thing — getting unstuck mid-problem is another. LernOS's AI tutor walks you through graphing problems one question at a time, catching mistakes like slope-flipping or intercept mix-ups the moment they happen. Sign up below to try a guided session on graphing linear equations.