To graph a line from a slope and y-intercept, plot the y-intercept point (0, b) first, then use the slope as a rise-over-run count to plot a second point, and draw a straight line through both. That's the whole method. The one condition that matters: your equation must already be in slope-intercept form, y = mx + b, and the slope written as a fraction you can count. If m arrives as a decimal or a horizontal or vertical case, you adjust the fraction before you move. Everything below is the counted-out version of that procedure, including what to do when the second point lands off your paper.

What slope-intercept form actually tells you before you pick up a pencil

Slope-intercept form writes a line as y = mx + b, and each letter carries exactly one job. The m is the slope, the vertical change per unit of horizontal change. The b is the y-intercept, the y-value where the line crosses the y-axis. That crossing always happens at x = 0, which is why the intercept point is written (0, b) and never (b, 0). Get that pairing backwards and every point after it is wrong.

A quick read of two examples shows how much the equation hands you. With y = 2x + 3, you know immediately that the line passes through (0, 3) and climbs 2 units for every 1 unit right. With y = βˆ’Β½x βˆ’ 4, the line passes through (0, βˆ’4) and falls 1 unit for every 2 units right. No table of values, no solving for points one at a time. The equation is a set of instructions, and those two letters are the first two lines of it.

The counting habit comes from the slope definition itself: m equals the change in y divided by the change in x, written as (yβ‚‚ βˆ’ y₁)/(xβ‚‚ βˆ’ x₁) for any two points on the line. Because a fraction's numerator sits on top, the rise is the top number and the run is the bottom number. That single association β€” top means up-down, bottom means left-right β€” prevents most beginner plotting errors, and it's why writing the slope as a fraction before you count is worth the extra ten seconds.

One boundary to set now. This method needs a linear equation that isn't already solved for x. If your problem hands you 2x + 3y = 12, the slope and intercept aren't visible yet; you convert to y = βˆ’β…”x + 4 first, then follow the same steps. Khan Academy's algebra material covers that rearrangement, and the graphing procedure after it is identical. Also confirm the axes are labeled and the grid squares are equal in size both directions, because uneven grid paper quietly distorts every slope you count.

The 4-step procedure, in the order you actually perform it

Here's the sequence, matched to what you'd do at a desk with graph paper. Work through it once on y = β…”x βˆ’ 1 and the order will stick.

1: Confirm the equation is in y = mx + b form. Rearrange if needed so y sits alone on the left. For y = β…”x βˆ’ 1, m = β…” and b = βˆ’1, so nothing changes. 2: Plot the y-intercept at (0, b). Mark the point (0, βˆ’1): on the y-axis, one grid square below the origin. Draw a small dot and label it if you're showing work. 3: Rewrite the slope as a fraction with a denominator. β…” already is one: rise 2, run 3. An integer slope like 4 becomes 4/1, and a decimal like 0.5 becomes Β½. 4: From the intercept, count the rise then the run, and mark the second point. From (0, βˆ’1), go up 2 to y = 1, then right 3 to x = 3, landing at (3, 1). Plot it, then lay a straightedge through both points and extend the line across the grid in both directions, adding arrowheads at the ends.

If your second point lands off the paper, don't force it. Reverse the count from the intercept β€” go down 2 and left 3 to reach (βˆ’3, βˆ’3), which is still on the same line. A negative slope flips only the rise direction: from y = βˆ’ΒΎx + 2, start at (0, 2), go down 3 and right 4 to (4, βˆ’1). To check the drawing, pick any third point the line appears to pass through, substitute its coordinates into the original equation, and confirm both sides match. If they don't, the slope count or the intercept plot is off.

Converting first when the equation isn't in slope-intercept form

Many textbook and test problems hand you a line in standard form, ax + by = c, and the graphing step is identical once you isolate y. Take 4x βˆ’ 2y = 6. Subtract 4x from both sides to get βˆ’2y = βˆ’4x + 6, then divide every term by βˆ’2, giving y = 2x βˆ’ 3. Now m = 2 and b = βˆ’3, so you plot (0, βˆ’3), count up 2 and right 1, and draw. The division step is where sign errors breed: dividing a negative binomial by a negative flips both signs, and skipping that flip turns a rising line into a falling one.

Watch for the cases where a term vanishes. In 3y = 9x, dividing by 3 gives y = 3x, meaning b = 0 and the line crosses at the origin. In y + 5 = 0, you get y = βˆ’5, a horizontal line, which needs its own treatment because the slope is zero. Students often assume every problem arrives pre-solved; in practice, roughly a third of the graphing exercises in a typical algebra sequence require one rearrangement step first, and the conversion is the only new skill involved.

Decimals and fractions inside the equation need the same care. If you meet y = 0.75x + 2, convert 0.75 to ΒΎ so the rise is 3 and the run is 4, then count. If you meet y = (x + 6)/2, split it into y = Β½x + 3 before plotting. Writing the fraction form on scratch paper before you touch the grid is the habit that makes all three of these cases routine.

Reading the slope's sign, size, and special cases correctly

