Skip to content
ihateDesmos

Asymptote calculator

Type a rational function to find its vertical, horizontal and slant asymptotes, along with any holes. You get the reasoning at each step, and a graph with the asymptotes drawn in.

Vertical asymptotes
x = 1
Slant asymptote
y = x + 4
Holes
None
Reduced form
(x² + 3x + 2) / (x − 1)
Steps
  1. Write the function as a single fraction: (x² + 3x + 2) / (x − 1)
  2. Vertical asymptotes are where the reduced denominator x − 1 is zero: x = 1
  3. The numerator’s degree (2) is one more than the denominator’s (1), so divide the polynomials. The quotient is the slant asymptote: y = x + 4.
−5−4−3−2−11234567−10−8−6−4−2246810
The function in blue, with its asymptotes as dashed red lines.

How to use it

  1. 1
    Type a fraction of polynomials in x, like (x^2 + 1)/(x - 2). Multiplied brackets work too.
  2. 2
    Read the asymptotes and holes from the results.
  3. 3
    Follow the steps to see why each one is there.

The rules

Vertical asymptotes: cancel any common factors, then find where the denominator is zero.

Horizontal or slant asymptotes: compare the degree of the top (n) with the degree of the bottom (d):

DegreesAsymptoteExample
n < dHorizontal: y = 01/x
n = dHorizontal: the ratio of leading coefficients(2x² + 1)/(x² − 4) → y = 2
n = d + 1Slant: divide the polynomials(x² + 3x + 2)/(x − 1) → y = x + 4
n > d + 1None that is a straight linex³/(x − 1)

The asymptotes guide explains why these rules work, with more examples.

Holes are not asymptotes

A factor that cancels from top and bottom makes a hole, not an asymptote. (x² − 1)/(x − 1) simplifies to x + 1, so its graph is a straight line with a single missing point at (1, 2). A hole is a gap at one point. At a vertical asymptote, the function shoots off to infinity.

Can a graph cross an asymptote?

A graph can never cross a vertical asymptote, because the function isn’t defined there. But it can cross a horizontal or slant one: those describe only what happens far to the left and right. For example, f(x) = x/(x² + 1) crosses its horizontal asymptote y = 0 at the origin.

Functions beyond fractions

This tool handles fractions of polynomials. Other functions have asymptotes too: tan x has vertical asymptotes at odd multiples of π/2, eˣ has the horizontal asymptote y = 0, and ln x has the vertical asymptote x = 0.

Frequently asked questions

How do you find vertical asymptotes?
Cancel any common factors, then set the denominator equal to zero. Each real solution is a vertical asymptote.
How do you find a horizontal asymptote?
Compare the degrees of the top and bottom. If the bottom is larger, it is y = 0. If they are equal, it is the ratio of the leading coefficients.
What is a slant asymptote?
A diagonal line that the graph approaches when the top’s degree is exactly one more than the bottom’s. Polynomial long division finds it.
How many horizontal asymptotes can a rational function have?
At most one. Non-rational functions can have two, one on each side: arctan x approaches both y = π/2 and y = −π/2.

Related tools and guides

Try the asymptote calculator

It opens instantly, with no account and nothing to install.

Open the calculator