This asymptotes calculator analyzes a rational function f(x) = P(x)/Q(x) (numerator and denominator up to quadratic) and reports its vertical asymptotes, any holes, its horizontal asymptote by the degree rules, and its slant (oblique) asymptote when the numerator outdegrees the denominator by exactly one. Asymptotes are the skeleton of a rational graph — know them and you can sketch the function before plotting a single point.

Numerator P(x) = a₂x² + a₁x + a₀

Denominator Q(x) = b₂x² + b₁x + b₀

Vertical asymptotes –
Holes (removable discontinuities) –
Horizontal asymptote –
Slant (oblique) asymptote –

The Three Questions Every Rational Graph Answers

Vertical asymptotes live where the denominator vanishes — but with a courtroom standard: an x-value is a vertical asymptote only if the numerator does not also vanish there. When both vanish, the factor cancels and the graph gets a hole (removable discontinuity) instead: the function approaches a perfectly finite y-value and simply isn't defined at that single point. This calculator checks every denominator root against the numerator, which is the step hand analysis most often skips — see the trap in the worked examples. Horizontal asymptotes are end-behavior statements (what y the graph settles toward as x → ±∞) and obey the degree table: numerator degree smaller → y = 0; degrees equal → y = ratio of leading coefficients; numerator bigger → no horizontal asymptote. Slant asymptotes fill the “bigger by exactly one” case: divide P by Q (our Polynomial Division Calculator does the long division) and the quotient line is the asymptote the graph hugs at the extremes.

Two subtleties repay attention. First, a graph may cross its horizontal or slant asymptote (they govern only the far ends — nothing forbids a mid-graph crossing, and rational functions do it cheerfully); it may never cross a vertical asymptote, because the function isn't defined there and blows to ±∞ on at least one side. Second, horizontal behavior is the same at both ends for rational functions (unlike exponentials) — one HA line serves x → +∞ and x → −∞ alike, a small mercy of the family.

Worked Examples (Verified)

  • Defaults: f(x) = (3x² + 2x)/(x² − x − 2) = (3x² + 2x)/((x − 2)(x + 1)). Denominator roots 2 and −1; numerator there: 16 and 1 — neither zero → vertical asymptotes x = 2 and x = −1. Degrees equal → horizontal asymptote y = 3 (leading ratio 3/1). No slant (degree gap 0).
  • The hole trap: g(x) = (2x² + 3x − 2)/(x² − 4). Denominator roots ±2; numerator at x = −2 is 8 − 6 − 2 = 0 → hole at x = −2 (limiting y = 5/4 by the simplified function (2x − 1)/(x − 2)), and only x = 2 is a true vertical asymptote. Factor-and-cancel by hand shows the same: (2x − 1)(x + 2)/((x − 2)(x + 2)).
  • Slant: h(x) = (x² + 3x + 1)/(x + 1): division gives quotient x + 2, remainder −1 → slant asymptote y = x + 2, no horizontal asymptote. Verify at x = 100: h = 10,401/101 ≈ 102.98 vs the line's 102 — closing as promised.

Asymptote Discipline

  • Factor first, always: cancel common factors before classifying — the asymptote/hole decision is made on the reduced form, with holes recorded at the canceled values.
  • Denominator roots that are complex (D < 0) contribute neither asymptotes nor holes — an irreducible quadratic denominator means a smooth, everywhere-defined denominator; this calculator reports “none” rather than inventing real roots.
  • Repeated denominator roots still give one vertical asymptote line, but the graph's blow-up behavior differs by multiplicity (same-sign infinities for even multiplicity) — the sketch cares even when the list doesn't.
  • End behavior uses leading terms only; every lower term is asymptotically irrelevant — which is why degree comparisons, not full division, settle horizontal asymptotes.
  • Intercepts and sign charts complete the sketch: asymptotes partition the domain into intervals where the function keeps one sign — the full pre-calculus routine this page anchors.

Related Tools

Frequently Asked Questions

How do you find vertical asymptotes?

Set the denominator to zero and solve — then keep only the roots where the numerator is nonzero. Those x-values are vertical asymptotes; roots shared with the numerator are holes instead. For (3x² + 2x)/(x² − x − 2), denominator roots are 2 and −1, the numerator is nonzero at both, so x = 2 and x = −1 are vertical asymptotes. This calculator performs the numerator check automatically — the step that separates asymptotes from holes.

How do you find the horizontal asymptote?

Compare degrees. Numerator degree < denominator degree → y = 0. Equal degrees → y = (leading coefficient of P)/(leading coefficient of Q). Numerator degree greater → no horizontal asymptote (look for a slant instead when the gap is exactly 1). Our default function has equal degrees with leading coefficients 3 and 1, so y = 3 — the height both tails of the graph approach.

What is a slant (oblique) asymptote?

The line the graph approaches at its extremes when the numerator's degree is exactly one more than the denominator's. Find it by polynomial long division: the quotient is the slant line, the remainder's contribution vanishes at the extremes. (x² + 3x + 1)/(x + 1) divides to (x + 2) + (−1)/(x + 1), so the slant asymptote is y = x + 2. This calculator produces it for the quadratic-over-linear case and links the division tool for the working.

Asymptote vs hole — what's the difference?

At a vertical asymptote the function is undefined and unbounded nearby (|f| → ∞). At a hole the function is undefined at exactly one point but approaches a finite limit — the graph is the reduced function's graph with a single point removed (drawn as an open circle). They arise from the same denominator root; the numerator's value there decides which: nonzero → asymptote, zero (shared factor) → hole. Holes' y-coordinates come from evaluating the simplified function, as our worked example shows (hole at (−2, 5/4)).

Can a graph cross its asymptotes?

Horizontal and slant: yes, freely — they describe end behavior only, and functions may cross them any number of times in the middle (though tails must eventually settle alongside). Vertical: never — the function is undefined on the line itself and tends to ±∞ beside it; “crossing” would require a value at the asymptote, which is exactly what doesn't exist. The asymmetry is a favorite exam trap and a reliable sketch-check.

What if the denominator has no real roots?

Then there are no vertical asymptotes and no holes — the function is defined and continuous everywhere (e.g., 1/(x² + 1)). End behavior is decided by degrees as usual (y = 0 there). This calculator's denominator solver reports the no-real-roots case honestly instead of forcing the quadratic formula's complex output into a real-valued list.

Do asymptotes determine the whole graph?

They determine its skeleton: the domain breaks at vertical asymptotes/holes, the tails follow the horizontal/slant lines, and between consecutive breaks the function is continuous with constant sign — so adding intercepts and a sign chart yields a faithful sketch without plotting dozens of points. That routine (asymptotes → intercepts → sign → sketch) is precisely the pre-calculus workflow this page accelerates.

Is this asymptotes calculator free?

Yes — free, instant, no sign-up. Enter numerator and denominator coefficients (to degree 2) for vertical asymptotes, holes, horizontal and slant asymptotes.