DerivCalc
Limits

Limit Calculator

Evaluate a limit at a point or at infinity, from either side, and see which rule settles it. Every answer is confirmed by evaluating the function closer and closer to the point.

Two-sided, one-sided and infinite limits4 worked examplesReviewed November 11, 2026
Interactive tool

Evaluate a limit

Use ^ for powers, * for multiplication and parentheses for functions. For infinity type inf or -inf.

Try:

What a limit measures

The limit of f(x) as x approaches a is the value f(x) gets arbitrarily close to when x is close to a, but not equal to it. The function does not even need to be defined at a. That is the whole point: limits let calculus talk about the slope of a curve at a single point, where the ordinary slope formula would divide by zero. The derivative itself is defined as a limit, as the derivative guide explains.

A one-sided limit only looks at one side: x → a⁻ uses values less than a, and x → a⁺ uses values greater than a. The two-sided limit exists exactly when both one-sided limits exist and agree.

How the calculator evaluates a limit

  1. Direct substitution: if f is continuous at the point (polynomials, sin, cos, eˣ and their combinations wherever they are defined), the limit is simply f(a).
  2. Leading terms at infinity: for a ratio of polynomials, compare degrees. A bigger denominator degree gives 0, equal degrees give the ratio of leading coefficients, and a bigger numerator degree gives ±∞.
  3. L'Hôpital's rule: if substitution gives 0/0 or ∞/∞, replace f/g with f′/g′ and try again, up to four rounds.
  4. Vertical asymptotes: if the denominator goes to 0 but the numerator does not, check the sign from each side to decide between +∞, −∞ and "does not exist".
  5. Numerical estimate: as a last resort, evaluate f closer and closer to the point and report the value it settles on, or report that it never settles.

Worked examples

Example 1: lim (x² − 9)/(x − 3) as x → 3

Answer: 6

  1. Substituting gives 0/0, an indeterminate form.
  2. Factor: (x − 3)(x + 3)/(x − 3) = x + 3 for x ≠ 3.
  3. Now substitute: 3 + 3 = 6. (L'Hôpital gives 2x/1 → 6 as well.)

Example 2: lim sin(x)/x as x → 0

Answer: 1

  1. Substituting gives 0/0.
  2. L'Hôpital: differentiate top and bottom to get cos(x)/1.
  3. cos(0) = 1. Geometrically, sin(x) ≈ x for small angles.

Example 3: lim (5x² − x)/(2x² + 7) as x → ∞

Answer: 5/2

  1. Both numerator and denominator have degree 2.
  2. Divide every term by x²: (5 − 1/x)/(2 + 7/x²).
  3. The small terms vanish, leaving 5/2.

Example 4: lim 1/(x − 1) as x → 1⁺

Answer: ∞

  1. The denominator approaches 0 while the numerator stays 1.
  2. From the right, x − 1 is a small positive number, so the fraction is large and positive.
  3. From the left it goes to −∞, so the two-sided limit does not exist.

Common mistakes

Getting 0/0 from substitution does not mean the limit is 0 or undefined. It means "more work needed": factor, rationalise, or use L'Hôpital's rule. On the other hand, 5/0 is not indeterminate; it signals a vertical asymptote, and the answer depends on the signs from each side.

With L'Hôpital's rule, differentiate the numerator and denominator separately. It is not the quotient rule. And check the form before every round: once substitution gives a definite number, stop. At infinity, remember that only the highest powers matter for rational functions, but exponentials beat any power: eˣ/x¹⁰⁰ still goes to infinity.

Scope note. The calculator handles limits in one variable. Indeterminate products and powers such as x·ln(x) at 0⁺ or (1 + 1/x)^x at ∞ are found numerically and matched to an exact value such as 0 or e; to show them by hand, rewrite them as a quotient or take a logarithm first. Limits of sequences, multivariable limits and ε–δ proofs are outside its scope.

How to verify an answer

Make a short table of values: plug in x = a ± 0.1, a ± 0.01 and a ± 0.001 and watch where f(x) heads from each side. Then confirm it algebraically: factor and cancel, multiply by a conjugate, divide by the highest power, or apply L'Hôpital's rule. A graph is a helpful third check, especially for one-sided limits and asymptotes.

Related calculators

Questions about limits

What does it mean when a limit does not exist?

Either the function approaches different values from the left and the right, as |x|/x does at 0, or it never settles on any value, as sin(1/x) does near 0. A limit that grows without bound is often written as ∞; strictly speaking that limit does not exist as a number either, but writing ∞ says how it fails.

When can I use L'Hôpital's rule?

Only when direct substitution gives an indeterminate form, 0/0 or ∞/∞. Then the limit of f/g equals the limit of f′/g′, provided that new limit exists. Using it on a form that is not indeterminate, such as 1/0, gives wrong answers.

Is the value at the point the same as the limit?

Only for continuous functions. A limit describes what happens near the point, not at it. (x² − 4)/(x − 2) is undefined at x = 2, yet its limit there is 4.

Why does the calculator sometimes call a result a numerical estimate?

When no algebraic rule applies directly, the calculator evaluates the function closer and closer to the point and reports the value it settles on, matched to a recognisable number such as e or π/2 when possible. The estimate is reliable, but a homework answer still needs an algebraic argument.

Editorial standard: definitions and methods are checked against OpenStax Calculus Volume 1, Chapter 2 (Limits) and Section 4.8 (L'Hôpital's Rule). Content is written and maintained by SilverCodeLabs. Report a correction with the exact limit and the expected result.