/

Asymptote Calculator — Vertical, Horizontal & Slant Asymptotes with Steps

Asymptote Calculator — Vertical, Horizontal & Slant Asymptotes with Steps
∞ Calculus / Algebra Tool

Asymptote Calculator

Find all vertical, horizontal, and slant (oblique) asymptotes of rational functions with step-by-step working — denominator zeros for vertical asymptotes, degree comparison for horizontal asymptotes, polynomial long division for slant asymptotes, and open circles for holes (removable discontinuities).

∞ Find All Asymptotes — Complete Analysis

Enter a rational function f(x) = P(x)/Q(x). Use parentheses around numerator and denominator: (x^2+x)/(x-1)

1/(x−3)
(x+1)/(x−2)
(x²−1)/(x²−4)
(x²+x)/(x−1) slant
(x²−1)/(x−1) hole
x/(x²−4)
(2x²+3x−1)/(x+1)
(3x²−1)/(x²+x−2)
Step-by-Step Working
Vertical
Horizontal
Slant
Hole
f(x)

Summary

| Vertical Asymptote Finder

Enter the full rational function or just the denominator Q(x).

3x/(x²−9)
1/(x−3)
x/(x²−4)
(x²−1)/(x²−4)
Vertical Asymptote Analysis

Vertical Asymptotes

— Horizontal & Slant Asymptote Calculator

Enter a rational function to find its horizontal or slant (oblique) asymptote using degree comparison and polynomial long division.

Horizontal vs Slant Asymptote Decision:

deg(P) < deg(Q) → Horizontal asymptote: y = 0
deg(P) = deg(Q) → Horizontal asymptote: y = a/b (leading coeffs)
deg(P) = deg(Q)+1 → Slant asymptote: y = quotient (long division)
deg(P) > deg(Q)+1 → No HA, no slant asymptote
1/(x+1) HA=0
(2x+1)/(3x−1)
(5x²)/(2x²+1)
(x²+x)/(x−1) slant
(2x²+3x−1)/(x+1)
Steps

Result

📖 Reference — Asymptote Rules

Table A: Asymptote Type Identification

TypeConditionEquationHow to Find
VerticalQ(c)=0, P(c)≠0x = cSolve Q(x)=0
Horizontal (y=0)deg(P)<deg(Q)y = 0Degree comparison
Horizontal (y=a/b)deg(P)=deg(Q)y = a_n/b_nLead coefficients
Slant/Obliquedeg(P)=deg(Q)+1y = mx+bPolynomial long division
HoleP(c)=Q(c)=0Point (c,L)Cancel common factor

Table B: Horizontal Asymptote Quick Rules

ExampleDegreesHA
1/(x+1)0 < 1y = 0
(2x+1)/(3x−1)1 = 1y = 2/3
(5x²)/(2x²+1)2 = 2y = 5/2
x²/(x+1)2 > 1None (slant exists)
x³/(x+1)3 > 1None (neither)

Table C: Can a Function Cross Its Asymptote?

Asymptote TypeCan Function Cross It?
VerticalNever — undefined at x=c
HorizontalYES — can cross, but approaches it as x→±∞
SlantYES — can cross, but approaches it as x→±∞

Asymptote Calculator — Find Vertical, Horizontal & Slant Asymptotes

This asymptote calculator and asymptote finder identifies all vertical, horizontal, and slant (oblique) asymptotes of rational functions — showing the denominator zeros for vertical asymptotes, degree comparison for horizontal asymptotes, and polynomial long division for slant asymptotes — plus identifies removable discontinuities (holes) where both numerator and denominator share a common factor.

What Are Asymptotes? — Three Types Defined

An asymptote is a line that a function approaches but (in the case of vertical asymptotes) never reaches, or approaches as x→±∞ (for horizontal and slant asymptotes). There are three main types, each found by a different method.

A vertical asymptote is a vertical line x=c where the function is undefined and the function values approach +∞ or −∞ as x approaches c from either side. This asymptote finder detects vertical asymptotes by finding where the denominator equals zero but the numerator does not.

A horizontal asymptote is a horizontal line y=L that the function approaches as x→+∞ or x→−∞. Unlike vertical asymptotes, a function CAN cross its horizontal asymptote at finite x values — the horizontal asymptote only describes end behavior. This asymptote solver uses degree comparison to determine the horizontal asymptote.

