Home/Guides/Vertical asymptotes vs holes
Precalculus

Vertical Asymptotes vs Holes: How to Find Each

Both happen where the denominator is zero, so they're easy to confuse. The difference comes down to one question: does the factor cancel completely, or does a copy survive?

Short answer

Factor the numerator and denominator completely. Any factor that cancels creates a hole at that x-value — find its y-coordinate by plugging x into the simplified function. Any zero of the denominator that's left after cancelling is a vertical asymptote. Holes are single missing points; asymptotes are where the graph shoots to infinity.

The method in four steps

  1. Factor the top and bottom completely. Everything depends on seeing the factors.
  2. Cancel common factors. Each factor that cancels marks a hole at the x-value that makes it zero.
  3. Find each hole's y-value. Substitute the x-value into the simplified function — the original is undefined there.
  4. Set the remaining denominator to zero. Those x-values are the vertical asymptotes.

Hole vs vertical asymptote at a glance

HoleVertical asymptote
CauseFactor cancels from top and bottomDenominator factor that doesn't cancel
GraphOne missing point (open circle)Curve shoots to ±∞
Limit at that xExists (a finite number)Infinite or doesn't exist
How to state itA point: (x, y)A line: x = a

Worked examples

1. One hole, one asymptote

f(x) = x² − 1x² − 3x + 2 = (x−1)(x+1)(x−1)(x−2)

The (x−1) cancels, so there's a hole at x = 1. The simplified function is (x+1)/(x−2), and at x = 1 it gives 2/(−1) = −2. So the hole is at (1, −2). The remaining factor (x−2) gives a vertical asymptote at x = 2.

2. A cancelling factor hidden in a difference of squares

f(x) = x + 3x² − 9 = x + 3(x−3)(x+3)

The (x+3) cancels, leaving 1/(x−3). Hole at x = −3, where the simplified function is 1/(−6), so (−3, −1/6). Vertical asymptote at x = 3.

3. A hole sitting on the x-axis

f(x) = x² − 4x + 4x² − 4 = (x−2)²(x−2)(x+2) = x−2x+2

One (x−2) cancels: hole at x = 2, and the simplified function gives 0/4 = 0, so the hole is at (2, 0). Because a factor of (x−2) is still on top, the graph would have crossed the x-axis there — instead there's a gap right on the axis. Vertical asymptote at x = −2.

The repeated-factor trap

f(x) = x − 1(x − 1)² = 1x − 1

A factor cancels, so it's tempting to call x = 1 a hole. It isn't. After cancelling, (x−1) is still in the denominator, so x = 1 is a vertical asymptote. The rule is about what remains after cancelling, not whether anything cancelled.

Compare the factor counts: more copies on top than bottom gives a hole on the axis (Example 3); equal copies give an ordinary hole; more copies on the bottom gives an asymptote.

What the graph does near an asymptote

To sketch accurately, check which way the function heads on each side using one-sided limits. For 1/(x−2): just left of 2 the denominator is a tiny negative number, so f → −∞; just right it's tiny and positive, so f → +∞. A squared factor like 1/(x−2)² goes to +∞ on both sides, because the square is never negative. More on one-sided limits in how to find limits.

Vertical asymptotes aren't only for fractions: tan x has them at x = π/2 + kπ, and ln x has one at x = 0.

Common mistakes

Practice problems

Find all holes and vertical asymptotes. Tap to reveal.

  1. f(x) = (x² − 9)/(x² + x − 6)
    Show answer

    Hole at (−3, 6/5); vertical asymptote x = 2

  2. f(x) = (x + 1)/(x² − 1)
    Show answer

    Hole at (−1, −1/2); vertical asymptote x = 1

  3. f(x) = 1/(x² + 1)
    Show answer

    Neither — the denominator is never zero

  4. f(x) = (x² + x)/x
    Show answer

    Hole at (0, 1); no vertical asymptote

  5. f(x) = (x − 2)/(x − 2)³
    Show answer

    Vertical asymptote x = 2 (not a hole — (x−2)² remains below)

Questions students ask

Can a function have a hole and a vertical asymptote at the same x?

No. At any single x-value, the factor either fully cancels (hole) or survives in the denominator (asymptote). It can't be both.

Does a hole affect the domain?

Yes. The function is undefined at a hole, so that x-value is excluded from the domain even though the graph only misses a single point.

Can a graph cross a vertical asymptote?

Never — the function isn't defined there. (Graphs can cross horizontal asymptotes, which is a different situation; see horizontal and slant asymptotes.)

Stuck on a rational function?

Scan it with Aheadia and see the factoring, the holes, and the asymptotes worked out step by step.

Download free on iOS