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.
- Write the function as a single fraction: (x² + 3x + 2) / (x − 1)
- Vertical asymptotes are where the reduced denominator x − 1 is zero: x = 1
- 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.
How to use it
- 1Type a fraction of polynomials in x, like
(x^2 + 1)/(x - 2). Multiplied brackets work too. - 2Read the asymptotes and holes from the results.
- 3Follow 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):
| Degrees | Asymptote | Example |
|---|---|---|
| n < d | Horizontal: y = 0 | 1/x |
| n = d | Horizontal: the ratio of leading coefficients | (2x² + 1)/(x² − 4) → y = 2 |
| n = d + 1 | Slant: divide the polynomials | (x² + 3x + 2)/(x − 1) → y = x + 4 |
| n > d + 1 | None that is a straight line | x³/(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
Frequently asked questions
How do you find vertical asymptotes?
How do you find a horizontal asymptote?
What is a slant asymptote?
How many horizontal asymptotes can a rational function have?
Related tools and guides
Find vertical, horizontal and slant asymptotes, with the rules.
Any function’s domain and range, in interval notation with steps and a graph.
Holes, asymptotes and intercepts, in a worked example.
A hyperbola with asymptotes along both axes.
Period π, asymptotes at π/2 + nπ, always increasing.
Limits by substitution, factoring, L’Hôpital and at infinity.
It opens instantly, with no account and nothing to install.