A slant asymptote (also called an oblique asymptote) is a diagonal line y=mx+b that the function approaches as x→±∞. It exists only when the numerator degree is exactly one more than the denominator degree. Polynomial long division reveals the slant asymptote equation.

A hole (removable discontinuity) occurs when both the numerator and denominator equal zero at the same point — meaning they share a common factor (x−c). After cancellation, the function has a finite limit at x=c, plotted as an open circle on the graph.

Vertical Asymptotes — Finding Where the Function Blows Up

To find vertical asymptotes of f(x)=P(x)/Q(x): set Q(x)=0 and solve for x. For each solution x=c, verify that P(c)≠0. If P(c)≠0, then x=c is a vertical asymptote. If P(c)=0 also, then (x−c) is a common factor and x=c is a hole, not a vertical asymptote.

Near a vertical asymptote, analyze the sign of the function just left and just right of x=c to determine whether the function goes to +∞ or −∞ from each side.

Vertical asymptote: x = c when Q(c) = 0 and P(c) ≠ 0

Example: f(x) = x/(x²−4)

Denominator: x²−4 = (x+2)(x−2) = 0 → x=−2 or x=2. Numerator at x=−2: −2≠0 ✓. Numerator at x=2: 2≠0 ✓. Both are vertical asymptotes.

Example: f(x) = (x²−1)/(x−1) — Hole, Not a Vertical Asymptote

Denominator: x−1=0 → x=1. Numerator at x=1: 1−1=0. Both zero → hole at x=1. Factor: (x²−1)/(x−1)=(x+1)(x−1)/(x−1)=x+1. Hole at (1, 2).

Example: f(x) = 3x/(x²−9)

x²−9=(x+3)(x−3)=0 → x=−3, x=3. Numerator: 3(−3)=−9≠0 and 3(3)=9≠0. Vertical asymptotes: x=−3 and x=3.

Horizontal Asymptotes — The Three Degree Rules

The horizontal asymptote of f(x)=P(x)/Q(x) is determined entirely by comparing the degrees of the numerator and denominator. Intuitively: as x→∞, the highest-degree terms dominate and all lower-degree terms become negligible.

deg(P) < deg(Q) → HA: y = 0
deg(P) = deg(Q) → HA: y = (leading coeff P)/(leading coeff Q)
deg(P) > deg(Q) → No horizontal asymptote

A critical fact: a function CAN cross its horizontal asymptote. The horizontal asymptote only describes what happens as x→±∞. For example, sin(x)/x oscillates across y=0 infinitely many times while still approaching it as x→∞.

Important: a horizontal asymptote and a slant asymptote cannot both exist. If deg(P)=deg(Q)+1, there is a slant asymptote instead of a horizontal asymptote.

Slant Asymptotes — Polynomial Long Division

A slant asymptote (oblique asymptote) exists when the degree of the numerator equals the degree of the denominator plus exactly one: deg(P)=deg(Q)+1. Use polynomial long division: P(x)÷Q(x) = quotient + remainder/Q(x). As x→±∞, the remainder/Q(x)→0, so the function approaches y=quotient — the slant asymptote. The slant asymptote is always a linear function y=mx+b.

Slant asymptote: y = quotient from P(x) ÷ Q(x), when deg(P) = deg(Q) + 1

Example: (x²+x)/(x−1)

deg(P)=2, deg(Q)=1, difference=1 → slant asymptote exists.

Long division: x²+x ÷ (x−1):

Step 1: x²÷x = x. Multiply: x(x−1)=x²−x. Subtract: (x²+x)−(x²−x)=2x.

Step 2: 2x÷x = 2. Multiply: 2(x−1)=2x−2. Subtract: 2x−(2x−2)=2 (remainder).

Result: quotient = x+2, remainder = 2. Slant asymptote: y = x+2.

Holes vs Vertical Asymptotes — The Common Factor Distinction

A hole (removable discontinuity) occurs when the same factor (x−c) appears in both the numerator and denominator. The factor cancels algebraically, leaving a simplified function that IS defined at x=c. The hole's y-coordinate is found by substituting x=c into the simplified function. On a graph, holes appear as open circles — not vertical lines — distinguishing them visually from true vertical asymptotes.

(x²−1)/(x−1) = (x+1)(x−1)/(x−1) → cancel → x+1. At x=1: y=1+1=2. Hole at (1,2). No vertical asymptote at x=1.

