Skip to content
ihateDesmos

Asymptotes

9 min read · Updated 6 November 2026

An asymptote is a line that a graph gets closer and closer to. Vertical asymptotes are where a function blows up. Horizontal and slant asymptotes describe what it does far out to the left and right.

What is an asymptote?

An asymptote is a straight line that a curve approaches as it heads off to infinity. The graph of y = 1/x has two: as x gets close to 0, the curve shoots up or down along the y-axis (a vertical asymptote), and as x gets large, the curve flattens toward the x-axis (a horizontal asymptote).

−4−2246850
Open in calculator
y=1x−2+3
has a vertical asymptote at x = 2 and a horizontal asymptote at y = 3.

How to find vertical asymptotes

  1. Factor the top and bottom, and cancel any common factors.
  2. Set what is left on the bottom equal to zero, and solve.

For (x + 1)/(x² − 4): the bottom factors as (x − 2)(x + 2), and nothing cancels. So the vertical asymptotes are x = 2 and x = −2.

A graph can never cross a vertical asymptote, because the function isn’t defined there.

How to find horizontal asymptotes

Compare the degree (the highest power) of the top with that of the bottom:

RuleHorizontal asymptoteExample
Bottom degree is biggery = 0(x + 1)/(x² + 3) → y = 0
Degrees are equalThe ratio of the leading coefficients(4x² + 1)/(2x² − 3) → y = 2
Top degree is biggerNonex³/(x + 1)

Why this works: for large x, only the highest power matters. (4x² + 1)/(2x² − 3) behaves like 4x²/2x² = 2.

A graph can cross a horizontal asymptote, because the asymptote only describes what happens far from the origin. y = x/(x² + 1) crosses y = 0 at the origin, for example.

How to find slant (oblique) asymptotes

A slant asymptote occurs when the top’s degree is exactly one more than the bottom’s. Divide the polynomials, and the quotient, ignoring the remainder, is the asymptote.

For (x² + 3x + 2)/(x − 1): dividing gives x + 4 with a remainder of 6, so the function equals x + 4 + 6/(x − 1). As x gets large, 6/(x − 1) fades to 0, leaving the slant asymptote y = x + 4.

−10−5510−1010200
Open in calculator
A slant asymptote,
y=x+4
, along with a vertical asymptote at x = 1.

Holes vs vertical asymptotes

A factor that cancels from both top and bottom creates a hole, rather than an asymptote. (x² − 1)/(x − 1) simplifies to x + 1, with x ≠ 1. So its graph is a straight line with a single point missing at (1, 2). The test: cancel first, and only what is still on the bottom gives vertical asymptotes. The asymptote calculator does this for you and reports any holes.

Asymptotes of other functions

FunctionAsymptotes
eˣHorizontal: y = 0, on the left only
ln xVertical: x = 0
tan xVertical: x = π/2 + nπ
arctan xHorizontal: y = π/2 on the right, and y = −π/2 on the left
Logistic curveHorizontal: y = 0 and y = L

The formal definition, using limits

Asymptotes are defined by limits. The line x = a is a vertical asymptote if f(x) → ±∞ as x approaches a from either side. The line y = L is a horizontal asymptote if f(x) → L as x → ∞ or x → −∞. The line y = mx + b is a slant asymptote if f(x) − (mx + b) → 0 as x → ±∞.

A word about calculators

Many graphing calculators draw a false near-vertical line where a curve jumps across an asymptote, because they simply join the dots. We have written about why this happens and how to avoid it.

Frequently asked questions

How do you find a horizontal asymptote?
Compare the degrees of the top and bottom. If the bottom is bigger, it is y = 0. If they are equal, divide the leading coefficients. If the top is bigger, there is no horizontal asymptote.
How do you find a vertical asymptote?
Cancel common factors, then set the denominator equal to zero.
What is a slant asymptote?
A diagonal line that a graph approaches when the top’s degree is one more than the bottom’s. Polynomial division finds it.
Can a function cross its asymptote?
It can cross a horizontal or slant asymptote, but it can never cross a vertical one.
How many asymptotes can a function have?
Any number of vertical ones, and at most two horizontal or slant ones, one for each direction.
What is the difference between a hole and an asymptote?
A hole is a single missing point, from a factor that cancels. A vertical asymptote is where the function goes to infinity, from a factor that doesn’t cancel.

Keep going

Try it in the calculator

Every figure on this page opens in ihateDesmos, where you can drag sliders and watch the graph respond.

Open the calculator