Lines & Graphs

Finding x and y Intercepts

To find the x-intercept, set y=0y = 0 and solve for xx. To find the y-intercept, set x=0x = 0 and solve for yy. For a line Ax+By=CAx + By = C, that gives (CA,0)\left(\tfrac{C}{A}, 0\right) and (0,CB)\left(0, \tfrac{C}{B}\right).

x-int: (CA, 0)y-int: (0, CB)for Ax+By=Cx\text{-int: }\left(\tfrac{C}{A},\,0\right)\quad y\text{-int: }\left(0,\,\tfrac{C}{B}\right)\quad\text{for } Ax+By=C

Try it with your numbers

Show every step

The method takes ten seconds once it is automatic. The parts that cost points are signs, fractions, lines that miss an axis, and curves with more than one crossing, and all of those are covered below.

Why does setting a variable to zero find an intercept?

Every point on the x-axis has a height of zero, so it looks like (a,0)(a, 0). Every point on the y-axis has a horizontal position of zero, so it looks like (0,b)(0, b). An intercept is a point where a graph meets an axis, which means one of its coordinates is already known. Putting y=0y = 0 into an equation keeps only the points of the graph that sit on the x-axis. In effect, you are solving the system made of your equation and the equation y=0y = 0.

This also explains the usual mix-up. The name tells you which axis is involved, but the zero goes in the other coordinate. An x-intercept lies on the x-axis, so its yy is 00. A quick way to hold it: set the other variable to zero.

An intercept is a point, not a number. Many textbooks say “the x-intercept is 4” and mean (4,0)(4, 0), so follow the wording of your course, but writing the full point is never wrong. If plotting points still feels shaky, plotting points on the coordinate plane covers how (4,0)(4, 0) and (0,4)(0, 4) land in different places.

Quick check

The point (0,−2)(0, -2) lies on a graph. Is it an x-intercept or a y-intercept?

How do you find x and y intercepts from an equation?

Line 3x − 4y = 12 on a grid with intercepts (4, 0) and (0, −3) and the wrong point (0, 3) circled
The y-intercept of 3x − 4y = 12 is (0, −3), and substituting back into the equation exposes the sign slip.

The derivation for standard form is two lines long. Start with Ax+By=CAx + By = C. Setting y=0y = 0 leaves Ax=CAx = C, and setting x=0x = 0 leaves By=CBy = C:

x=CA,y=CBx = \frac{C}{A}, \qquad y = \frac{C}{B}

This is why standard form of a line is the friendliest form for intercepts. You can cover the yy-term with a finger and solve what is left, then cover the xx-term and do it again.

Example 1. Find the intercepts of 3x−4y=123x - 4y = 12.

  1. For the x-intercept, set y=0y = 0: 3x=123x = 12, so x=4x = 4. The point is (4,0)(4, 0).
  2. For the y-intercept, set x=0x = 0: −4y=12-4y = 12, so y=−3y = -3. The point is (0,−3)(0, -3).
  3. Check both in the original equation: 3(4)−4(0)=123(4) - 4(0) = 12 and 3(0)−4(−3)=123(0) - 4(-3) = 12.

The trap here is the minus sign in front of the 4y4y. Students write y=3y = 3 because they divide 1212 by 44 and forget the sign. Dividing 1212 by −4-4 gives −3-3, and the substitution check catches it every time.

The cover-up shortcut has two limits. It fails when A=0A = 0 or B=0B = 0, because it would divide by zero. It also gives a single point (0,0)(0, 0) when C=0C = 0. Both cases get their own section below.

Finding x and y intercepts with negatives and fractions

Negatives and fractions change nothing about the method, only the arithmetic. Keep fractions as fractions until the end, and do the division by a negative as its own step.

Example 2. Find the intercepts of −5x+2y=7-5x + 2y = 7.

Set y=0y = 0: −5x=7-5x = 7, so x=−75x = -\tfrac{7}{5}. The x-intercept is (−75,0)\left(-\tfrac{7}{5}, 0\right).

Set x=0x = 0: 2y=72y = 7, so y=72y = \tfrac{7}{2}. The y-intercept is (0,72)\left(0, \tfrac{7}{2}\right).

Check: −5(−75)=7-5\left(-\tfrac{7}{5}\right) = 7 and 2(72)=72\left(\tfrac{7}{2}\right) = 7. Both work.

When the equation already has a fraction, clear it first. Take y=23x−5y = \tfrac{2}{3}x - 5. Setting y=0y = 0 gives 0=23x−50 = \tfrac{2}{3}x - 5. Multiply every term by 33 to get 0=2x−150 = 2x - 15, so x=152x = \tfrac{15}{2}. The y-intercept is read straight off as (0,−5)(0, -5), because the equation is in slope-intercept form.

Shortcut for y = mx + b

The y-intercept is (0,b)(0, b) and the x-intercept is (−bm,0)\left(-\tfrac{b}{m}, 0\right) when m≠0m \neq 0. For y=23x−5y = \tfrac{2}{3}x - 5 that is −−52/3=152-\tfrac{-5}{2/3} = \tfrac{15}{2}.