Rule: if both P(c)=0 AND Q(c)=0, find the GCD of P(x) and Q(x). The zeros of the GCD are holes. The remaining zeros of Q(x) after cancellation are vertical asymptotes.

Worked Examples — 8 Complete Problems

1. f(x)=1/(x−3) → Vertical asymptote: x=3; Horizontal asymptote: y=0 (deg 0 < deg 1)

2. f(x)=(2x+1)/(x−4) → Vertical asymptote: x=4; Horizontal asymptote: y=2/1=2 (equal degrees, leading coeffs 2 and 1)

3. f(x)=(x²−4)/(x²−1) → Vertical asymptotes: x=±1; Horizontal asymptote: y=1 (equal degrees, both leading coeff=1)

4. f(x)=(x²+2x)/(x−1) → Vertical asymptote: x=1; Slant asymptote: y=x+3 (long division: x²+2x÷(x−1)=x+3 rem 3)

5. f(x)=(x²−1)/(x−1) → Hole at (1,2), no vertical asymptote (factor x−1 cancels)

6. f(x)=x/(x²+1) → No vertical asymptote (x²+1>0 always); Horizontal asymptote: y=0 (deg 1 < deg 2)

7. f(x)=(3x²−1)/(x²+x−2) → Factor denom: (x+2)(x−1); Vertical asymptotes: x=1, x=−2; Horizontal asymptote: y=3 (equal degrees, 3/1=3)

8. f(x)=(x³−x)/(x²−4) → Vertical asymptotes: x=±2; Slant asymptote: y=x (long division of degree-3 by degree-2)

Common Mistakes Finding Asymptotes

  1. Declaring a hole as a vertical asymptote: always check whether the numerator is also zero before labeling a denominator zero as a vertical asymptote. If both are zero, it is a hole, not a vertical asymptote.
  2. Thinking horizontal asymptotes can never be crossed: horizontal asymptotes only describe end behavior — the function can cross the horizontal asymptote at finite x values.
  3. Forgetting slant asymptotes: when the numerator degree exceeds the denominator degree, many students only check for horizontal asymptotes. Always check: if deg(P)=deg(Q)+1, a slant asymptote exists instead.
  4. Reporting the remainder as the slant asymptote: the slant asymptote is the QUOTIENT from polynomial long division, not the remainder. The remainder/denominator approaches zero and is discarded.
  5. Wrong degree count: expand all polynomials before comparing degrees. The number of terms does not equal the degree. Always find the actual highest power of x in each polynomial.

Frequently Asked Questions

What is a vertical asymptote?
A vertical asymptote is a vertical line x=c where the function is undefined and approaches ±∞. For f(x)=P(x)/Q(x), it occurs when Q(c)=0 and P(c)≠0.
What is a horizontal asymptote?
A horizontal asymptote y=L is the line the function approaches as x→±∞. Found by comparing degrees of numerator and denominator: y=0 if deg(P)<deg(Q); y=leading coeff ratio if equal degrees.
What is a slant asymptote?
A slant (oblique) asymptote y=mx+b exists when deg(P)=deg(Q)+1. Found by polynomial long division — the quotient gives the slant asymptote equation.
How do you find vertical asymptotes?
Set Q(x)=0 and solve. For each solution x=c, check P(c)≠0. If yes: vertical asymptote. If P(c)=0 also: hole.
When does a horizontal asymptote equal zero?
When the degree of the numerator is strictly less than the degree of the denominator, the horizontal asymptote is y=0.
What is the difference between a hole and a vertical asymptote?
At a hole, both P(c)=0 and Q(c)=0 — a common factor cancels and the function has a finite limit. At a vertical asymptote, only Q(c)=0 and the function blows up to ±∞.
Can a function cross a horizontal asymptote?
Yes. Unlike vertical asymptotes, a function CAN cross its horizontal asymptote at finite x values. The horizontal asymptote only describes end behavior as x→±∞.
When does a slant asymptote exist?
Only when deg(P)=deg(Q)+1 — the numerator degree is exactly one more than the denominator degree.

Related Calculators

🔗 Share This Calculator

Free chemistry, physics, biology & math calculators with step-by-step solutions. Trusted by 100,000+ students. Solve any science problem instantly!

Newsletter

Subscribe to our Newsletter to be updated. We promise not to spam.

Copyright © 2026 SciSolveLab. All Rights Reserved

Scroll to Top