Lines & Graphs

Graphing Lines Using x and y Intercepts

To graph a line using intercepts, set y=0y=0 to find the x-intercept, set x=0x=0 to find the y-intercept, plot those two points and draw the line through them. For a line Ax+By=CAx+By=C, the points are (CA,0)\left(\frac{C}{A},0\right) and (0,CB)\left(0,\frac{C}{B}\right).

(CA,0) and (0,CB)\left(\frac{C}{A},0\right)\text{ and }\left(0,\frac{C}{B}\right)

Try it with your numbers

Show every step

The method is fast because each point costs one division. It also fails quietly in a few cases (lines through the origin, horizontal and vertical lines, intercepts that sit almost on top of each other), and knowing those cases is what separates a clean graph from a crooked one.

Why does graphing using intercepts work?

Two points determine exactly one line, so any two points on the line are enough. Intercepts are the cheapest points to compute. A point on the x-axis has y=0y=0, and a point on the y-axis has x=0x=0. In either case one term of the equation vanishes and a two-variable equation collapses into a one-step problem.

For Ax+By=CAx+By=C, the two substitutions look like this:

y=0:Ax=C  ⇒  x=CAx=0:By=C  ⇒  y=CBy=0:\quad Ax=C \;\Rightarrow\; x=\frac{C}{A} \qquad\qquad x=0:\quad By=C \;\Rightarrow\; y=\frac{C}{B}

The division also shows when the method breaks. If A=0A=0 or B=0B=0, you would divide by zero, and the line is horizontal or vertical. If C=0C=0, both answers are 00 and the two intercepts merge into the origin. Those three situations come back below. The lesson on finding x and y intercepts covers reading them off a picture, and standard form is where this method is most at home, since Ax+By=CAx+By=C is built for it.

Quick check

Find the x-intercept of 5x+10y=205x+10y=20.

How do you graph a line using x and y intercepts?

The routine has five moves, and the third one is the one students skip.

  1. Set y=0y=0 and solve for xx. Write the result as the point (x,0)(x,0).
  2. Set x=0x=0 and solve for yy. Write the result as the point (0,y)(0,y).
  3. Find one extra point, as a check.
  4. Plot the points on the coordinate plane.
  5. Draw a straight line through all of them, extending past the intercepts, with arrows on both ends.

Example 1. Graph 3x+2y=123x+2y=12.

For the x-intercept, set y=0y=0:

3x+2(0)=12  ⇒  3x=12  ⇒  x=4⇒(4,0)3x+2(0)=12 \;\Rightarrow\; 3x=12 \;\Rightarrow\; x=4 \quad\Rightarrow\quad (4,0)

For the y-intercept, set x=0x=0:

3(0)+2y=12  ⇒  2y=12  ⇒  y=6⇒(0,6)3(0)+2y=12 \;\Rightarrow\; 2y=12 \;\Rightarrow\; y=6 \quad\Rightarrow\quad (0,6)

For a check point, choose x=2x=2: 3(2)+2y=123(2)+2y=12, so 2y=62y=6 and y=3y=3. The point (2,3)(2,3) should sit on the line. Test it with the slope formula. From (4,0)(4,0) to (0,6)(0,6) the slope is 6−00−4=−32\frac{6-0}{0-4}=-\frac{3}{2}. From (4,0)(4,0) to (2,3)(2,3) it is 3−02−4=−32\frac{3-0}{2-4}=-\frac{3}{2}. Same slope, same line.

The classic slip is swapping coordinates. The x-intercept always has the zero in the second slot, (4,0)(4,0), and the y-intercept has it in the first, (0,6)(0,6). If a plotted point is on the wrong axis, the whole line is wrong while every calculation looks fine.

Graphing using intercepts with negatives and fractions

Graph of 4x − 3y = 6 showing both intercepts and the free third point (3, 2)
For 4x − 3y = 6, the intercepts (1.5, 0) and (0, −2) give the check point (2a, −b) = (3, 2) with no extra solving.

Negatives cause most lost points. Take 2x−5y=102x-5y=10. Setting y=0y=0 gives x=5x=5. Setting x=0x=0 gives −5y=10-5y=10, so y=−2y=-2, not 22. The minus sign belongs to the coefficient, and dividing by it flips the sign of the answer. The line crosses the y-axis below the origin.

Example 2. Graph 4x−3y=64x-3y=6.

Set y=0y=0:

4x=6  ⇒  x=64=32⇒(32,0)4x=6 \;\Rightarrow\; x=\frac{6}{4}=\frac{3}{2} \quad\Rightarrow\quad \left(\tfrac{3}{2},0\right)

Set x=0x=0:

−3y=6  ⇒  y=−2⇒(0,−2)-3y=6 \;\Rightarrow\; y=-2 \quad\Rightarrow\quad (0,-2)

