Skip to content

Calculus tool

Limit at Infinity Calculator

This is a focused walkthrough of one specific question: what happens to f(x) as x grows without bound (x → ∞) or shrinks without bound (x → -∞)? Type your function below, set the target to "infinity" or "-infinity", and the calculator applies the degree-comparison rule for rational functions automatically, or falls back to a numerical check for anything else, showing exactly which case applied.

Use a number, "pi", "-infinity" or "infinity".

Direction both sides
Try:
limx→2 f(x) =
Was this tool helpful?
Give feedback

The degree-comparison rule for rational functions at infinity

For a rational function (one polynomial divided by another), the behavior as x → ±∞ depends entirely on comparing the degree of the numerator to the degree of the denominator; every lower-degree term becomes irrelevant once x is large enough, because the highest-degree term dominates the sum. This one comparison covers the overwhelming majority of "limit at infinity" problems in a typical calculus course:

Worked example, full walkthrough

Consider limx→∞ (3x² + 1) / (x² - 5). Both the numerator (degree 2) and the denominator (degree 2) have the same degree, so the equal-degree rule applies directly: divide the leading coefficients, 3 and 1, to get 3. A quick sanity check with large values confirms it: at x = 1,000,000 the ratio is extremely close to 3, and it keeps getting closer as x grows further, exactly matching the exact algebraic answer with no need to plug in an actual infinite value.

  1. Identify the degrees: numerator 3x² + 1 has degree 2; denominator x² - 5 has degree 2.
  2. Equal degrees, so the limit is the ratio of leading coefficients: 3 / 1.
  3. Conclusion: the limit is 3 as x → ∞ (and, by the same reasoning, also 3 as x → -∞, since even-degree leading terms behave the same in both directions).

x → ∞ versus x → -∞: when the answer differs by direction

For an even-degree leading term (x², x⁴, and so on), the sign of x barely matters once it's squared, so the limit is usually the same heading toward +∞ and -∞. For an odd-degree leading term (x, x³, x⁵...), the sign absolutely matters: x³ heads toward +∞ as x → ∞, but toward -∞ as x → -∞. This calculator evaluates the two directions completely independently, which is exactly why it is worth double-checking both when a function has an odd-degree dominant term, rather than assuming the answer is the same in both directions.

Non-polynomial functions at infinity

Not every "limit at infinity" problem is a ratio of polynomials. For exponential, logarithmic, or trigonometric functions, the calculator falls back to a numerical check: sampling f(x) at very large values of x (and very negative values, for x → -∞) and checking whether the values settle toward a stable number, grow without bound, or oscillate. A classic example is limx→∞ e-x, which decays toward 0 as x grows (exponential decay always beats polynomial growth), while limx→∞ ln(x) grows without bound, just extremely slowly, so it is reported as +∞, not as a finite convergence.

Horizontal asymptotes and limits at infinity are the same question

If limx→∞ f(x) = L (a finite number), then the line y = L is a horizontal asymptote of the graph of f, the value the curve flattens out toward on the right side of the graph. A function can have a different horizontal asymptote on the left (as x → -∞) than on the right, or one side only, or none at all if the limit in that direction is infinite or does not settle. Calculating a limit at infinity is therefore exactly the calculation behind finding a function's horizontal asymptotes, just phrased as a graphing question instead of a symbolic one.

Related tools

For a limit at a finite point rather than at infinity, or for one-sided limits and factoring examples, see the general-purpose limit calculator. For an indeterminate ∞/∞ form specifically (for example, an exponential over a polynomial, where degree comparison does not directly apply), the L'Hopital's rule calculator differentiates numerator and denominator symbolically instead.

Frequently asked questions

How do I type infinity into the calculator?
Type "infinity" (or "inf") for positive infinity, or "-infinity" (or "-inf") for negative infinity, in the target field. The calculator recognizes both spellings and the ∞ symbol.
What is the limit of a constant as x approaches infinity?
A constant function doesn't change as x changes, so its limit at infinity is just the constant itself. This is the trivial base case behind the degree-comparison rule: a constant is a degree-0 polynomial, so "numerator degree 0, denominator degree 0" gives their ratio, which for a plain constant with no denominator is simply the constant's own value.
Why is the limit of 1/x as x approaches infinity equal to 0, but the limit of 1/x as x approaches 0 is infinite?
These are two different questions about the same function. As x grows without bound, 1/x shrinks toward 0 (the numerator stays fixed while the denominator grows, so the fraction as a whole shrinks). As x shrinks toward 0 instead, the denominator itself is heading toward 0 while the numerator stays fixed, which makes the fraction grow without bound: a vertical asymptote, not a horizontal one. Same function, two very different limits, because the target value is different.
Do exponential functions always beat polynomials at infinity?
Yes, for growth toward positive infinity: any exponential function with a base greater than 1 (like eˣ or 2ˣ) eventually outgrows any polynomial, no matter how high its degree, so a ratio like x¹⁰⁰/eˣ still has a limit of 0 as x → ∞. In the other direction, a ratio like eˣ/x¹⁰⁰ has a limit of +∞. This is the intuition behind the L'Hopital's rule example on this site's dedicated L'Hopital's rule calculator page, where differentiating a polynomial eventually reduces it to a constant while differentiating an exponential just reproduces the same exponential.
What does it mean if there is no horizontal asymptote?
It means the limit as x → ∞ (or x → -∞) is infinite, or the function never settles toward a single value in that direction at all (some oscillating functions, for example, never approach a horizontal asymptote even though they stay bounded). A numerator-degree-greater-than-denominator-degree rational function is the most common example: the graph grows without bound instead of flattening out.

Need an indeterminate ∞/∞ ratio solved instead?

Use the L'Hopital's rule calculator for symbolic differentiation, step by step.

Go to the L'Hopital's rule calculator

Free. No sign-up.