Quick answer: To find the asymptotes of a rational function, solve the denominator equal to zero for vertical asymptotes — discarding any root the numerator cancels completely, because that point is a hole instead — then compare the degrees of the numerator and denominator for the horizontal asymptote: smaller numerator degree gives y = 0, equal degrees give the ratio of the leading coefficients, a numerator degree one larger gives an oblique (slant) asymptote found by polynomial long division, and a larger gap still means no straight-line asymptote at the ends.
How to use this asymptote finder
Step 1 — Choose the two degrees. Pick the degree of the numerator P(x) and the degree of the denominator Q(x), each from 0 (a constant) to 4. The coefficient boxes rebuild themselves to match: one box per power of x, from the highest power down to the constant term. If a power does not appear in your polynomial, its coefficient is 0 — the quadratic x^2 − 1 is entered as 1, 0, −1, and forgetting that middle 0 is the one input mistake worth double-checking.
Step 2 — Type the coefficients. Each box accepts an integer, a decimal such as 0.5, or a fraction such as 3/2. Everything you type is converted to an exact fraction before any algebra happens, which is why the answers on this page come out as fractions like 1/2 rather than rounded decimals like 0.5 whenever the mathematics allows it. The result updates as you type; there is no calculate button to hunt for.
Step 3 — Read the three result boxes. The first box lists the vertical asymptotes, or says there are none. The second gives the end behaviour: a horizontal asymptote, an oblique (slant) asymptote, a curvilinear one, or an explicit note that the function is a polynomial in disguise. The third lists the holes in rational functions — the points where a factor cancelled — with their coordinates, because a hole and a vertical asymptote sit at the same kind of x value and confusing them is the classic error in this topic.
Step 4 — Follow the step-by-step reasoning. Under the results, the tool shows its working in order: the degrees, the denominator roots and how each one was found, the cancellation check at every root with multiplicities, and the degree comparison or long division that produced the end behaviour. Compare that working with the method in this guide and you can reproduce any answer on the page by hand — which is the real test of an asymptote calculator. The Domain and Range Finder makes a good companion: the vertical asymptotes and holes found here are exactly the points its domain excludes.
Step 5 — Try the presets, then save. The preset buttons load the four worked examples from this guide, plus a hole demonstration and a function with no vertical asymptote at all. When you have your answer, Copy puts the summary on your clipboard and Download saves it as a text file. Nothing is uploaded at any step.
What is an asymptote? The three kinds
An asymptote is a line that a graph approaches ever more closely as you follow it toward some extreme — toward a forbidden x value, or out toward positive or negative infinity — without the gap ever quite closing in the limit. Asymptotes are not part of the graph itself; textbooks draw them as dashed lines because they describe where the graph is heading, not where it is. Rational functions are the natural home of the concept, because a fraction of two polynomials can misbehave in exactly three classifiable ways, and each way produces one kind of asymptote.
A vertical asymptote is a vertical line x = a. As x approaches a from either side, the function values grow without bound — toward positive infinity, negative infinity, or one on each side. This happens at a denominator zero that survives cancellation: the numerator stays away from zero while the denominator shrinks toward it, so the fraction explodes. The graph never touches the line, because the function is not even defined at x = a.
A horizontal asymptote is a horizontal line y = b that the graph approaches as x → ∞ or x → −∞. It describes end behaviour only. Nothing stops the graph from crossing a horizontal asymptote at ordinary x values — many rational functions do — because the claim is purely about the far ends. The Domain and Range Finder shows the flip side of this coin: a horizontal-asymptote value is often, though not always, missing from the range.
An oblique asymptote, also called a slant asymptote, is a slanted line — neither horizontal nor vertical — that the graph approaches at the ends. It occurs for rational functions in exactly one situation, numerator degree precisely one more than denominator degree, and it is found by division rather than by a ratio shortcut. A fourth, rarer outcome generalises it: when the numerator outgrows the denominator by two or more degrees, the graph follows a polynomial curve at the ends, called a curvilinear asymptote. This guide treats all four outcomes, because "how to find vertical and horizontal asymptotes" is only half the question students actually get asked.
Vertical asymptotes and holes in rational functions
The rule for vertical asymptotes has two halves, and the second half is the one that gets skipped: set the denominator equal to zero and solve — then check the numerator at every root you found. A denominator root is where the function is undefined, but undefined comes in two flavours. If the numerator is not zero at that x, the fraction genuinely explodes there and x = that root is a vertical asymptote. If the numerator is zero there too, numerator and denominator share a factor, and what happens depends on how many copies of the factor each side holds — its multiplicity.
Multiplicity is where holes in rational functions come from. Suppose the denominator contains (x + 1)^2 and the numerator contains (x + 1)^1. Cancelling one shared copy still leaves (x + 1) downstairs, so the function still explodes at x = −1: vertical asymptote. Suppose instead the numerator holds at least as many copies as the denominator. The denominator factor cancels completely, the reduced function is perfectly well behaved at that x — but the original function is still undefined there, because you cannot un-cancel a zero denominator. The graph is the reduced graph with one point punched out: a hole, also called a removable discontinuity. This tool compares multiplicities at every root, which is why it can split the two cases instead of guessing.
The coordinates of a hole come from the reduced function: cancel the shared factor, then substitute. The guide's running example is f(x) = (2x^2 + 3x + 1) / (x^2 − 1). The denominator roots are x = 1 and x = −1. At x = 1 the numerator is 6, not zero, so x = 1 is a vertical asymptote. At x = −1 the numerator is 2 − 3 + 1 = 0: a shared factor (x + 1). Cancelling leaves (2x + 1) / (x − 1), and substituting x = −1 gives (−1) / (−2) = 0.5. The hole is at (−1, 0.5) — a finite, ordinary-looking point that happens to be missing. A denominator-only check would have reported two vertical asymptotes and been wrong about one of them.
Finding the roots themselves is the other half of the work. This tool tries, in order: the rational root theorem, which lists every possible rational root as a factor of the constant term over a factor of the leading coefficient and tests each by synthetic division; then the quadratic formula on any quadratic factor left over. Those two methods produce exact roots — fractions, or exact expressions when the discriminant is a perfect square. A denominator of degree 3 or 4 can have real roots that are neither rational nor part of a quadratic factor — the cube root of 2 in 1 / (x^3 − 2) is the standard example — and for those the tool falls back to a numeric scan and labels the result approximate wherever it appears. What it never does is sample a graph and read asymptote positions off the picture: a picture can suggest, but only the algebra decides.
One more case deserves a sentence: a denominator with no real roots at all, such as x^2 + 1. Then the function is defined for every real x and there are simply no vertical asymptotes and no holes. Students often leave this blank as if something were missing; "none" is a complete answer, and the tool states it in words.
Horizontal asymptotes: the degree comparison rules
Horizontal asymptotes are decided by a single comparison — the degree of the numerator against the degree of the denominator — because for very large x, only the leading terms of each polynomial matter. Lower-degree terms become negligible next to the leading term, so the fraction behaves like the ratio of its two leading terms, and that ratio has only four possible fates. The table below is the whole rule set, and it is exactly the comparison this tool performs.
| Degree comparison | End behaviour | How it is found | Example |
|---|---|---|---|
| deg P < deg Q | Horizontal asymptote y = 0 | The denominator grows faster, so the fraction shrinks to 0 | 1 / (x − 2): y = 0 |
| deg P = deg Q | Horizontal asymptote y = (leading coefficient of P) / (leading coefficient of Q) | Leading terms dominate and their ratio is constant | (2x^2 + 3x + 1) / (x^2 − 1): y = 2 / 1 = 2 |
| deg P = deg Q + 1 | No horizontal asymptote; oblique (slant) asymptote instead | Polynomial long division; the quotient is the line | (x^2 + 2x + 1) / (x − 1): y = x + 3 |
| deg P > deg Q + 1 | No horizontal or oblique asymptote; curvilinear asymptote | Polynomial long division; the quotient is a polynomial curve | x^4 / (x^2 + 1): y = x^2 − 1 |
Two properties of rational functions make this table simpler than the corresponding rules for other families. First, the two ends agree: as x → ∞ and as x → −∞ a rational function approaches the same horizontal or oblique asymptote, because the leading-term ratio behaves the same way in both directions. (Exponential and logarithmic functions can have different behaviour at the two ends; rational functions cannot.) Second, cancelling common factors never changes the answer: a shared factor removes the same degree from top and bottom and leaves both leading coefficients untouched, so the degree gap and the leading ratio are properties of the function, not of the particular form you typed. That is why this tool runs the comparison on the coefficients as entered, even when a hole was found.
The equal-degrees row is the one worth practising by hand until it is automatic. In (2x^2 + 3x + 1) / (x^2 − 1), ignore everything except 2x^2 and x^2: their ratio is 2, so the horizontal asymptote is y = 2. The smaller terms decide how the graph approaches the line — from above or below, and whether it crosses on the way — but never the line itself. If you only need the arithmetic of the coefficients themselves, the Fraction Calculator handles the ratio reductions, and the Long Division Calculator practises the division skill the next section needs.
Oblique (slant) asymptotes and polynomial long division
An oblique asymptote calculator really does one piece of mathematics: polynomial long division. When the numerator degree is exactly one more than the denominator degree, divide the numerator by the denominator. The quotient is a linear polynomial — that quotient is the slant asymptote — and the remainder, divided by the denominator, is a fraction whose numerator has smaller degree than its denominator, so it shrinks to 0 as x grows. The function therefore equals (the line) plus (something vanishing), which is precisely what "the graph approaches the line" means.
Work the guide's first example in full: divide x^2 + 2x + 1 by x − 1. The first term of the quotient is x^2 / x = x; multiplying back, x · (x − 1) = x^2 − x; subtracting from the numerator leaves 3x + 1. The next term is 3x / x = 3; multiplying back, 3 · (x − 1) = 3x − 3; subtracting leaves the remainder 4. So (x^2 + 2x + 1) / (x − 1) = (x + 3) + 4 / (x − 1), and since 4 / (x − 1) → 0 at the ends, the oblique asymptote is the line y = x + 3. This tool performs that division in exact fractions and prints both the quotient and the remainder, so the line is checkable rather than asserted.
The simplest slant case is x^3 / (x^2 + 1): one division step gives quotient x and remainder −x, so the function is x − x / (x^2 + 1) and the oblique asymptote is y = x itself. Note what did not happen: the denominator x^2 + 1 has no real roots, so this function has an oblique asymptote but no vertical asymptote — the two questions are independent, and a complete answer always addresses both. When the degree gap is two or more, the same division produces a quotient of degree 2 or higher, such as x^2 − 1 for x^4 / (x^2 + 1) (remainder 1). The graph still follows the quotient at the ends, but the quotient is a curve, not a line — a curvilinear asymptote — and reporting it as an "oblique asymptote" would be wrong, so the tool names it correctly.
Students sometimes ask whether the slant asymptote can be read off from the leading coefficients alone, the way the horizontal one can. It cannot, except for its slope: the slope of the oblique asymptote is the ratio of the leading coefficients, but the intercept depends on the next terms down in both polynomials, which is exactly the information long division extracts. That is the honest reason this section of the tool divides rather than shortcuts.
Worked examples, checked by hand
Every example below is a preset in the tool above, and each was chosen because you can verify it with a minute of arithmetic. An asymptote finder you cannot check is one you should not trust, so check these.
Example 1: f(x) = (x^2 + 2x + 1) / (x − 1). Denominator root: x = 1, with numerator value 1 + 2 + 1 = 4 there — not zero, so x = 1 is a vertical asymptote and there is no hole. Degrees 2 against 1 differ by one, so long division (worked in full in the previous section) gives quotient x + 3, remainder 4: the oblique asymptote is y = x + 3, and there is no horizontal asymptote.
Example 2: f(x) = (2x^2 + 3x + 1) / (x^2 − 1). Denominator roots x = 1 and x = −1. At x = 1 the numerator is 6: vertical asymptote x = 1. At x = −1 the numerator is 0: the factor (x + 1) cancels, the reduced function (2x + 1) / (x − 1) takes the value 0.5 at x = −1, so there is a hole at (−1, 0.5) and no asymptote there. Equal degrees give the horizontal asymptote y = 2 / 1 = 2. This single example exercises every rule on the page, which is why it is the hole preset.
Example 3: f(x) = 1 / (x − 2). Denominator root x = 2, numerator the constant 1, never zero: vertical asymptote x = 2. Numerator degree 0 is smaller than denominator degree 1, so the horizontal asymptote is y = 0. This is the reciprocal family in its shifted form — the same shape the Domain and Range Finder uses as its running example, with domain excluding 2 and range excluding 0.
Example 4: f(x) = x^3 / (x^2 + 1). The denominator has no real roots, so there are no vertical asymptotes and no holes — a complete answer, not a missing one. Degrees 3 against 2 differ by one; division gives quotient x with remainder −x, so the oblique asymptote is y = x. A graph of this function looks like the line y = x with a smooth S-wiggle near the origin, settling onto the line at both ends.
Example 5: f(x) = (x^2 − 4) / (x^2 − x − 6). The denominator factors as (x − 3)(x + 2), roots 3 and −2. The numerator (x − 2)(x + 2) shares the factor (x + 2): at x = −2 the reduced function (x − 2) / (x − 3) equals (−4) / (−5) = 4/5, so there is a hole at (−2, 4/5). At x = 3 the numerator is 5, not zero: vertical asymptote x = 3. Equal degrees: horizontal asymptote y = 1. Two denominator roots, two different fates — the multiplicity check is what tells them apart.
Crossing asymptotes and common mistakes
Mistake one: reporting every denominator root as a vertical asymptote. Example 2 and Example 5 above exist to kill this habit. A root shared with the numerator, with at least the same multiplicity, is a hole. Always run the numerator check before naming an asymptote.
Mistake two: believing a graph can never cross any asymptote. It can never cross a vertical asymptote, because the function is undefined there. But horizontal and oblique asymptotes govern only the ends of the graph; in the middle, the graph may cross them freely. The function (2x^2 + x) / (x^2 + 1), for instance, has horizontal asymptote y = 2 by the equal-degrees rule, yet at x = 2 it takes the value (8 + 2) / (5) = 2 exactly — it crosses its own asymptote in the middle of the graph and still settles onto the line as x grows large. Crossing and approaching are different claims, and only approaching is promised.
Mistake three: giving a horizontal asymptote when the degrees say otherwise. If the numerator degree exceeds the denominator degree, "no horizontal asymptote" is the answer — full stop — and the interesting question becomes the oblique or curvilinear one. Writing y = 0 out of habit for (x^2 + 2x + 1) / (x − 1), whose values grow along y = x + 3, misdescribes the ends completely.
Mistake four: forgetting the zero coefficient. Entering x^2 − 1 as "1, −1" describes the line x − 1, not the quadratic. Coefficient lists are positional: every power between the highest and the constant needs its coefficient, zero included. The tool labels every box with its power precisely so this can be checked at a glance.
Mistake five: reading asymptotes off a plotted graph. A graphing window can suggest where asymptotes are, but it cannot distinguish a hole from an asymptote (both look like a break at screen resolution), cannot prove a root is exactly 1 rather than 0.9998, and cannot show end behaviour beyond its edges. Use graphs to suspect and algebra to conclude — the same order this page's engine uses, and the reason its answers carry exact fractions where the algebra provides them.
Honest limits: rational functions only, exact and approximate roots
This asymptote finder covers rational functions — one polynomial divided by another, each of degree up to 4 — and only rational functions. Exponential functions such as 2^x have a horizontal asymptote (y = 0), logarithms have a vertical one, and tangent has infinitely many; each family has its own rules, and applying the degree comparison to them would produce confident nonsense. The tool therefore does not accept those functions at all, rather than accepting them and answering wrongly. Within its scope it reports all four end-behaviour outcomes, holes with coordinates, and multiplicity-aware vertical asymptotes.
Exactness has a boundary too, and the tool marks it. Roots produced by the rational root theorem and synthetic division are exact. A quadratic factor with a perfect-square discriminant gives exact roots; with any other positive discriminant the roots are irrational, printed as decimals and labelled approximate, because an expression like (−3 + √17) / 4 is exact but rarely what a student wants to read — the label tells you the printed decimal is a rounding of it. A cubic or quartic factor with no rational roots is solved by a numeric scan with bisection refinement; those roots are approximations by construction and are labelled approximate at every appearance, including inside hole coordinates computed from them. Nothing on this page upgrades a numeric root into an "exact" one for tidiness.
The coefficient language is bounded in the same spirit: integers, decimals and fractions like 3/2, degrees up to 4 on each side. That bound is a deliberate trade — degree 4 keeps every root either exactly solvable or honestly approximable with the methods above, and covers the rational functions of school and early university courses. For symbolic work beyond it — arbitrary degrees, parameters instead of numbers, proofs about families of functions — a computer algebra system is the right tool, and the answers here will at least tell you what to expect it to find. Finally, a plain statement of method: this is a deterministic algebra calculator, not AI. The same coefficients always produce the same asymptotes, by the rules in this guide.
Sources and References
The definitions of vertical, horizontal and oblique asymptotes, the degree-comparison rules, the treatment of holes as removable discontinuities after cancellation, and the long-division method for slant asymptotes in this guide follow the standard textbook treatment in the sources below. Every worked number on this page — the vertical asymptote x = 1 and oblique asymptote y = x + 3 of (x^2 + 2x + 1) / (x − 1) with remainder 4, the hole at (−1, 0.5) and horizontal asymptote y = 2 of (2x^2 + 3x + 1) / (x^2 − 1), the asymptotes x = 2 and y = 0 of 1 / (x − 2), and the oblique asymptote y = x of x^3 / (x^2 + 1) — was produced by this page's own engine and checked by hand, so you can reproduce each one in the tool above. Source note: all seven links below were verified live (HTTP 200) on 24 November 2026. Three candidate URLs checked the same day (the OpenStax Precalculus 5.6 address, a College Algebra rational-functions address, and a LibreTexts 5.06 address) returned 404 and were replaced with the correct section addresses listed here rather than linked unverified; the Paul's Online Math Notes link uses that site's graphing-rational-functions page, which covers the same asymptote rules.
- OpenStax, Precalculus 2e — Section 3.7, Rational Functions (vertical and horizontal asymptotes, graphing rational functions)
- OpenStax, Algebra and Trigonometry — Section 5.6, Rational Functions (asymptotes, removable discontinuities and end behaviour)
- LibreTexts, Precalculus (OpenStax) — Rational Functions (identifying vertical and horizontal asymptotes)
- Khan Academy — Horizontal Asymptotes of Rational Functions (degree comparison worked examples)
- Paul's Online Math Notes (Lamar University), Algebra — Graphing Rational Functions (vertical and horizontal asymptote process)
- Purplemath — Asymptotes: Vertical, Horizontal and Slant (degree rules and division method)
- Wikipedia — Asymptote (general definition, oblique and curvilinear asymptotes)