Skip to content
FiftyCalc Free calculators for all 50 states

Asymptote Calculator

Test cases replayed : 8 of 8 match · Methodology · No outside source listed

Enter the coefficients of the numerator and the denominator of f(x) = (ax² + bx + c) / (dx² + ex + f). Set a coefficient to 0 for a lower degree, for example d = 0 for a linear denominator.

Result

Sample figures

Horizontal or slant asymptote—

Number of vertical asymptotes —

  • Vertical asymptote x =—
  • Second vertical asymptote x =—
  • Hole (removable discontinuity) at x =—
  • Second hole at x =—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Asymptote Calculator

Numerator: coefficient a of x²: enter a number. Prefilled example: 1.

Numerator: coefficient b of x: enter a number. Prefilled example: 0.

Numerator: constant c: enter a number. Prefilled example: -1.

Denominator: coefficient d of x²: enter a number. Prefilled example: 1.

Denominator: coefficient e of x: enter a number. Prefilled example: -5.

Denominator: constant f: enter a number. Prefilled example: 6.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Numerator: coefficient a of x²: enter a number.
  2. Numerator: coefficient b of x: enter a number.
  3. Numerator: constant c: enter a number.
  4. Denominator: coefficient d of x²: enter a number.
  5. Denominator: coefficient e of x: enter a number.
  6. Denominator: constant f: enter a number.
  7. Read the result: Horizontal or slant asymptote; the panel also shows Number of vertical asymptotes, Vertical asymptote x =, Second vertical asymptote x =, Hole (removable discontinuity) at x = and Second hole at x =.

How this calculator works

Vertical asymptotes: the real zeros of the denominator, found with the quadratic formula x = (−e ± √(e² − 4df)) / (2d) (or x = −f/e when d = 0). A zero that also cancels the numerator at least as many times as the denominator is a hole, not an asymptote; a double zero of the denominator that the numerator cancels only once is still a vertical asymptote.

End behavior compares the degrees n (numerator) and m (denominator): n < m gives y = 0; n = m gives y = ratio of the leading coefficients; n = m + 1 gives a slant asymptote, the quotient of the polynomial division. For (ax² + bx + c) / (ex + f) the quotient is (a/e)x + (b − af/e)/e.

These are the standard rules taught in precalculus for rational functions. A denominator with no x term (d = e = 0) makes f a polynomial, which has no asymptote. Zeros are tested to a tolerance of about one billionth.

Worked example

Numerator: coefficient a of x²1
Numerator: coefficient b of x0
Numerator: constant c-1
Denominator: coefficient d of x²1
Denominator: coefficient e of x-5
Denominator: constant f6
Number of vertical asymptotes2
Vertical asymptote x =2
Second vertical asymptote x =3
Horizontal or slant asymptoteHorizontal asymptote y = 1

Frequently asked questions

What are the asymptotes of (x² − 1) / (x² − 5x + 6)?

The denominator is (x − 2)(x − 3) and the numerator is not zero at 2 or 3, so x = 2 and x = 3 are vertical asymptotes. Both degrees are 2, so the horizontal asymptote is y = 1/1 = 1.

How do I tell a hole from a vertical asymptote?

Factor both polynomials. A factor (x − r) that cancels completely leaves a hole at x = r; if a factor stays in the denominator after cancelling, x = r is a vertical asymptote.

Can a graph cross its horizontal asymptote?

Yes. A horizontal or slant asymptote describes the graph as x grows large in either direction; the graph may cross it at finite x. A graph never crosses a vertical asymptote.

Related calculators