Mathematics

How to Find Horizontal and Vertical Asymptotes Using Limits

Updated 12 October 2026

At a glance

  1. 1. Find the candidates

    Look for zeros of the denominator, after cancelling common factors.

  2. 2. Check one-sided limits

    x = a is a vertical asymptote if f → ±∞ as x → a from either side.

  3. 3. Take limits at ±∞

    Divide by the highest power of x and evaluate both directions.

  4. 4. Report each line

    Each finite limit L at ±∞ gives a horizontal asymptote y = L.

Both kinds of asymptote are defined by limits. The method is to compute the right limits, not to memorise shortcuts, although the shortcuts for rational functions follow from those limits.

Definitions

Horizontal asymptote. The line y=Ly = L is a horizontal asymptote of ff if

lim⁡x→∞f(x)=Lorlim⁡x→−∞f(x)=L.\lim_{x \to \infty} f(x) = L \quad \text{or} \quad \lim_{x \to -\infty} f(x) = L.

The two directions can give different values, so a function can have two different horizontal asymptotes.

Vertical asymptote. The line x=ax = a is a vertical asymptote of ff if at least one of

lim⁡x→a−f(x),lim⁡x→a+f(x)\lim_{x \to a^-} f(x), \qquad \lim_{x \to a^+} f(x)

is +∞+\infty or −∞-\infty.

Method

  1. Vertical: find the points where ff is undefined or “blows up”, usually zeros of a denominator or of the argument of a logarithm. At each candidate aa, compute the one-sided limits.
  2. Horizontal: compute lim⁡x→∞f(x)\lim_{x \to \infty} f(x) and lim⁡x→−∞f(x)\lim_{x \to -\infty} f(x). For rational functions, divide numerator and denominator by the highest power of xx in the denominator.

Worked example 1: a rational function

f(x)=2x2+3x2−4f(x) = \frac{2x^2 + 3}{x^2 - 4}

Horizontal. Divide top and bottom by x2x^2:

lim⁡x→±∞2+3/x21−4/x2=2+01−0=2.\lim_{x \to \pm\infty} \frac{2 + 3/x^2}{1 - 4/x^2} = \frac{2 + 0}{1 - 0} = 2.

So y=2y = 2 is a horizontal asymptote in both directions.

Vertical. The denominator x2−4=(x−2)(x+2)x^2 - 4 = (x-2)(x+2) is zero at x=±2x = \pm 2, and the numerator there is 2(4)+3=11≠02(4) + 3 = 11 \neq 0. Check the signs at x=2x = 2:

  • x→2+x \to 2^+: the denominator is a small positive number, so f(x)→+∞f(x) \to +\infty.
  • x→2−x \to 2^-: the denominator is a small negative number, so f(x)→−∞f(x) \to -\infty.

So x=2x = 2 is a vertical asymptote, and by symmetry (ff is even) so is x=−2x = -2.

Worked example 2: different limits at ±∞

g(x)=3xx2+1g(x) = \frac{3x}{\sqrt{x^2 + 1}}

For x>0x > 0, x2+1=x1+1/x2\sqrt{x^2 + 1} = x\sqrt{1 + 1/x^2}, so g(x)=31+1/x2→3g(x) = \dfrac{3}{\sqrt{1 + 1/x^2}} \to 3.

For x<0x < 0, x2=∣x∣=−x\sqrt{x^2} = |x| = -x, so x2+1=−x1+1/x2\sqrt{x^2+1} = -x\sqrt{1 + 1/x^2} and g(x)→−3g(x) \to -3.

So gg has two horizontal asymptotes: y=3y = 3 as x→∞x \to \infty and y=−3y = -3 as x→−∞x \to -\infty. It has no vertical asymptote, because the denominator is never zero.

Worked example 3: a hole, not an asymptote

h(x)=x2−1x−1h(x) = \frac{x^2 - 1}{x - 1}

The denominator vanishes at x=1x = 1, but h(x)=x+1h(x) = x + 1 for x≠1x \ne 1, so lim⁡x→1h(x)=2\lim_{x\to1} h(x) = 2, which is finite. The graph has a removable discontinuity (a hole) at (1,2)(1, 2), not a vertical asymptote. Always cancel common factors first.

Shortcuts for rational functions

For f=P/Qf = P/Q with deg⁡P=m\deg P = m and deg⁡Q=n\deg Q = n:

DegreesHorizontal asymptote
m<nm < ny=0y = 0
m=nm = ny=leading coefficient of Pleading coefficient of Qy = \dfrac{\text{leading coefficient of } P}{\text{leading coefficient of } Q}
m>nm > nnone. If m=n+1m = n + 1, there is a slant asymptote, found by polynomial division.

These are just the results of the limit calculation above.

Common mistakes

  • Only checking x→∞x \to \infty. Square roots and exponentials often behave differently as x→−∞x \to -\infty.
  • Declaring every zero of the denominator an asymptote without checking for cancellation.
  • Thinking a graph can’t cross a horizontal asymptote. It can: sin⁡xx\dfrac{\sin x}{x} crosses y=0y = 0 infinitely often. A graph can never cross a vertical asymptote, because ff is undefined there.

References

  1. Stewart, J. (2015). Calculus (8th ed.), Sections 2.2 and 2.6. Cengage.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.