← Back to Lernos
Algebra 1

How to Graph a Linear Equation: Step-by-Step Method

By Lernos Team • 2026-08-27

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).

  1. Plot the y-intercept. Since b = 3, plot the point (0, 3) on the y-axis.
  2. Use the slope to find a second point. Slope m = 2 means 2/1: rise 2, run 1. From (0, 3), move right 1 and up 2 to reach (1, 5).
  3. (Optional) Find a third point. Repeat from (1, 5): right 1, up 2, to get (2, 7).
  4. 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

  1. Rewrite in y = mx + b form if needed. Example: 2x + y = 5 becomes y = -2x + 5.
  2. Plot the y-intercept (0, b). Example: for y = -2x + 5, plot (0, 5).
  3. Use the slope m = rise/run to step to a second point. Example: slope -2 = -2/1 means from (0, 5) go right 1, down 2 to (1, 3).
  4. 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.

  1. Find the x-intercept. Set y = 0: 2x + 3(0) = 62x = 6x = 3. Point: (3, 0).
  2. Find the y-intercept. Set x = 0: 2(0) + 3y = 63y = 6y = 2. Point: (0, 2).
  3. Plot both points and draw the line. Connect (3, 0) and (0, 2) with a straight line and extend it.
  4. Check with a third point. Solving for y: y = -2x/3 + 2. At x = -3, y = 4. The point (-3, 4) should also lie on the line — it does.

Common mistakes to avoid

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.

Practice this with a tutor that won't give you the answer

Students free, no card required. Lernos guides you through problems one question at a time.

Create a free student account