Can a line have no x or y intercept?

Yes, and this is where the cover-up shortcut breaks. A line only has an intercept on an axis it actually crosses. These cases come up constantly on tests:

  • A horizontal line y=ky = k with k≠0k \neq 0 has a y-intercept (0,k)(0, k) and no x-intercept.
  • A vertical line x=hx = h with h≠0h \neq 0 has an x-intercept (h,0)(h, 0) and no y-intercept.
  • A line through the origin, such as y=2xy = 2x or 3x+5y=03x + 5y = 0, has the single intercept point (0,0)(0, 0) serving as both.
  • The line y=0y = 0 is the x-axis itself, so every point on it is an x-intercept.

The reason is geometric. A horizontal line is parallel to the x-axis, and parallel lines never meet. Algebraically, y=4y = 4 has no xx in it, so setting y=0y = 0 produces the false statement 0=40 = 4. Read more about this family in horizontal and vertical lines.

Lines through the origin deserve a flag because every direct variation y=kxy = kx is one. With both intercepts stacked on (0,0)(0, 0), the intercepts give you only one point, so you must find a second point (try x=1x = 1) before you can graph it.

Quick check

Find all intercepts of y=−6y = -6.

How to find intercepts from a graph, table or two points

From a graph, read the points where the line crosses each axis. Trust the reading only when the crossing lands on a grid intersection. If it falls between grid lines, find the equation and compute the intercept instead of estimating.

From a table, the y-intercept is the row where x=0x = 0, and the x-intercept is the row where y=0y = 0. Often neither row is shown. In that case, find the constant change in yy for each step in xx, and extend the pattern. A table of values of a line always continues at a steady rate, so extending it is safe.

From two points, build the line first. Example 3. A line passes through (2,5)(2, 5) and (4,9)(4, 9).

The slope is 9−54−2=2\tfrac{9 - 5}{4 - 2} = 2. Substitute (2,5)(2, 5) into y=2x+by = 2x + b: 5=4+b5 = 4 + b, so b=1b = 1 and the line is y=2x+1y = 2x + 1. The y-intercept is (0,1)(0, 1). For the x-intercept, set 0=2x+10 = 2x + 1, so x=−12x = -\tfrac{1}{2}, giving (−12,0)\left(-\tfrac{1}{2}, 0\right). The full process is in the equation of a line through two points. Test the result: y=2(4)+1=9y = 2(4) + 1 = 9, which matches the second point.

Try this: A table shows (1,7)(1, 7), (2,5)(2, 5), (3,3)(3, 3). Without writing an equation, continue the pattern in both directions to find the y-intercept and x-intercept (one is a half-step between table values). Then confirm with y=−2x+9y = -2x + 9.

How do you graph a line using its intercepts?

Plot the two intercepts, lay a ruler through them, and draw the line past both points. For Example 1, that means plotting (4,0)(4, 0) and (0,−3)(0, -3). The full routine is on the page about graphing lines using x and y intercepts.

There is a neat reason this works so cleanly. Divide both sides of Ax+By=CAx + By = C by CC (when C≠0C \neq 0) to get intercept form:

xa+yb=1,a=CA,b=CB\frac{x}{a} + \frac{y}{b} = 1, \qquad a = \frac{C}{A},\quad b = \frac{C}{B}

Here aa is the x-intercept and bb is the y-intercept, sitting in plain view in the denominators. The equation x4+y−3=1\tfrac{x}{4} + \tfrac{y}{-3} = 1 is Example 1 in disguise.

The method has weak spots. If C=0C = 0, both intercepts collapse to the origin and you need another point. If the two intercepts are very close together, a tiny slip in your ruler changes the slope a lot, so plot a third point as a check. The same two points can also draw the boundary line of an inequality, which is the first step in graphing linear inequalities.

How do you find intercepts of a parabola or curve?

The rule does not change for curves: x=0x = 0 for the y-intercept and y=0y = 0 for the x-intercepts. The difference is the number of answers. For y=ax2+bx+cy = ax^2 + bx + c, the y-intercept is always (0,c)(0, c), and the x-intercepts come from solving ax2+bx+c=0ax^2 + bx + c = 0.

Example 4. Find the intercepts of y=x2−2x−8y = x^2 - 2x - 8.

The y-intercept is (0,−8)(0, -8). For the x-intercepts, factor x2−2x−8=(x−4)(x+2)=0x^2 - 2x - 8 = (x - 4)(x + 2) = 0, so x=4x = 4 or x=−2x = -2. The intercepts are (4,0)(4, 0) and (−2,0)(-2, 0). Check x=4x = 4: 16−8−8=016 - 8 - 8 = 0. Check x=−2x = -2: 4+4−8=04 + 4 - 8 = 0.

The most common mistake is finding one root and stopping. If the trinomial does not factor, use the formula, as practiced in quadratic formula practice problems.

Count x-intercepts with the discriminant

Compute b2−4acb^2 - 4ac. A positive value means two x-intercepts, zero means one (the vertex touches the axis), and a negative value means none.