Plot (32,0)\left(\frac{3}{2},0\right) exactly halfway between 11 and 22 on the x-axis. Check with x=3x=3: 4(3)−3y=64(3)-3y=6, so −3y=−6-3y=-6 and y=2y=2. The point (3,2)(3,2) should lie on the line. Slope from (32,0)\left(\frac{3}{2},0\right) to (0,−2)(0,-2) is −2−00−32=43\frac{-2-0}{0-\frac{3}{2}}=\frac{4}{3}, and from (32,0)\left(\frac{3}{2},0\right) to (3,2)(3,2) it is 232=43\frac{2}{\frac{3}{2}}=\frac{4}{3}. Both agree.

A free third point

If the intercepts are (a,0)(a,0) and (0,b)(0,b), the point (2a,−b)(2a,-b) is always on the line. For Example 2 that is (2⋅32, 2)=(3,2)\left(2\cdot\frac{3}{2},\,2\right)=(3,2), with no extra solving.

When the fraction is ugly, such as 154\frac{15}{4}, do not round it to a convenient grid line. Mark it a little under 4, or scale the axes so that each square is worth 12\frac{1}{2} or 14\frac{1}{4}. A rounded intercept tilts the line.

What is intercept form, and why is it faster?

Divide both sides of Ax+By=CAx+By=C by CC (when C≠0C\neq 0) and simplify each fraction:

x C/A +y C/B =1or, more simply,xa+yb=1\frac{x}{\,C/A\,}+\frac{y}{\,C/B\,}=1 \qquad\text{or, more simply,}\qquad \frac{x}{a}+\frac{y}{b}=1

Here aa is the x-intercept and bb is the y-intercept. The denominators are the intercepts, so you can read them without solving anything. Turn 3x+2y=123x+2y=12 into x4+y6=1\frac{x}{4}+\frac{y}{6}=1 and the points (4,0)(4,0) and (0,6)(0,6) are in plain sight.

The form also works backward, which is useful when a problem hands you the intercepts.

Example 3. Write the equation of the line through (5,0)(5,0) and (0,−3)(0,-3).

x5+y−3=1\frac{x}{5}+\frac{y}{-3}=1

Multiply every term by 1515 to clear denominators:

3x−5y=153x-5y=15

Check both points: 3(5)−5(0)=153(5)-5(0)=15 and 3(0)−5(−3)=153(0)-5(-3)=15. Both hold. The general method in equation of a line through two points always works, but when both points sit on the axes, this shortcut saves a full slope calculation.

Try this: Rewrite 5x+4y=205x+4y=20 in intercept form by dividing by 2020, read both intercepts, then confirm them by setting each variable to 00.

Finding intercepts when the line is in slope-intercept form

For y=mx+by=mx+b, the y-intercept is free: it is (0,b)(0,b). The x-intercept needs one step. Set y=0y=0 and solve:

0=mx+b  ⇒  x=−bm0=mx+b \;\Rightarrow\; x=-\frac{b}{m}

For y=23x−4y=\frac{2}{3}x-4, the y-intercept is (0,−4)(0,-4) and the x-intercept is x=−−42/3=6x=-\frac{-4}{2/3}=6, so (6,0)(6,0). Plot both and the line is done. Often it is quicker to start at (0,−4)(0,-4) and use the slope, a rise of 22 and a run of 33, as described in slope-intercept form. Intercepts win when the slope is a messy fraction or when the question asks specifically where the line meets the x-axis.

That x-intercept has a second identity: it is the solution of mx+b=0mx+b=0. Intercepts are where graphing and equation solving meet. For curves, the same idea turns x-intercepts into roots, which is exactly what the quadratic formula finds.

Sign trap in −bm-\frac{b}{m}

For y=−34x+3y=-\frac{3}{4}x+3, the x-intercept is −3−3/4=4-\frac{3}{-3/4}=4. A positive bb with a negative mm gives a positive intercept. Substitute back to be sure: −34(4)+3=0-\frac{3}{4}(4)+3=0.

What if a line has only one intercept?

Some lines hand you a single point. Two families cause it, and each has a clear signal in the equation.

Lines through the origin. When C=0C=0, as in 2x+3y=02x+3y=0 or y=−3xy=-3x, both substitutions return (0,0)(0,0). One point cannot fix a line, so pick any other xx. For 2x+3y=02x+3y=0, let x=3x=3: 6+3y=06+3y=0, so y=−2y=-2, giving (3,−2)(3,-2). These equations are exactly the form y=kxy=kx from direct variation, so every direct variation graph passes through the origin.

Horizontal and vertical lines. The line y=3y=3 never touches the x-axis, so it has no x-intercept, and its y-intercept is (0,3)(0,3). The line x=−2x=-2 has the x-intercept (−2,0)(-2,0) and no y-intercept. In standard form this is the A=0A=0 or B=0B=0 case, where CA\frac{C}{A} or CB\frac{C}{B} means dividing by zero. The lesson on horizontal and vertical lines covers drawing them directly, since the single intercept is all the graph needs.

Quick check

How many x-intercepts does y=−4y=-4 have, and what is its y-intercept?

When are intercepts a poor choice for graphing?

