Vertical Asymptote

Find where a rational function approaches infinity by identifying values where the denominator equals zero but the numerator doesn't.

x=a where Q(a)=0,;P(a)0x = a \text{ where } Q(a) = 0, ; P(a) \neq 0

Solve a problem with Vertical Asymptote

Type the problem. The solver will use Vertical Asymptote where Vertical Asymptote is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Vertical Asymptote takes
PP
QQ
aa
xx
Vertical Asymptote
SymbolMeaning
PPThe numerator polynomial of the rational function P(x)Q(x)\frac{P(x)}{Q(x)}; if P(a)=0P(a) = 0 at the same location where Q(a)=0Q(a) = 0, you have a removable discontinuity, not an asymptote.
QQThe denominator polynomial of the rational function P(x)Q(x)\frac{P(x)}{Q(x)}; the zeros of QQ are the only candidates for vertical asymptote locations.
aaThe xx-value where the denominator is zero; if you confuse this with the yy-coordinate, you'll incorrectly write the asymptote as y=ay = a instead of x=ax = a.
xxThe independent variable (the input); vertical asymptote equations always have the form x=ax = a (vertical line), never y=ay = a (horizontal line).

When to use it

Find vertical asymptotes when you need to understand where a rational function grows unbounded or is discontinuous.

Level

Usually taught in: Pre-Calculus

Worked examples

1. Find vertical asymptotes of a simple rational function

Problem

Find all vertical asymptotes of f(x)=1x2f(x) = \frac{1}{x-2}.
  1. x2=0x - 2 = 0

    Set the denominator equal to zero to find where the function is undefined.

  2. x=2x = 2

    Solve by adding 2 to both sides.

  3. P(2)=10P(2) = 1 \neq 0

    Check the numerator value at x=2x = 2; it equals 1, which is nonzero, confirming the asymptote condition.

Answer: x=2x = 2

Since the denominator is zero at x=2x = 2 but the numerator is not, a vertical asymptote exists there. As xx approaches 2, the denominator approaches 0 while the numerator stays at 1, making the function values grow without bound.

2. Find multiple vertical asymptotes from a factored denominator

Problem

Find all vertical asymptotes of f(x)=2xx21f(x) = \frac{2x}{x^2 - 1}.
  1. x21=(x1)(x+1)=0x^2 - 1 = (x-1)(x+1) = 0

    Set the denominator equal to zero and factor as a difference of squares.

  2. x=1 or x=1x = 1 \text{ or } x = -1

    Solve by setting each factor equal to zero.

  3. P(1)=20 and P(1)=20P(1) = 2 \neq 0 \text{ and } P(-1) = -2 \neq 0

    Check the numerator at both values; since P(x)=2xP(x) = 2x is nonzero at both x=1x = 1 and x=1x = -1, both are vertical asymptotes.

Answer: x=1 and x=1x = 1 \text{ and } x = -1

This function has two vertical asymptotes because the denominator factors into two distinct linear factors, each giving a zero where the numerator is nonzero. Rational functions can have multiple asymptotes—one for each zero of the denominator that is not also a zero of the numerator.

3. Find a vertical asymptote in a business word problem

Problem

A coffee shop's daily revenue in dollars is modeled by R(h)=100hh4R(h) = \frac{100h}{h - 4}, where hh is the number of hours open per day. Find the vertical asymptote and explain what it means.
  1. h4=0h - 4 = 0

    Set the denominator equal to zero to find where the revenue function is undefined.

  2. h=4h = 4

    Solve by adding 4 to both sides.

  3. P(4)=1004=4000P(4) = 100 \cdot 4 = 400 \neq 0

    Check the numerator at h=4h = 4; it equals 400, which is nonzero, confirming the vertical asymptote.

Answer: h=4h = 4

The vertical asymptote at h=4h = 4 indicates the model predicts revenue approaching infinity as the shop operates closer to 4 hours per day. In reality, this suggests the mathematical model breaks down at this point—it represents a business constraint where the assumed linear revenue-hours relationship no longer applies beyond a certain operational limit.

Common mistakes