The sign of m tells you the direction before you plot anything: positive climbs left to right, negative falls. The size of m tells you steepness. A slope of 5/1 is much steeper than 1/5, and a slope of zero produces a flat horizontal line. A vertical line has an undefined slope and can't be written as y = mx + b at all, which is why it appears as x = a constant instead. That's a genuine exception, not a rounding detail.

Equation Slope (m) Y-intercept (b) Direction Second point from rise/run
y = 2x + 3 2 = 2/1 3 Rises (1, 5)
y = βˆ’Β½x + 4 βˆ’Β½ 4 Falls (2, 3)
y = 5 0 5 Horizontal (1, 5)
x = βˆ’2 Undefined None Vertical Not graphable this way

Notice the last row: x = βˆ’2 has no b in the slope-intercept sense, because it never crosses the y-axis at a single finite point. Trying to force it into y = mx + b produces a division by zero. If a problem gives you a vertical line, plot the vertical position directly at x = βˆ’2 and skip the rise-over-run count entirely. For the horizontal case, y = 5 already tells you every point shares a y-value of 5, so you can plot (0, 5) and (3, 5) without counting slope at all β€” but the slope is 0, and saying "no slope" is a common slip worth correcting.

Slope magnitude also lets you sanity-check steepness against the grid. A slope of 10 (10/1) will exit most standard graphing paper within one or two squares horizontally, while a slope of 1/10 barely tilts. If your drawn line looks implausibly steep or shallow for the m you identified, recount before you commit ink, because a misread fraction like 3/2 drawn as 2/3 is the single most frequent plotting mistake in classroom work.

When the counts run off the grid or the numbers get ugly

Off-grid second points are the most common real-world snag, and the fix is to run the slope backwards from the intercept rather than stretching the axes. From (0, 3) with slope βˆ’4/1, counting down 4 and right 1 lands at (1, βˆ’1), which may sit below your paper's bottom edge. Reverse it: up 4 and left 1 gives (βˆ’1, 7), on the same line. Both points define the identical line, and reverse counting is legitimate because slope is direction-independent.

Large integer slopes are another edge case. A slope of 12/1 is technically correct but impractical to count on quarter-inch squares. Scale the fraction down only if it stays exact β€” 12/1 and 6/0.5 aren't helpful, so instead pick a smaller equivalent such as dividing both terms by any common factor. If no clean reduction exists, plot two points using a small table of values instead: choose x = 0, 1, and 2, compute y each time from y = mx + b, and connect. That fallback still uses the same equation and produces the same line.

Ugly fractions deserve a moment. With m = 7/3, the rise of 7 may exceed the visible grid from certain intercepts. Count in the negative direction, or multiply both rise and run by the same integer to move farther without changing the slope's value β€” 14/6 tracks the identical steepness and lets you land a point past the paper's edge with confidence that the line continues correctly. The slope value is a ratio, so any scaled version with the same proportion is the same line.

The failure that actually wrecks an answer isn't off-grid counting; it's an unnoticed axis-scale mismatch. If each grid square is 1 unit vertically but 2 horizontally, a slope of 2 drawn by counting squares looks half as steep as it should. Check the axis labels on both directions before you count, and if the scale differs, convert the run into label units rather than square counts.

Verifying a finished graph without redoing the work

A drawn line is easy to check in under a minute, and the check catches the errors that survive the plotting itself. Substitute a point the line visibly passes through into y = mx + b. For y = β…”x βˆ’ 1, the line should pass through (3, 1): β…”(3) βˆ’ 1 = 2 βˆ’ 1 = 1, which matches. If the substitution fails, the slope count was wrong, not the intercept.

A second check reads the graph back into the equation. Pick two clear crossings on grid intersections, find the change in y and the change in x between them, and divide. If the line is drawn correctly, that quotient equals m and the y-intercept on the graph equals b. This reverse read is also exactly how a teacher or an automated grader checks student graphs, so it's worth doing yourself before submitting.

A third check catches sign errors specifically. Trace leftward from the y-intercept: a positive slope should descend as you go left. If it rises going left, you drew βˆ’m instead of m. That mistake usually comes from counting the rise upward regardless of sign.

Finally, check the line's extent. A common dock in points is to graph only the segment between the two plotted points, leaving a stub rather than a line. Extend with the straightedge in both directions and add arrowheads, since a line, unlike a segment, continues indefinitely. If your answer key or rubric shows a segmented line, you're most likely looking at a plotting exercise that intentionally restricts the domain, so read the instruction carefully.

Putting it to work: a worked example with a negative fractional slope

Run the full procedure on y = βˆ’ΒΎx + 2 to see every step in working order. Start with (0, 2): two squares above the origin on the y-axis. The slope is βˆ’ΒΎ, so from that point go down 3 and right 4, landing at (4, βˆ’1). Mark it, connect, and extend beyond both points. The line should cross the x-axis somewhere between x = 2 and x = 3; solving 0 = βˆ’ΒΎx + 2 gives x = 8/3, about 2.67, so the drawn crossing should sit past the 2.5 mark. If it lands at x = 3, the slope count drifted.

