Asymptote Calculator
Enter a rational function to find its vertical, horizontal, slant (oblique) and polynomial asymptotes, holes, intercepts and domain, with steps and a graph.
Use x, numbers, + − * / ^ and brackets. Implicit multiplication works: 2x, (x+1)(x−2). Whole-number exponents up to 12.
Step-by-step solution
Graph
Supports rational functions (a polynomial divided by a polynomial, including sums and products of such terms). Irrational roots are shown in exact square-root form when they come from a quadratic factor, otherwise as decimals rounded to 4 places.
Use this asymptote calculator to find the vertical, horizontal, slant (oblique) and polynomial asymptotes of any rational function. Type a function such as (x² − 1)/(x² − 2x − 3), and the calculator simplifies it, cancels common factors, and lists every asymptote, hole, the domain and the x- and y-intercepts, with a step-by-step solution and a graph.
How to Use the Asymptote Calculator
Entering the Function
- Use
xas the variable, with numbers,+,−,*,/,^and brackets. - Implicit multiplication works:
2x,3(x+1)and(x+1)(x−2). - Exponents must be whole numbers up to 12, for example
x^2or(x−1)^3. Negative exponents such asx^-1also work. - Decimals are converted to exact fractions, so
0.5xis treated as ½x. - Functions such as sqrt, sin or log are not supported, because the calculator is built for rational functions.
Select Find Asymptotes or press Enter, or tap one of the examples.
Reading the Results
The results show the simplified function and six summary boxes: vertical asymptotes, horizontal asymptote, slant or polynomial asymptote, holes, domain and intercepts. Rational answers are exact (for example x = 1/2), and roots from a quadratic factor are shown in square-root form (for example x = 1 + √2). The step-by-step solution explains each result, and the graph plots the function with dashed asymptote lines and open circles at holes. Change the x and y range and select Redraw, or use Auto fit.
What Is an Asymptote?
An asymptote is a line or curve that a graph approaches as x approaches a particular value or as x becomes very large or very negative. For a rational function
f(x) = P(x) ÷ Q(x)
where P and Q are polynomials, the asymptotes depend on the zeros of the denominator and on the degrees of the numerator and denominator. A rational function can have:
- Vertical asymptotes: lines x = a where f(x) becomes unbounded.
- A horizontal asymptote: a line y = L that f(x) approaches as x → ±∞.
- A slant (oblique) asymptote: a line y = ax + b approached as x → ±∞.
- A polynomial asymptote: a curve such as y = x² + 3x + 3, when the numerator degree is at least two more than the denominator degree.
A rational function has at most one of the last three, because they all describe the end behavior.
How to Find Vertical Asymptotes
- Factor the numerator and denominator.
- Cancel any common factors.
- Set the simplified denominator equal to zero and solve.
- Each real solution x = a is a vertical asymptote.
For f(x) = 1/(x − 3), the denominator is zero when x − 3 = 0, so the vertical asymptote is x = 3.
Why You Must Simplify First
A zero of the original denominator is not always a vertical asymptote. For
f(x) = (x² − 1)/(x² − 2x − 3) = [(x − 1)(x + 1)] / [(x − 3)(x + 1)]
the factor (x + 1) cancels, leaving (x − 1)/(x − 3). The remaining zero x = 3 is a vertical asymptote, but x = −1 is a hole. The calculator finds the common factor exactly using the greatest common divisor of the two polynomials, so this works even when the factors are not easy to spot.
Denominators With No Real Zeros
If the simplified denominator has no real zeros, there is no vertical asymptote. For example, x/(x² + 1) has none because x² + 1 = 0 has no real solution.
Behavior Near a Vertical Asymptote
The calculator reports whether f(x) goes to +∞ or −∞ on each side of every vertical asymptote. This depends on the multiplicity of the factor in the simplified denominator:
- Odd multiplicity (e.g. (x − 2)¹): the function goes to opposite infinities on the two sides. For 1/(x − 2), f → −∞ from the left and +∞ from the right.
- Even multiplicity (e.g. (x − 1)²): the function goes to the same infinity on both sides. For 1/(x − 1)², f → +∞ from both sides.
What Is a Hole in a Graph?
A hole is a removable discontinuity: a single missing point on the graph. It occurs at an x-value that makes the original function undefined but is removed when the fraction is simplified.
Hole vs Vertical Asymptote
| Feature | Hole | Vertical asymptote |
|---|---|---|
| Cause | Factor that cancels completely | Factor left in the simplified denominator |
| f(x) defined there? | No | No |
| Function unbounded? | No | Yes |
| On the graph | Open circle (missing point) | Curve approaches a vertical line |
If a factor appears more times in the denominator than in the numerator, it is not fully cancelled. For (x − 1)/(x − 1)², one (x − 1) remains in the denominator, so x = 1 is a vertical asymptote, not a hole.
Finding the y-Coordinate of a Hole
Substitute the x-value into the simplified function. For (x² − 1)/(x² − 2x − 3), the simplified function is (x − 1)/(x − 3), so at x = −1:
y = (−1 − 1)/(−1 − 3) = −2/−4 = 1/2
The hole is at (−1, 1/2).
How to Find Horizontal Asymptotes
Compare the degree of the numerator, n, with the degree of the denominator, m.
Case 1: n < m
The horizontal asymptote is y = 0. For f(x) = 2/(x² + 1), n = 0 and m = 2, so y = 0.
Case 2: n = m
The horizontal asymptote is y = (leading coefficient of numerator) ÷ (leading coefficient of denominator). For f(x) = (2x² + 3)/(x² − 5), y = 2 ÷ 1 = 2.
Case 3: n > m
There is no horizontal asymptote. If n = m + 1 there is a slant asymptote, and if n ≥ m + 2 there is a polynomial asymptote. Both come from polynomial division.
How to Find a Slant (Oblique) Asymptote
When the numerator degree is exactly one more than the denominator degree, divide the numerator by the denominator. The quotient is the slant asymptote; the remainder divided by the denominator goes to 0 as x → ±∞.
Polynomial Long Division Example
For f(x) = (x² + x + 1)/(x − 1):
x² + x + 1 = (x − 1)(x + 2) + 3
so f(x) = x + 2 + 3/(x − 1). The slant asymptote is y = x + 2, and the vertical asymptote is x = 1.
Polynomial Asymptotes
When the numerator degree is two or more greater than the denominator degree, the quotient is a polynomial of degree 2 or higher. For f(x) = (x³ + 2x² + 1)/(x − 1):
x³ + 2x² + 1 = (x − 1)(x² + 3x + 3) + 4
so the polynomial asymptote is y = x² + 3x + 3. The difference between f(x) and this parabola, 4/(x − 1), approaches 0 as x → ±∞.
Asymptote Rules at a Glance
| Situation | Result |
|---|---|
| Real zero of the simplified denominator | Vertical asymptote |
| Factor cancels completely | Hole |
| n < m | Horizontal asymptote y = 0 |
| n = m | Horizontal asymptote y = ratio of leading coefficients |
| n = m + 1 | Slant asymptote y = quotient |
| n ≥ m + 2 | Polynomial asymptote y = quotient |
| Simplified denominator is a constant | No asymptotes (the function is a polynomial) |
Can a Graph Cross an Asymptote?
A graph can cross a horizontal, slant or polynomial asymptote; it can never cross a vertical asymptote, because the function is undefined there. Write f(x) = quotient + remainder ÷ denominator: the graph meets the end-behavior asymptote wherever the remainder is zero.
For f(x) = (x² + x)/(x² + 1), the horizontal asymptote is y = 1 and the remainder is (x² + x) − (x² + 1) = x − 1. It is zero at x = 1, so the graph crosses y = 1 at (1, 1). The calculator lists these crossing points automatically.
Domain and Intercepts
The domain of a rational function is all real numbers except the x-values where the original denominator is zero, including holes. The x-intercepts are the real zeros of the simplified numerator that are in the domain, and the y-intercept is f(0), if 0 is in the domain. For (x² − 1)/(x² − 2x − 3), the domain excludes −1 and 3, the x-intercept is 1 (not −1, which is a hole), and the y-intercept is 1/3.
Worked Examples
Example 1: f(x) = 1/(x − 2)
- Vertical asymptote: x − 2 = 0, so x = 2 (f → −∞ from the left, +∞ from the right).
- Horizontal asymptote: n = 0 < m = 1, so y = 0.
- Intercepts: no x-intercept; y-intercept −1/2.
Example 2: f(x) = (3x + 1)/(x − 4)
- Vertical asymptote: x = 4.
- Horizontal asymptote: n = m = 1, so y = 3 ÷ 1 = 3.
- Crossing: remainder (3x + 1) − 3(x − 4) = 13, which is never 0, so the graph never crosses y = 3.
Example 3: f(x) = (x² − 1)/(x² − 2x − 3)
- Common factor (x + 1) cancels: f(x) = (x − 1)/(x − 3).
- Hole: (−1, 1/2). Vertical asymptote: x = 3.
- Horizontal asymptote: n = m = 2, leading coefficients 1 ÷ 1, so y = 1.
Example 4: f(x) = 1/(x² − 4)
- x² − 4 = (x − 2)(x + 2), so there are two vertical asymptotes: x = −2 and x = 2.
- Horizontal asymptote: n = 0 < m = 2, so y = 0.
Common Mistakes When Finding Asymptotes
- Not simplifying first: a denominator zero that cancels is a hole, not a vertical asymptote.
- Comparing coefficients instead of degrees: the horizontal asymptote rule depends on n and m first.
- Using any coefficients for n = m: divide the leading coefficients only.
- Expecting a horizontal asymptote when n > m: there is none; look for a slant or polynomial asymptote.
- Assuming a graph never crosses an asymptote: only vertical asymptotes cannot be crossed.
- Forgetting the hole’s y-value: find it from the simplified function, not the original.
Frequently Asked Questions
Vertical Asymptotes and Holes
How do I find vertical asymptotes quickly?
Cancel common factors, then set the remaining denominator equal to zero. Each real solution is a vertical asymptote.
Can a rational function have no vertical asymptote?
Yes. If the simplified denominator has no real zeros, such as x² + 1, or is a constant, there is no vertical asymptote.
How do I tell a hole from a vertical asymptote?
If the factor cancels completely, it is a hole. If it still appears in the simplified denominator, it is a vertical asymptote.
Horizontal and Slant Asymptotes
Can a function have both a horizontal and a slant asymptote?
Not a rational function. The end behavior is a horizontal asymptote when n ≤ m, a slant asymptote when n = m + 1, and a polynomial asymptote when n ≥ m + 2.
What is an oblique asymptote?
Oblique asymptote is another name for a slant asymptote: a non-horizontal line y = ax + b found by polynomial division.
Using the Calculator
Can I enter a function that is not a single fraction?
Yes. Sums, products and quotients such as 1/x + 1/(x − 1) or 2(x + 1)/(x(x − 1)) are combined into one fraction before the analysis.
Why are some answers shown as decimals?
Rational roots are shown exactly, and roots from a quadratic factor are shown with square roots. Other irrational roots, such as those of a cubic, are shown as decimals rounded to 4 places.
Final Words
To analyze a rational function: simplify it, find vertical asymptotes from the zeros of the simplified denominator, find holes from the cancelled factors, and compare degrees to get the horizontal, slant or polynomial asymptote. Use the Asymptote Calculator above to check each step and see the graph.