For y=x2+2x+5y = x^2 + 2x + 5, the discriminant is 4−20=−164 - 20 = -16, so the parabola never reaches the x-axis. It still has a y-intercept, (0,5)(0, 5).

Graph x-intercepts y-intercepts
Line y=mx+by = mx + b, m≠0m \neq 0 1 1
Parabola y=ax2+bx+cy = ax^2 + bx + c 0, 1 or 2 1
Circle x2+y2=25x^2 + y^2 = 25 2 2
Curve y=log⁡2xy = \log_2 x 1, at (1,0)(1, 0) 0

The pattern behind the table: a function can have many x-intercepts but never more than one y-intercept, because x=0x = 0 has only one output. A circle is not a function, so it can cross the y-axis twice.

Quick check

How many x-intercepts does y=x2−6x+9y = x^2 - 6x + 9 have, and where?

What do x and y intercepts mean in real life?

In a model, the y-intercept is the starting value and the x-intercept is when the quantity runs out or breaks even. Suppose a tank holds 500500 gallons and drains at 2020 gallons per minute, so V=500−20tV = 500 - 20t. The y-intercept is (0,500)(0, 500), the starting volume. Setting V=0V = 0 gives 20t=50020t = 500, so t=25t = 25, and the x-intercept (25,0)(25, 0) says the tank is empty after 2525 minutes. The slope of −20-20 is the rate of change, the drain rate itself.

Profit models work the same way. If P=12n−300P = 12n - 300 gives profit from selling nn items, the y-intercept (0,−300)(0, -300) is the start-up cost, a loss before any sales. The x-intercept comes from 12n=30012n = 300, so n=25n = 25. Selling 2525 items is the break-even point.

Check whether an intercept is physically possible before you report it. A negative time or a negative number of items has no meaning, so in context the intercepts often become the endpoints of the sensible domain. Here, 0≤t≤250 \le t \le 25 is the only stretch that describes a real tank.

How can you check x and y intercepts quickly?

The fastest check is substitution: plug each point back into the original equation and see that it holds. Do it with the original equation, not your rearranged version, so that an algebra slip cannot hide.

A sharper check uses the slope. The line through (a,0)(a, 0) and (0,b)(0, b) has slope b−00−a=−ba\tfrac{b - 0}{0 - a} = -\tfrac{b}{a}. In Example 1 that is −−34=34-\tfrac{-3}{4} = \tfrac{3}{4}, and solving 3x−4y=123x - 4y = 12 for yy gives y=34x−3y = \tfrac{3}{4}x - 3, a perfect match. The slope formula is doing the work behind that shortcut.

This gives a free sign test. A positive slope means the two intercepts have opposite signs (Example 3: −12-\tfrac{1}{2} and 11). A negative slope means they share a sign (the tank: 2525 and 500500). If your signs disagree with the slope, an arithmetic error has crept in.

Finally, look at how the answer is written. An x-intercept has its zero in the second slot, (4,0)(4, 0), and a y-intercept has it in the first, (0,−3)(0, -3). Swapped coordinates are the quietest way to lose a mark on an otherwise perfect problem.

Practice problems

0 of 5 solved

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

  2. Find the x- and y-intercepts of 5x+2y=205x + 2y = 20.

  3. Find the x- and y-intercepts of 4x−6y=94x - 6y = 9.

  4. A line passes through (−2,−7)(-2, -7) and (1,2)(1, 2). Find its x- and y-intercepts.

  5. Find all intercepts of y=2x2+x−6y = 2x^2 + x - 6.

Common questions

How do you find the x and y intercepts of an equation?

For the x-intercept, replace yy with 00 and solve for xx. For the y-intercept, replace xx with 00 and solve for yy. Write each answer as a point: (a,0)(a, 0) and (0,b)(0, b).

What is the difference between an x-intercept and a y-intercept?

An x-intercept is where a graph crosses the x-axis, so its y-coordinate is 00. A y-intercept is where it crosses the y-axis, so its x-coordinate is 00.

Can a graph have more than one y-intercept?

A function cannot, because each input x=0x = 0 gives only one output. A relation that is not a function, such as the circle x2+y2=25x^2 + y^2 = 25, can cross the y-axis twice, at (0,5)(0, 5) and (0,−5)(0, -5).

What are the intercepts of a line through the origin?

Both intercepts are the same point, (0,0)(0, 0). Lines such as y=2xy = 2x and 3x+5y=03x + 5y = 0 work this way, so you need a second point to graph them.

Is the x-intercept the same as a zero or root?

Yes. A zero or root of f(x)f(x) is a value of xx where f(x)=0f(x) = 0, and the matching point (x,0)(x, 0) is an x-intercept.

How do you find intercepts quickly from standard form?

For Ax+By=CAx + By = C, divide CC by AA for the x-intercept and by BB for the y-intercept. This gives (CA,0)\left(\tfrac{C}{A}, 0\right) and (0,CB)\left(0, \tfrac{C}{B}\right), as long as AA, BB and CC are not zero.

Up next