Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Asymptote Calculator

How to use
  1. Type the function in the f(x)f(x) box, for example x+1x−1\dfrac{x + 1}{x - 1} or x2+1x−1\dfrac{x^2 + 1}{x - 1}. Learn more about entering the function
  2. Read the three answers: Vertical, Horizontal and Slant. Each lists the equations of the lines, or says there are none. Learn more about reading the answer
  3. Look at the graph: vertical asymptotes are dashed red lines, horizontal ones dashed green, slant ones dashed amber.
  4. Read How it was found to see which way the function runs on each side of a vertical asymptote and what it settles toward far out.

Asymptotes
Vertical
x=1\displaystyle x = 1
Horizontal
y=1\displaystyle y = 1
Slant
none\displaystyle \text{none}
How it was found

At x=1x = 1: from the left f→−∞f \to -\infty, from the right f→+∞f \to +\infty.

Far out, ff levels off: f(x)→1f(x) \to 1 as x→+∞x \to +\infty, f(x)→1f(x) \to 1 as x→−∞x \to -\infty.

f(x)=x+1x−1f\left(x\right)=\frac{x+1}{x-1}


Finding the asymptotes

DemoFind the asymptotes
Step 0 of 4
Type the function in the f(x)f(x) box. The calculator looks for all three kinds of asymptote at once and draws each one it finds as a dashed line on the graph.

Rational functions are the usual case: type the numerator and the denominator in brackets with a slash between them, as in (x^2 + 1)/(x - 1). The calculator also handles exponentials, logarithms, arctan⁡\arctan and the trigonometric functions.

Change the formula and the lines move with it. Try changing one coefficient in the denominator and watch a vertical asymptote slide.

Reading the answer

DemoSlant and one-sided asymptotes
Step 0 of 4
    There are three answer boxes.

  • Vertical lists equations x=cx = c: the vertical lines the graph runs up or down along.
  • Horizontal lists equations y=Ly = L: the levels the graph settles at far to the right or left. If the two sides settle at different levels, each is labelled with its side.
  • Slant lists lines y=mx+ny = mx + n that the graph hugs far out. A side of the graph has a horizontal asymptote or a slant one, never both.

  • A box says none when the function has no asymptote of that kind.

    How it was found tells you, for each vertical asymptote, whether the function goes to +∞+\infty or −∞-\infty on its left and on its right, and what the function tends to as x→+∞x \to +\infty and x→−∞x \to -\infty.

What an asymptote is

An asymptote is a straight line that the graph of a function comes arbitrarily close to as the graph runs off to infinity.

For f(x)=x+1x−1f(x) = \dfrac{x + 1}{x - 1} there are two. Near x=1x = 1 the denominator is close to 00, the values become huge, and the graph runs along the vertical line x=1x = 1. Far to the right and left, the fraction is close to 11, and the graph flattens along the horizontal line y=1y = 1.

An asymptote is not part of the graph. It is a description of where the graph is heading.
x+1x−1\frac{x + 1}{x - 1} with its vertical asymptote x=1x = 1 and horizontal asymptote y=1y = 1.

Vertical asymptotes

The line x=cx = c is a vertical asymptote when f(x)f(x) grows without bound as xx approaches cc from at least one side.

For a rational function, look where the denominator is zero. After cancelling any common factors, each remaining zero of the denominator gives a vertical asymptote. xx2−1\dfrac{x}{x^2 - 1} has denominator (x−1)(x+1)(x - 1)(x + 1), so the asymptotes are x=1x = 1 and x=−1x = -1.

A zero that cancels gives a hole, not an asymptote: x2−1x−1\dfrac{x^2 - 1}{x - 1} has no vertical asymptote at x=1x = 1.

Other sources: ln⁡(x)\ln(x) has one at x=0x = 0, and tan⁡(x)\tan(x) has one at every π2+kπ\dfrac{\pi}{2} + k\pi. A graph never crosses its vertical asymptote, because the function has no value there.
xx2−1\frac{x}{x^2 - 1} has vertical asymptotes at x=−1x = -1 and x=1x = 1.

Horizontal asymptotes

    The line y=Ly = L is a horizontal asymptote when f(x)f(x) tends to LL as x→+∞x \to +\infty or as x→−∞x \to -\infty.

    For a rational function, compare the degrees of the numerator and the denominator:

  • Numerator lower: y=0y = 0. Example: xx2−1\dfrac{x}{x^2 - 1}.
  • Equal degrees: yy = the ratio of the leading coefficients. Example: 2x2+1x2−4\dfrac{2x^2 + 1}{x^2 - 4} gives y=21=2y = \dfrac{2}{1} = 2.
  • Numerator higher: no horizontal asymptote.

  • A function can have two different horizontal asymptotes, one on each side: arctan⁡(x)\arctan(x) tends to π2\dfrac{\pi}{2} on the right and −π2-\dfrac{\pi}{2} on the left. It can also have one on a single side: e−xe^{-x} tends to 00 on the right and grows without bound on the left.

    Unlike a vertical asymptote, a horizontal one may be crossed; it only describes the far ends.
arctan⁡(x)\arctan(x) settles at a different level on each side.

Slant asymptotes

When the numerator of a rational function has degree exactly one more than the denominator, the graph follows a slanted line far out. This is a slant (or oblique) asymptote.

Find it by dividing. For x2+1x−1\dfrac{x^2 + 1}{x - 1}, polynomial division gives

x2+1x−1=x+1+2x−1.\dfrac{x^2 + 1}{x - 1} = x + 1 + \dfrac{2}{x - 1}.


As xx grows, the last fraction goes to 00, so the graph approaches the line y=x+1y = x + 1.

The calculator finds the same line numerically: the slope is what f(x)x\dfrac{f(x)}{x} settles at, and the intercept is what f(x)−mxf(x) - mx settles at.
x2+1x−1\frac{x^2 + 1}{x - 1} follows the line y=x+1y = x + 1 far out.

What the calculator checks

Vertical asymptotes are searched for xx between −10-10 and 1010; one further out is not seen. Horizontal and slant asymptotes are read from the values of the function at very large ∣x∣|x|.

When vertical asymptotes repeat in a regular pattern, as for tan⁡(x)\tan(x), the pattern is written once instead of listing every line.

Levels and positions that are whole numbers, simple fractions or simple multiples of π\pi are written exactly; others are decimals.

Common mistakes

  • Calling a hole an asymptote. Cancel common factors first; only the zeros of the denominator that remain give vertical asymptotes.
  • Thinking a graph can never cross an asymptote. That holds for vertical ones only. xx2+1\dfrac{x}{x^2 + 1} crosses its horizontal asymptote y=0y = 0 at the origin.
  • Looking for both a horizontal and a slant asymptote on one side. A side has at most one of the two.
  • Using the wrong coefficients. For equal degrees, the level is the ratio of the leading coefficients, not of the constant terms.
  • Forgetting one side. exe^{x} has a horizontal asymptote on the left only.