Where Vertical Asymptote usually goes wrong
Answer came out wrong
For f(x)=x+1(x+1)(x2)f(x) = \frac{x+1}{(x+1)(x-2)}, the vertical asymptotes are at x=1x = -1 and x=2x = 2.
Cancel the common factor (x+1)(x+1) to get f(x)=1x2f(x) = \frac{1}{x-2} for x1x \neq -1; the only vertical asymptote is at x=2x = 2.
For f(x)=5x2+4f(x) = \frac{5}{x^2 + 4}, the vertical asymptotes are at x=2x = 2 and x=2x = -2.
Check that the denominator actually has real zeros before concluding there are vertical asymptotes; in this case, there are none.
The vertical asymptote of f(x)=xx3f(x) = \frac{x}{x-3} is the line y=3y = 3.
The vertical asymptote is x=3x = 3. (The horizontal asymptote of this function is y=1y = 1, which is found differently.)
The mistakeWhy it is wrongThe fix
For f(x)=x+1(x+1)(x2)f(x) = \frac{x+1}{(x+1)(x-2)}, the vertical asymptotes are at x=1x = -1 and x=2x = 2.Although the denominator is zero at both points, the numerator is also zero at x=1x = -1, creating a removable discontinuity (a hole), not a vertical asymptote.Cancel the common factor (x+1)(x+1) to get f(x)=1x2f(x) = \frac{1}{x-2} for x1x \neq -1; the only vertical asymptote is at x=2x = 2.
For f(x)=5x2+4f(x) = \frac{5}{x^2 + 4}, the vertical asymptotes are at x=2x = 2 and x=2x = -2.The denominator x2+4x^2 + 4 is always positive (never zero for real xx) since it is always at least 4; therefore, there are no vertical asymptotes.Check that the denominator actually has real zeros before concluding there are vertical asymptotes; in this case, there are none.
The vertical asymptote of f(x)=xx3f(x) = \frac{x}{x-3} is the line y=3y = 3.A vertical asymptote is always a vertical line with equation x=ax = a, not a horizontal line with equation y=ay = a.The vertical asymptote is x=3x = 3. (The horizontal asymptote of this function is y=1y = 1, which is found differently.)

Tips and when to use something else

  • Always factor both the numerator and denominator completely before identifying zeros—you may miss asymptotes or incorrectly classify removable discontinuities as asymptotes.
  • Remember that x=ax = a is a vertical line and is the correct form for a vertical asymptote equation; don't confuse it with y=ay = a, which is horizontal.
  • The condition Q(a)=0Q(a) = 0 AND P(a)0P(a) \neq 0 must BOTH be true for a vertical asymptote; if the numerator is also zero, use the Factor Theorem to identify the hole instead.
  • For contrast, study Horizontal Asymptote to understand how rational functions behave as xx approaches ±\pm\infty, which is fundamentally different from behavior at specific asymptote values.

Frequently asked questions

What's the difference between a vertical asymptote and a hole?
A vertical asymptote occurs when the denominator is zero but the numerator is not, causing the function to grow unbounded. A hole (removable discontinuity) occurs when both numerator and denominator are zero at the same point; you can factor and cancel to find a defined limit at that point. Detect holes by factoring both polynomials and looking for common factors.
Can a rational function have more than one vertical asymptote?
Yes, a function can have as many vertical asymptotes as there are distinct values where the denominator is zero but the numerator is not. For instance, 1x21=1(x1)(x+1)\frac{1}{x^2-1} = \frac{1}{(x-1)(x+1)} has asymptotes at both x=1x = 1 and x=1x = -1.
Why does the function grow unbounded at a vertical asymptote?
At a vertical asymptote x=ax = a, the denominator approaches zero while the numerator approaches a nonzero value. Dividing a fixed nonzero number by increasingly smaller values produces increasingly larger results, so function values approach ±\pm\infty as xx approaches aa.
How do I find vertical asymptotes algebraically?
Set the denominator equal to zero and solve for xx, then verify that the numerator is not zero at each solution. If the numerator is also zero at a point, that's a hole, not an asymptote. Factoring both polynomials first makes this process clearer and helps you identify common factors.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18