That x-intercept check is the habit worth building because it uses a different part of the line than the two plotted points. Every straight-line graph has three checkpoints available: the y-intercept, the second plotted point, and the x-intercept. Two are plotted and one is predicted, so a small error shows up as the predicted crossing missing its mark even when the plotted points look fine.

Try the same method on y = 3x βˆ’ 4. The intercept is (0, βˆ’4), the slope is 3/1, and the second point is (1, βˆ’1). The x-intercept should be 4/3, so the line crosses just past x = 1. If your drawn crossing lands at x = 1 exactly, you plotted (1, βˆ’1) correctly but the intercept was one square off.

If you're graphing in a tool rather than on paper, the logic is identical but the entry point differs. Desmos and similar graphing calculators expect the equation typed in y = form and draw the line for you; the slope and intercept are still the values that determine the result. Typing "y = 2x + 3" with a hyphen-minus instead of a true minus sign is a common failure β€” some entry fields reject it silently and leave the graph blank.

Common mistakes that produce a wrong line every time

The first mistake is swapping intercept coordinates, plotting (b, 0) on the x-axis instead of (0, b) on the y-axis. With y = 2x + 3, that error puts the first point at (3, 0) rather than (0, 3) and shifts the whole line. Write the intercept as the ordered pair before plotting and the confusion disappears.

The second is counting the run before the rise or counting them in the wrong direction across the axes. Slope is rise over run, and the convention counts vertically first. Mixing the order with a slope like 3/2 β€” up 2 and right 3 instead of up 3 and right 2 β€” draws a different, shallower line that still looks plausible at a glance.

The third is treating "no slope" and "slope of zero" as the same thing. A slope of zero is a horizontal line, entirely graphable with y = b. An undefined slope is a vertical line and cannot be written as y = mx + b. The two produce perpendicular lines, so a question asking about perpendicular slopes will catch this if the graph won't.

A fourth, subtler error is misreading b's sign when it's negative. In y = βˆ’2x βˆ’ 5, the intercept is at (0, βˆ’5), not (0, 5). Negative intercepts sit below the origin, and students in a hurry often plot the positive distance and forget the sign. If your graph's line doesn't match your check-crossing, the intercept sign is the usual culprit after slope direction.

FAQ

What's the fastest way to graph a line from a slope and y-intercept?

Plot (0, b), write the slope as a fraction, then count the rise from the intercept and the run from that height. If you can do all four in under thirty seconds, you've mastered it. For y = 4x + 1, plot (0, 1), count up 4 and right 1 to (1, 5), and connect. Extension in both directions and a quick substitution check should cost another fifteen seconds.

Can a vertical line be graphed with slope-intercept form?

No, because a vertical line has an undefined slope and never crosses the y-axis at a single point. Equations like x = βˆ’2 must be graphed by locating the x-value directly on the horizontal axis and drawing a vertical line through it. If a problem insists on slope-intercept form, that equation isn't convertible, and treating it as a steep line with a huge slope is incorrect.

What if the slope is a whole number like 3?

Rewrite it as 3/1 before counting. The 3 is the rise and the 1 is the run, so from the y-intercept you go up 3 and right 1. It also works to go down 3 and left 1, landing at a second point on the same line. Forgetting the implied denominator of 1 is the most common cause of a line drawn too shallow for its equation.

How do I check whether I graphed the line correctly?

Substitute a point the line visibly crosses into the original equation and confirm both sides match, then predict the x-intercept and compare it with the drawn crossing. Two plotted points plus one predicted crossing gives three independent checks. A steepness that seems off almost always means a misread fraction, and that shows up immediately when the predicted x-intercept misses.

Is the y-intercept point (0, b) or (b, 0)?

It's (0, b), with the zero in the x position because the y-axis is where x equals zero. The point (b, 0) lies on the x-axis and is the x-intercept, a different point entirely. Writing "intercept is 3" and plotting (3, 0) is a common early error; say the ordered pair aloud as "zero, three" and the axes take care of themselves.

What if my slope is a decimal like 1.5?

Convert it to a fraction first: 1.5 is 3/2, so rise 3 and run 2. Decimal slopes are common in real-world problems and word problems involving rates, and converting before plotting keeps the counting exact. Leave it as a decimal and you'll approximate the second point, which usually means the line drifts off its check points.

How does slope-intercept graphing connect to perpendicular and parallel lines?

Parallel lines share the identical slope but sit at different intercepts, so y = 2x + 1 and y = 2x βˆ’ 4 graph as two lines that never meet. Perpendicular lines have slopes that are negative reciprocals, so 2 and βˆ’Β½ produce right-angle crossings. A line with slope 0 and a line with undefined slope are perpendicular, which is another reason not to call both "no slope."

What does the graph of y = 5 look like?

It's a horizontal line through every point with a y-coordinate of 5, including (0, 5), (3, 5), and (βˆ’4, 5). The slope is zero, so the rise is zero for every run, and the y-intercept is 5. It's a full line, not a single point, even though the equation contains only one number.