To graph a linear equation you need points that make it true, and a linear equation always graphs as a straight line. The fastest route for most equations: rewrite as y=mx+by = mx + b, plot the y-intercept (0,b)(0, b), then step off the slope mm to a second point. When rewriting is awkward, two correct points are still enough to draw the line.

When to use each method

  • Slope-intercept (y=mx+by = mx + b) is fastest when the equation rewrites cleanly; you read the intercept and slope straight off.
  • Two-point plotting is the reliable fallback, especially for standard form Ax+By=CAx + By = C: pick two xx-values, find their yy-values, plot.
  • A vertical line is the special case x=cx = c, graphed as a vertical line through (c,0)(c, 0).

When you can write the equation as y=mx+by = mx + b, two pieces of information jump out at once: bb is the y-intercept, so the line passes through (0,b)(0, b), and mm is the slope, which tells you how the line moves from one point to the next. A slope of m=2m = 2 reads as 21\tfrac{2}{1} — go right 11, up 22. A slope of m=32m = -\tfrac{3}{2} reads as go right 22, down 33. This works for any non-vertical line, which is exactly why slope-intercept is the default first move.

The steps

  1. Rewrite if helpful into y=mx+by = mx + b so the intercept and slope are easy to read.
  2. Plot one known point, usually the y-intercept (0,b)(0, b).
  3. Find another point using the slope as rise over run, or by substituting an xx-value.
  4. Draw and check the line through the points, confirming each plotted point satisfies the original equation.

Full example: graph 2x+y=52x + y = 5

Rewrite so yy is alone:

2x+y=5y=2x+52x + y = 5 \quad\Longrightarrow\quad y = -2x + 5

The y-intercept is b=5b = 5, so plot (0,5)(0, 5). The slope is m=2m = -2, read as 21-\tfrac{2}{1}: from (0,5)(0,5) go right 11, down 22 to reach (1,3)(1, 3). Repeat the move to get (2,1)(2, 1). Draw a straight line through them.

Check by substituting x=1x = 1 into the original: 2(1)+y=52(1) + y = 5 gives y=3y = 3, matching (1,3)(1,3), so the graph is consistent with the equation.

If an equation does not rewrite cleanly, the two-point method always works. Take x+y=4x + y = 4: if x=0x = 0 then y=4y = 4, giving (0,4)(0, 4); if x=4x = 4 then y=0y = 0, giving (4,0)(4, 0). Plot those two and draw the line. It is slower than reading slope and intercept directly, but reliable, and it is especially handy when the equation is in standard form Ax+By=CAx + By = C.

Where you get stuck, and how to verify each step

  • Plotting the y-intercept off the y-axis. The y-intercept has x=0x = 0, so it must sit on the y-axis.
  • Reading the slope backward. A slope of 23-\tfrac{2}{3} means right 33, down 22 — not right 22, down 33.
  • Drawing from one point. One point cannot fix a line; you need at least two distinct points.
  • An algebra slip while rewriting. After changing form, check one plotted point in the original equation, not just the rewritten one.

Practice on your own

Graph y=12x3y = \tfrac{1}{2}x - 3: plot the intercept first, use the slope for a second point, then check one point back in the equation. For a harder case, take a standard-form equation from homework, sketch it by hand, and verify two points satisfy it.

Graphing linear equations underpins algebra, coordinate geometry, rate problems, budgeting, and any data modeled by a straight line over a limited range — the payoff is seeing the relationship instead of just the symbols.

Frequently Asked Questions

Do I always need slope-intercept form to graph a linear equation?
No. Slope-intercept form is often the fastest method, but any two correct points determine the line, so a short table of values also works.
How many points do I need to graph a line?
Two distinct correct points are enough to determine a line, but a third point is useful as a check.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →