How to Find Vertical Asymptotes

Last reviewed October 15, 2026

A vertical asymptote is an x-value the graph runs up or down beside forever, without ever reaching. For a fraction, it comes from the denominator — but not every zero of the denominator makes one, and telling which do is most of the skill.

The method in three steps

  1. Factor the numerator and the denominator completely.
  2. Cancel any factor that appears in both. Each one that cancels completely is a hole, not an asymptote — note it and move on.
  3. Set what is left of the denominator equal to zero and solve. Each solution is a vertical asymptote, written as the line x = a.

Step two is the one people skip, and it is the one examiners test. The rest of this page is mostly about why it matters.

Why the denominator

Dividing by a number close to zero gives a huge result: 1/0.1 is 10, 1/0.001 is 1000, 1/0.000001 is a million. If the bottom of a fraction heads towards zero while the top stays away from zero, the whole fraction grows without limit. That unbounded growth, as x approaches one particular value, is what a vertical asymptote is.

So vertical asymptotes live in the denominator. Zeros of the numerator do something quite different: they make the fraction zero, which puts the graph on the x-axis. Those are x-intercepts.

The phrase “while the top stays away from zero” is doing real work. If the top heads to zero at the same moment, the fraction is 0/0 in the limit, and that can settle on an ordinary number. That case is the hole, and it is coming up shortly.

A worked example

Find the vertical asymptotes of

y = (x + 1) / (x² − x − 6)

The denominator factors as (x − 3)(x + 2). The numerator is x + 1, which shares nothing with either, so nothing cancels. Setting the denominator to zero gives x = 3 and x = −2.

Vertical asymptotes at x = −2 and x = 3, dashed. The curve is three separate pieces, and none of them is joined to the next. Open this in the asymptote calculator.

The trap: holes

Now find the vertical asymptotes of

y = (2x² − 8) / (x² + x − 6)

The tempting answer is to solve x² + x − 6 = 0, get x = −3 and x = 2, and stop. That is half wrong. Factor both halves first:

y = 2(x − 2)(x + 2) / ((x + 3)(x − 2))

The (x − 2) cancels, leaving (2x + 4)/(x + 3). That reduced expression is perfectly well behaved at x = 2: it equals 8/5. The original function is undefined there — its denominator really is zero — but it agrees with the reduced one everywhere else. So the graph is a smooth curve with a single point missing at (2, 8/5). That is a hole, not an asymptote.

The only vertical asymptote is x = −3.

One vertical asymptote at x = −3. At x = 2 the denominator is zero too, but the factor cancels, so the graph just has a hole there — drawn hollow. Open this in the asymptote calculator.

The rule of thumb: a zero of the denominator is a vertical asymptote only if it is still a zero of the denominator after cancelling.

The case that catches even careful students

In (x − 1) / (x − 1)², a factor of (x − 1) cancels — but one copy is left in the denominator, giving 1/(x − 1). So x = 1 is still a vertical asymptote. “Something cancelled” does not mean “hole”; what matters is whether the factor survives in the bottom.

Which way the graph goes

Knowing where the asymptotes are is half a sketch. The other half is knowing whether the curve shoots up or down on each side, and there is a quick way to tell.

Count how many times the factor appears. Near x = a, the factor (x − a) is a tiny number that changes sign as x passes through a. Raised to an odd power it still changes sign, so the function goes to +∞ on one side and −∞ on the other. Raised to an even power it is positive on both sides, so the function goes the same way on both.

1/(x − 1)² rises on both sides of x = 1, because the squared factor is positive on both sides. Compare 1/(x − 1), which goes down on the left and up on the right. Open this in the asymptote calculator.

Working out the signs by hand

For a single factor, test a value just either side. Take x = 3 in (x + 1)/((x − 3)(x + 2)):

You only need the signs, never the sizes, which is why a value a tenth either side is enough. The asymptote calculator lists both directions for every asymptote if you want to check.

Asymptotes that are not whole numbers

When the denominator does not factor nicely, solve it anyway. For (3x² + 1)/(2x² − 5), setting 2x² − 5 = 0 gives x² = 5/2, so

x = ±√(5/2) = ±√10 / 2 ≈ ±1.581

Give the exact form, x = ±√10/2, unless the question asks for decimals. For a quadratic denominator that does not factor, the quadratic formula does the same job.

When there are none

A function has no vertical asymptotes if its denominator, after cancelling, is never zero. Two common cases:

Polynomials never have vertical asymptotes: they have no denominator to be zero.

tan, ln and other functions

The same idea — look for where the function divides by something tending to zero, or otherwise blows up — works beyond fractions of polynomials.

For these the asymptote calculator switches to a numerical search and confirms each candidate by checking that the function really does keep growing. It names the simple ones, so tan x comes back with asymptotes at ±π/2 and ±3π/2 rather than ±1.5708.

Mistakes that cost marks

  1. Not cancelling first, and reporting a hole as an asymptote.
  2. Calling it a hole because a factor cancelled, when a copy of that factor is still in the denominator.
  3. Writing the asymptote as a number rather than a line. The answer is x = 3, not 3.
  4. Looking at the numerator. Its zeros are intercepts, not asymptotes.
  5. Drawing the curve joined across the asymptote. The branches on either side are separate pieces.

Questions

Are vertical asymptotes on the top or the bottom of the fraction?

The bottom. A vertical asymptote happens where the function is dividing by something that shrinks to zero, so you find them by setting the denominator equal to zero — after cancelling any factor the top and bottom share. Zeros of the top give x-intercepts, not asymptotes.

Can a graph cross a vertical asymptote?

No. A vertical asymptote sits at an x-value where the function has no value at all, so there is no point on the graph there to cross with. This is the real difference from a horizontal asymptote, which describes end behaviour and can be crossed any number of times.

How many vertical asymptotes can a function have?

Any number. A rational function has at most as many as the degree of its denominator. Other functions can have infinitely many: tan x has one at every odd multiple of π/2, evenly spaced forever in both directions.

Is the x-value of a vertical asymptote in the domain?

Never. The function is undefined there, which is why there is an asymptote. Every vertical asymptote is therefore a point excluded from the domain — but not every excluded point is an asymptote, because a hole is excluded too.

What is the difference between a hole and a vertical asymptote?

Both come from a zero in the denominator. If the factor causing it cancels completely with one in the numerator, the graph has a hole: one missing point, with the curve continuing normally on either side. If it does not cancel, the function genuinely runs off to infinity, and that is a vertical asymptote.

Find the asymptotes of any function