A hand-drawn line is only as accurate as the distance between the points that define it. A tiny wobble at one point turns into a large tilt if the points are close together. So intercepts are a poor choice when they are almost the same point. For 9x+7y=59x+7y=5 they are about (0.56,0)(0.56,0) and (0,0.71)(0,0.71), squeezed into a corner of the grid. Any slip in plotting rotates the line noticeably.

The fix is to choose points far apart, for example by picking values of xx that make yy a whole number. A table of values is the better tool here. The same advice applies in reverse for huge intercepts, such as 2x+y=10002x+y=1000: choose a scale of 100100 per square or use points that fit your window.

Equation Intercepts Verdict
3x+2y=123x+2y=12 (4,0)(4,0) and (0,6)(0,6) Ideal
9x+7y=59x+7y=5 about (0.56,0)(0.56,0) and (0,0.71)(0,0.71) Too close, use a table
y=−3xy=-3x (0,0)(0,0) only Need a second point
x=−2x=-2 (−2,0)(-2,0) only Vertical line

How can you check a line graphed with intercepts?

Three checks catch nearly every error, and each takes under ten seconds.

  • Third point. Use (2a,−b)(2a,-b) or any point you compute, and see whether it falls on your ruler’s edge.
  • Back-substitution. Put each intercept into the original equation. Both must give CC.
  • Slope and sign test. The slope of Ax+By=CAx+By=C is −AB-\frac{A}{B}, which equals −ba-\frac{b}{a} using the intercepts. If both intercepts are positive or both negative, the line must fall from left to right. If they have opposite signs, it must rise.

The sign test is the quickest sanity check. In Example 1, the intercepts 44 and 66 are both positive, so the slope is negative, and −32-\frac{3}{2} is. In Example 2, the intercepts 32\frac{3}{2} and −2-2 have opposite signs, so the slope is positive, and 43\frac{4}{3} is. A graph that rises when the sign test says it should fall has an intercept on the wrong side of an axis.

Quick check

A line has intercepts (2,0)(2,0) and (0,5)(0,5). What is its slope?

Where is graphing with intercepts used in real life?

Intercepts have a direct meaning in budget and mixture problems. Suppose adult tickets cost $8, child tickets cost $5, and the budget is exactly $40. With xx adult tickets and yy child tickets, the cost equation is 8x+5y=408x+5y=40. Setting each variable to zero gives (5,0)(5,0) and (0,8)(0,8): five adult tickets and no child tickets, or eight child tickets and no adult tickets. Each intercept is the extreme case where all the money goes to one item.

Only the part of the line in the first quadrant matters here, because a negative number of tickets is meaningless. The page on the four quadrants explains why that region is where real quantities live. The slope −85-\frac{8}{5} also carries meaning: every extra adult ticket costs the same as 1.61.6 child tickets.

If the budget is a limit rather than an exact amount, 8x+5y≤408x+5y\le 40, the same line becomes a boundary, and the region below it shows every affordable combination. Intercepts are the quickest way to draw that boundary, as shown in graphing linear inequalities. Break-even charts, phone-plan comparisons and mixing problems all use the same two-point shortcut.

Practice problems

0 of 5 solved

  1. Find the x- and y-intercepts of 2x+y=62x+y=6.

  2. Graph 4x−3y=124x-3y=12 using intercepts. State the two points you plot.

  3. Find the intercepts of 2x+5y=152x+5y=15 and one extra point to check the line.

  4. Find the intercepts of y=−34x+3y=-\frac{3}{4}x+3.

  5. A line has x-intercept (−4,0)(-4,0) and y-intercept (0,6)(0,6). Write its equation in the form Ax+By=CAx+By=C with A>0A>0.

Common questions

How do you graph a line using intercepts?

Set y=0y=0 and solve for xx to get the x-intercept, then set x=0x=0 and solve for yy to get the y-intercept. Plot both points and draw a straight line through them, extending it past the points with arrows on both ends. A third point is a good safety check.

Can every line be graphed with intercepts?

No. A line through the origin has one intercept, (0,0)(0,0), so a second point is needed. Horizontal and vertical lines cross only one axis, so they also give only one intercept.

How do you find the x-intercept from an equation?

Replace yy with 00 and solve for xx. For Ax+By=CAx+By=C this gives x=CAx=\frac{C}{A}. Write the answer as the point (x,0)(x,0).

Why do you need a third point?

Two points already define the line, so the third point is a check. If it does not lie on your ruler's edge, an intercept was miscalculated or misplotted. For the line through (a,0)(a,0) and (0,b)(0,b), the point (2a,−b)(2a,-b) is an easy third point.

What do you do when the intercepts are fractions?

Plot them at their exact position between grid lines, for example 32\frac{3}{2} sits halfway between 1 and 2. If the fractions are ugly or the intercepts are very close together, choose two other points that are farther apart.

Is the y-intercept the same as the constant term?

Only when the equation is in the form y=mx+by=mx+b, where the y-intercept is (0,b)(0,b). In standard form Ax+By=CAx+By=C, the y-intercept is CB\frac{C}{B}, not CC.

Up next