A rational function has a vertical asymptote at every x-value that makes its denominator zero and survives cancellation; if the factor cancels completely, that x-value is a hole in the graph instead. Horizontal asymptotes are decided by comparing the numerator's degree (n) with the denominator's degree (m): no asymptote when n > m, y = 0 when n < m, and y = the ratio of leading coefficients when n = m. Only one of those three horizontal cases can apply to a given function, so the set is complete in every problem.
That degree rule is the engine of the whole topic. Everything else β factoring, canceling, checking one-sided behavior β either supplies the inputs to that rule or blocks a false vertical answer. Work through the three cases below with actual polynomials, and the algorithm becomes mechanical. The judgment calls live in a handful of edge scenarios most textbook pages skip: canceled factors that look like asymptotes but aren't, slant asymptotes when n is exactly one more than m, and the denominator that looks like it has roots but doesn't because it's a sum of squares.
How to Find Vertical and Horizontal Asymptotes of a Rational Function in 5 Steps
Run every problem through this sequence in order, because the horizontal check changes once you cancel common factors. Write the function as f(x) = N(x)/D(x), with both numerator and denominator in fully factored form before step one.
1: Factor the numerator and denominator completely over the reals. Pull out common monomials first, then quadratics and cubics. A denominator that won't factor has no real zeros and therefore no vertical asymptotes from that piece. 2: List every distinct real zero of the denominator. These are the candidate x-values, and each one needs individual follow-up. 3: Cancel factors common to N and D, and record each canceled factor as a hole. A factor (x β c) that cancels completely removes the asymptote at x = c and leaves a removable discontinuity there. 4: Keep as vertical asymptotes every denominator zero whose factor did not cancel, and check whether the numerator is also zero at that x. A non-canceled common zero that reappears from a higher power is still a vertical asymptote. 5: Compare degrees: if n < m, the horizontal asymptote is y = 0; if n = m, it's y = aβ/bβ, the ratio of leading coefficients; if n > m, there is none, and n = m + 1 hands you a slant asymptote instead.
Here's step five working on three functions. For f(x) = (3xΒ² + 1)/(xΒ² β 9), n = m = 2, so the horizontal asymptote is y = 3/1 = 3. For g(x) = (2x + 5)/(xΒ³ β x), n = 1 and m = 3, so the horizontal asymptote is y = 0. For h(x) = (xΒ² β 1)/(x β 3), n = 2 and m = 1, so no horizontal asymptote exists β the graph instead approaches the slant line y = x + 3.
Failure handling matters more than the routine. If you cancel (x β 3) and then still list x = 3 as a vertical asymptote, you've contradicted step three. If you compare degrees before factoring, you may miscount powers. And if a denominator zero makes the numerator zero too after cancellation, test the sign on both sides β when both sides head in the same direction, the curve bends through the line rather than splitting around it, and that's a smooth vertical tangent, not a break.
The Degree Comparison Rule for Horizontal Asymptotes: Three Outcomes, Two Rows
Horizontal behavior comes entirely from the largest powers of x, since every lower-order term shrinks to irrelevance as |x| grows. The table below is the full decision set, and the two-counts-one-row fact is worth internalizing: cases one and two both produce a horizontal asymptote at a specific height, while the third produces no horizontal asymptote, only a slant line in the single case where the degrees differ by exactly one.
| Degree relation | Horizontal asymptote | Example | Limiting y-value |
|---|---|---|---|
| n < m (numerator degree smaller) | y = 0 | (5x + 2)/(xΒ² β 4) | 0 |
| n = m (equal degrees) | y = aβ/bβ, ratio of leading coefficients | (4xΒ³ β x)/(2xΒ³ + 7) | 2 |
| n = m + 1 (denominator one lower) | none β slant asymptote instead | (xΒ² + 1)/(x β 1) | line y = x + 1 |
| n > m by 2 or more | none | (xβ΄)/(x β 2) | grows without bound |
The ratio row is the one students mess up, because the leading coefficients are easy to half-read from unfactored expressions. Take f(x) = (6xΒ² β 5x)/(3xΒ² + x β 1). Both degrees are 2, leading coefficients 6 and 3, so the horizontal asymptote sits at y = 2 β not y = 6, not y = 1, and not y = 0, which is the reflex answer without the degree comparison.
Two context points that matter for placement in college math. In the AP Calculus AB and BC course descriptions published by the College Board, an "essential knowledge" statement under limits and continuity covers exactly these three degree cases for rational functions, so the rule shows up in exam questions framed as limit notation. At the precalculus level, standard texts such as Stewart's Precalculus present the same three cases as an end-behavior theorem, usually with the m = n + 1 slant case attached. Same rule, different clothes.
Now the failure case. Compare y = (xΒ² + 1)/(xΒ³) with y = (xΒ² + 1)/(xΒ²). The first has n = 2, m = 3, so the horizontal asymptote is y = 0 and the graph hugs the x-axis from above. The second has n = m = 2, so it's y = 1. Drop the lone x from the denominator and the horizontal line moves from 0 to 1 β a difference invisible until you commit the degrees to paper.
Case 1: Numerator Degree Below Denominator Degree Gives the x-Axis
When n < m, the horizontal asymptote is the line y = 0, and that is the entire answer for horizontal behavior. Three quick examples: y = (3x + 1)/(xΒ² + x β 6), y = 5/(x β 2), and y = (x)/(xβ΄ + 1) all flatten onto the x-axis as x runs to Β±β.
Vertical answers coexist with this, so a complete solution always has two halves. For y = (2x + 1)/(xΒ² β 4), the denominator factors as (x β 2)(x + 2), giving vertical asymptotes at x = 2 and x = β2, while the degree comparison gives the x-axis. Students who stop after the denominator often report only the vertical lines and get docked.
Direction of approach is worth one check with a plug-in number. At x = 2 in that function, the numerator evaluates to 5 (positive), and the denominator near x = 2 is moving through (x β 2)(4), which flips sign across the asymptote β so the curve dives to ββ on one side of x = 2 and climbs to +β on the other. At x = β2, the numerator is β3 (negative), and the analogous sign check sends the curve in the opposite pairing. Confirm each with a value like x = 1.9 or x = β2.1 rather than trusting the algebra.
The common wrong answer here is a nonzero horizontal line, usually cribbed from the numerator's constant. A function like 5/(x β 2) has horizontal asymptote y = 0, never y = 5. The numerator's constant does nothing to the horizontal behavior because denominator growth dominates it.
One quarantine note. Functions with sin x or cos x in the numerator, or ratios of polynomials grown this way, are outside the rational-function definition and don't follow the degree rule. The keyword here is polynomial-over-polynomial; keep square roots and trigonometry out of the degree table or you'll misapply it.
Case 2: Equal Degrees Give the Ratio of Leading Coefficients
When n = m, the horizontal asymptote is y = aβ/bβ, where aβ is the coefficient on the numerator's highest power and bβ the coefficient on the denominator's. This is the case that appears most often on tests because the ratio isn't obvious and the number is often a clean non-one constant.
A three-row derivation shows why the ratio survives. For f(x) = (4xΒ² + 3x β 1)/(2xΒ² β x + 5), divide top and bottom by xΒ²: (4 + 3/x β 1/xΒ²)/(2 β 1/x + 5/xΒ²). Every term with x in the denominator vanishes as x β Β±β, leaving 4/2 = 2. The same maneuver on degree-3 and degree-1 pairs confirms that only the leading coefficients survive.
Watch the sign, because the ratio carries it. The function f(x) = (β3xΒ² + x)/(6xΒ² β 2) has horizontal asymptote y = β3/6 = β1/2, and its graph approaches from below when x is large positive. Don't lose the negative sign by dropping it during the division.
An edge case: zero leading coefficient doesn't count. In (5x)/(2xΒ² + 1), the numerator's degree is 1, not 2, so the ratio rule doesn't apply β n < m, and the asymptote is y = 0. A missing highest power means a lower degree, full stop.
Arithmetic check on the ratio: put x = 1000 into (4xΒ² + 3x β 1)/(2xΒ² β x + 5). Numerator β 4,002,999; denominator β 1,999,005; the quotient is about 2.0025, closing on 2 from above. That's the horizontal asymptote confirming itself numerically, and it's a cheap way to catch a wrong ratio before it costs marks.
Case 3: Higher Numerator Degree Means No Horizontal Asymptote
When n > m, there is no horizontal asymptote β the function's end behavior is unbounded, and that's the correct answer to give, not y = some number. The degree table's last two rows are the whole case: the graph grows without bound in one direction or splits to opposite infinities, and no constant line ever captures it.
The important sub-case is n = m + 1, where a slant (oblique) asymptote appears. In (xΒ² β 4x)/(x + 1), long division gives quotient x β 5 with remainder 5, so the slant line is y = x β 5 and the curve approaches it as x β Β±β. The existence of a slant line doesn't create a horizontal one; the two never both apply.
For n at least m + 2, even the slant line disappears. In (xΒ³)/(x β 1), n = 3 and m = 1, so there's no horizontal asymptote and no slant asymptote β the difference in growth is too large for a line to track. Test with a large x: at x = 1000, the ratio is 10βΉ/999 β 1,001,001, which is nowhere near any fixed line.
State the negative result cleanly: "No horizontal asymptote; end behavior is unbounded" scores full credit, whereas writing "none" without qualification is occasionally read as a blank answer. If the test asks for the slant line when n = m + 1, perform the polynomial long division and give the quotient, dropping the remainder term as x grows. Both asymptote families can coexist, which is why each section owns one family.
Vertical Asymptotes After Cancellation: The Hole and Smooth-Tangent Traps
A denominator factor that cancels completely is a hole, not an asymptote, and this is the single most common grading loss in the whole topic. Take f(x) = (xΒ² β 9)/(xΒ² β x β 6). Factor both: (x β 3)(x + 3) over (x β 3)(x + 2). The factor (x β 3) cancels, so x = 3 is a hole, filled at the value y = (3 + 3)/(3 + 2) = 6/5 on the simplified function (x + 3)/(x + 2). The only vertical asymptote is x = β2.
Partial cancellation is the subtler trap. In (xΒ² β 4)/(xΒ² β 4x + 4) = (x β 2)(x + 2)/(x β 2)Β², one power of (x β 2) cancels, leaving (x + 2)/(x β 2). The asymptote at x = 2 survives because a leftover factor remains in the denominator. The rule is about which factors survive the cancellation entirely, not about which x-values appeared in the original denominator.
The smooth-tangent case catches people who cancel too eagerly. Consider 1/xΒ³. Three factors of x sit in the denominator and none cancel, so x = 0 is a vertical asymptote β but the graph plunges to ββ on the left and climbs to +β on the right, bending against the vertical line like a mirror. If you tested only one side, you'd report a straight crossing. Test both signs whenever the denominator zero has multiplicity above 1.
A fully canceled denominator pitfall: in 1/1 β a constant function written as a rational expression β the denominator is a nonzero constant and there's no denominator zero at all, so no vertical asymptote exists. Similarly, (xΒ² + 1) in a denominator never yields a real zero and therefore never yields a vertical asymptote, no matter how much it looks like it should. Check the discriminant, or note the sum of squares, before listing imaginary roots as asymptotes.
Three Worked Examples From Start to Finish
Complete solutions differ because the cases combine differently. Three examples cover the common exam shapes: vertical plus horizontal from the ratio, vertical plus x-axis, and a hole with a slant asymptote.
Example 1 β f(x) = (2xΒ² β 8)/(xΒ² β 5x + 6). Factor: numerator 2(x β 2)(x + 2); denominator (x β 2)(x β 3). Cancel (x β 2): simplified f(x) = 2(x + 2)/(x β 3), with a hole at x = 2. The remaining denominator zero gives the vertical asymptote x = 3. Degrees are equal (n = m = 2), so the horizontal asymptote is y = 2/1 = 2. Complete answer: vertical at 3, horizontal at 2, hole at (2, 8).
Example 2 β g(x) = (x + 1)/(xΒ³ β 4x). Denominator factors as x(x β 2)(x + 2); nothing cancels. Vertical asymptotes at x = 0, x = 2, and x = β2. n = 1, m = 3, so the horizontal asymptote is y = 0. Plug x = 0.1 into the original: numerator 1.1; denominator 0.001 β 0.4 = β0.399; value β β2.76, and as x shrinks toward 0 the value dives toward ββ. That confirms the sign behavior on one branch.
Example 3 β h(x) = (xΒ² β 1)/(x β 2). No cancellation. The denominator zero gives the vertical asymptote x = 2. n = 2, m = 1, so no horizontal asymptote; long division gives (x + 2) + 3/(x β 2), so the slant asymptote is y = x + 2. At x = 1000, h(1000) β 1,001.998, tracking the line 998 with a small offset β the approach is visible in a single plug-in.
The grading shortcut from all three: write your final answer as a labeled set, "Vertical: β¦, Horizontal: β¦, Hole: β¦," even when a row is empty or says "none." Rubrics for these problems consistently look for the three labels separately.
What the College Board and Standard Texts Count as a Complete Answer
Score the result against a real framework. The College Board's AP Calculus course description includes essential knowledge statements that a rational function's limit at infinity is decided by exactly the numeratorβdenominator degree comparison, and separate limit-from-a-side statements that a denominator zero with a non-canceling factor is an infinite discontinuity. Together those are the two halves of a complete answer, and a response that supplies only one loses points even when its number is right.
Where premium content differs from the open web is worked-example structure, not the degree rule. Stewart's Calculus and Larson's Calculus derive the degree comparison with a division-by-highest-power argument, then classify the m = n + 1 case into a slant line using long division β the same three-case table the College Board describes, but with the long-division remainder attached. Learning from the open web often skips the slant link, and that's the missing row.
A worked calc-style limit makes the standard concrete. For lim as x β β of (3xΒ³ + 2x)/(xΒ³ β xΒ² + 1), the answer is the ratio 3, full credit. For lim as x β 3 of (xΒ² β 9)/(xΒ² β 5x + 6) = lim (x + 3)/(x β 2) after canceling (x β 3), the answer is β6 β a hole, not an infinite discontinuity, and one point of the credit in many AP-style rubrics goes to identifying the cancellation itself.
Use the textbook framing for the syntax of the answer: "no horizontal asymptote" or "no vertical asymptote" are grading categories, not evasions. A blank row in a table is ambiguous; an explicit "none" is not. Match the framework by writing the degree comparison and the factored denominator side by side before finalizing.
Polynomial Long Division: A Third Asymptote Most Problems Hide
The rule most guides leave out: when n β₯ m + 1, dividing N by D gives a quotient polynomial plus a small remainder, and the quotient's degree tells you what kind of end-behavior line exists. For n = m + 1, the quotient is a line and the slant asymptote comes from it. For n β₯ m + 2, the quotient has degree at least 1 β a curve, sometimes a parabola β and the function pulls away from every straight line.
The current division: divide xΒ² + 3x + 2 by x + 1 β quotient x + 2, remainder 0. So the function was actually (x + 2) written disguised, and there's a hole at x = β1, not a slant asymptote. This is why an unfactored long-division problem with remainder 0 has a hole and not a slant asymptote: the quotient is a polynomial with no fraction attached.
Now divide (xΒ² + 1) by (x + 1). Quotient x β 1, remainder 2, so the end-behavior line is y = x β 1 and the curve approaches it, sitting 2/(x + 1) away. That's the slant-asymptote signature: a nonzero remainder divided by a higher-degree denominator. Zero remainder means hole; nonzero means slant.
The mismatch comes from a denominator that looks reducible but isn't. A parabola denominator like xΒ² + 1 has no real roots, so no vertical asymptote appears, even though it "looks like" a factorable trinomial. Only the surviving real roots count, and the division above already proves it.
How to Check Your Answer Without Graphing Software
A no-calculator check has three moves, and together they catch almost every error. First: plug in a large x, around 1000, and see what the function value tends toward. For (4xΒ² + 3x)/(2xΒ² + 5), f(1000) β 2.0015, which confirms the horizontal asymptote y = 2. For (xΒ² + 1)/(xΒ³), f(1000) β 10β»βΆ, approaching 0 as expected.
Second: check denominator zeros on both sides. At an asymptote x = 3, test x = 2.99 and x = 3.01 β if the values are large opposite-signed numbers, you've got the expected split; if they're large same-signed, the curve has a vertical tangent. A calculator's reciprocal of Β±0.01 is Β±100, and that doubled sign is enough.
Third β the one people skip β after cancellation, plug the hole's x-value into the simplified function. For (xΒ² β 9)/(xΒ² β x β 6), x = 3 in the simplified (x + 3)/(x + 2) gives 6/5, matching the hole coordinate. Plugging into the original gives 0/0 and confirms nothing; the simplified value is the actual hole height.
Narrow forms matter here. Ascertaining reading of the two-sided check works only when both one-sided signs can be computed; if one appears positive and the other positive but the values differ dramatically, your sign test is suspect, and redo it with closer points like Β±0.001. The numerical check is not a proof, but as a cheap autonomy test it works.
Quick Reference: Key Values and Pitfalls by Function Type
The reference table below condenses the whole article into one scan, organized by the shape of the rational function. Values and pitfalls are matched to the function each produces, so you can check your finished answer against the row that fits your problem.
| Function shape | Vertical asymptote | Horizontal asymptote | Primary mistake |
|---|---|---|---|
| n < m, no cancellations | every real denominator root | y = 0 | reporting a nonzero line |
| n = m | every real denominator root | y = aβ/bβ | miscounting the leading ratio |
| n = m + 1, factorable | surviving denominator roots | none (slant instead) | calling the slant a horizontal asymptote |
| n β₯ m + 2 | surviving denominator roots | none | inventing a horizontal line |
| factor cancels completely | none at that root (hole) | degree rule applied after canceling | listing the hole as vertical |
| factor cancels partially | the root survives | degree rule unchanged | over-canceling to a hole |
| denominator is a sum of squares | none | degree rule only | listing imaginary roots |
| rational function is a constant | none | y = the constant | treating it as n = m with zeros |
The two most expensive row pairs are the hole rows and the slant row, because both produce an answer that looks complete but is wrong by one label. The table's final column names the exact mistake, and grading rubrics in standard texts consistently single out those labels as separate credit categories.
Use the table as a post-check, not a shortcut: walk the five steps, then verify the outcome against the row that matches your function's degree relation and cancellation history. If the two disagree, the walkthrough wins and the row is where you misclassified the function.
FAQ
Why does a canceled factor create a hole instead of a vertical asymptote?
Because the graph has no blow-up there. In (xΒ² β 9)/(xΒ² β x β 6), the factored form is (x β 3)(x + 3)/((x β 3)(x + 2)); after canceling (x β 3), the value at x = 3 is 6/5 from the simplified function β a finite point, so the only defect is a single missing point. That's the definition of a removable discontinuity, and it's removed by filling the point, not by drawing a line. If any power of the factor survives in the denominator, you're back to a true vertical asymptote.
Can a rational function have both a vertical and a horizontal asymptote?
Yes β in fact that combination is the standard case, not the exception. In (2x + 1)/(xΒ² β 4), the denominator's roots give vertical asymptotes at x = 2 and x = β2, while the degree comparison (n = 1, m = 2) gives the horizontal asymptote y = 0. The two families never conflict; they describe behavior in perpendicular directions. Each side of the graph can hug a vertical line and also flatten onto a horizontal line, and both facts belong in the answer.
How do I find a slant asymptote if the problem asks for it?
Divide the numerator by the denominator using polynomial long division and keep the quotient, dropping the remainder. For (xΒ² β 4x)/(x + 1), the quotient is x β 5, so the slant asymptote is the line y = x β 5. Two conditions apply: the slant asymptote exists only when n = m + 1, and it never exists alongside a horizontal asymptote. If the remainder is zero, the function was actually the quotient polynomial, and the "asymptote" is a hole-removed spread.
Why can't I use the degree rule for the denominator's roots?
Because degree comparison governs end behavior, not behavior near a specific x-value. The horizontal asymptote is decided by the largest powers, which dominate only as x β Β±β. A vertical asymptote is decided by a denominator zero at a finite x, where the degree comparison is irrelevant. Mixing the two β for example, using the denominator's degree to predict a horizontal line, or the numerator's degree to predict a vertical line β produces answers that don't match the graph.
What if the denominator doesn't factor β are there really no vertical asymptotes?
Correct, as long as the denominator has no real zeros and nothing cancels. A denominator like xΒ² + 1 has discriminant β4, so it produces no real roots and therefore no vertical asymptotes, even though it's a legitimate polynomial-over-polynomial rational function. The numerator still supplies the degrees and the horizontal answer. Check the discriminant or complete the square before listing any root; a sum of squares has none.
Why isn't the horizontal line at the numerator's constant?
Because the numerator's constant is a lower-order term once the denominator grows. For 5/(x β 2), the numerator is a constant, degree 0, while the denominator has degree 1 β so n < m, and the horizontal asymptote is y = 0 (the value the fraction tends to as x grows), not y = 5. The constant 5 shows up in the graph's height only near x = 2; it doesn't survive to infinity.
Does the rule change if the function is written as a product of two fractions?
Degrees still settle it β multiply the factors first, then compare. But watch for restrictions that don't simplify: 1/(x β 1) Β· (x β 1)/(x + 2) = (x β 1)/((x β 1)(x + 2)), simplified to 1/(x + 2) with a hole at x = 1. The multiplication step can hide a removable cancellation, so factor and cancel before applying any degree rule or listing denominator roots.
What does "no horizontal asymptote" actually mean on the graph?
It means the curve's end behavior is unbounded: the values keep growing or splitting toward opposite infinities, and no constant line captures them. In xΒ²/(x β 1), a sample of x = 1000 gives roughly 999.999 β the line y = x + 1 tracks the curve, and that's a slant asymptote, not a horizontal one. Because n = 2 and m = 1, the degree rule returns "none," and that's a real answer worth stating in full, not an evasion.
This is general educational information, not a substitute for instruction from a teacher or a campus math center. The definitions and conventions follow the standard calculus and precalculus sequence; if your course uses a different notation, check with your instructor before relying on these answers.