Skip to content

Limit Calculator with Steps

Limits at a point or at ±∞, one-sided limits and L’Hôpital steps.

Your details

Direction

Results update as you type

Limit

1

Left-hand limit
1
Right-hand limit
1
Indeterminate form at a
0/0

For 0/0 or ∞/∞, L’Hôpital’s rule applies: lim f/g = lim f′/g′.

Step-by-step solution
  1. f(x) = sin(x)/x, x → 0
  2. f(0) → 0/0
  3. L’Hôpital’s rule: lim sin(x)/x = lim cos(x)/1
  4. Left-hand limit: 1 · Right-hand limit: 1
  5. lim f(x) = 1 (x → 0)

The limit of f(x)f(x) as xx approaches aa is the value the function gets close to — whether or not f(a)f(a) itself exists. Limits define derivatives and integrals, describe asymptotes and settle questions such as "what happens to sin⁡xx\frac{\sin x}{x} at 0?". This limit calculator answers them for any function of xx, at a finite point, from the left or the right, or at +∞+\infty and −∞-\infty.

It works the way a careful student would. First it tries direct substitution: if ff is continuous at aa, the limit is simply f(a)f(a). If substitution gives an indeterminate form — 0/00/0, ∞/∞\infty/\infty, 0⋅∞0 \cdot \infty, ∞−∞\infty - \infty or 1∞1^\infty — it names the form, and for quotients it applies L’Hôpital’s rule with symbolic derivatives, showing each step. Finally it checks the answer numerically from both sides, using Richardson and Aitken extrapolation, so it can also tell you when the limit is +∞+\infty, −∞-\infty or does not exist.

When the one-sided limits are infinite, the calculator points out the vertical asymptote; a finite limit at ±∞\pm\infty gives a horizontal asymptote.

How to use this calculator

  1. Type the function in Function f(x), for example sin(x)/x, (x^2-1)/(x-1) or (1+1/x)^x.
  2. Enter the point in x approaches a: a number, a constant such as pi/2, or inf / -inf for limits at infinity.
  3. For a finite point choose Two-sided, Left a⁻ or Right a⁺.
  4. Read the limit, the left- and right-hand limits and the indeterminate form, if any.
  5. Open the steps for the substitution, the L’Hôpital derivatives and the conclusion.

The formula

Formally, lim⁡x→af(x)=L\lim_{x \to a} f(x) = L means that f(x)f(x) can be made as close to LL as you like by taking xx close enough to aa (but x≠ax \neq a). The two-sided limit exists only when both one-sided limits exist and are equal:

lim⁡x→af(x)=L  ⟺  lim⁡x→a−f(x)=lim⁡x→a+f(x)=L\lim_{x \to a} f(x) = L \iff \lim_{x \to a^-} f(x) = \lim_{x \to a^+} f(x) = L

L’Hôpital’s rule. If f(x)→0f(x) \to 0 and g(x)→0g(x) \to 0 (or both tend to ±∞\pm\infty), then

lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)\lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)}

provided the right-hand limit exists. A product 0⋅∞0 \cdot \infty is first rewritten as a quotient, e.g. xln⁡x=ln⁡x1/xx \ln x = \frac{\ln x}{1/x}.

Numerical check. The calculator evaluates f(a±t)f(a \pm t) for t=0.1,0.05,0.025,…t = 0.1, 0.05, 0.025, \dots (or f(±1/t)f(\pm 1/t) at infinity) and extrapolates t→0t \to 0, which detects convergence, unbounded growth and oscillation.

Worked example

0/0 at a point. For lim⁡x→0sin⁡xx\lim_{x \to 0} \frac{\sin x}{x}, substitution gives 0/00/0. L’Hôpital: lim⁡cos⁡x1=1\lim \frac{\cos x}{1} = 1.

Removable discontinuity. x2−1x−1\frac{x^2-1}{x-1} is undefined at 1, but lim⁡x→1=lim⁡2x1=2\lim_{x \to 1} = \lim \frac{2x}{1} = 2 — the same as factoring (x−1)(x+1)(x-1)(x+1).

Two L’Hôpital steps. lim⁡x→01−cos⁡xx2=lim⁡sin⁡x2x=lim⁡cos⁡x2=12\lim_{x \to 0} \frac{1-\cos x}{x^2} = \lim \frac{\sin x}{2x} = \lim \frac{\cos x}{2} = \frac{1}{2}.

Does not exist. For 1x\frac{1}{x} at 0, the left-hand limit is −∞-\infty and the right-hand limit +∞+\infty, so the limit does not exist and x=0x = 0 is a vertical asymptote.

At infinity. lim⁡x→∞(1+1x)x=e≈2.7182818285\lim_{x \to \infty} \left(1 + \frac{1}{x}\right)^x = e \approx 2.7182818285 (form 1∞1^\infty), and lim⁡x→∞2x2+35x2−x=25=0.4\lim_{x \to \infty} \frac{2x^2+3}{5x^2-x} = \frac{2}{5} = 0.4.

Finding asymptotes with limits

  • Vertical asymptote x=ax = a: at least one one-sided limit at aa is ±∞\pm\infty (e.g. 1/x1/x at 0, tan⁡x\tan x at π/2\pi/2).
  • Horizontal asymptote y=Ly = L: lim⁡x→±∞f(x)=L\lim_{x \to \pm\infty} f(x) = L is finite.
  • Oblique asymptote y=mx+ny = mx + n: m=lim⁡x→∞f(x)/xm = \lim_{x \to \infty} f(x)/x and n=lim⁡x→∞(f(x)−mx)n = \lim_{x \to \infty} (f(x) - mx). For f(x)=x2+1xf(x) = \frac{x^2+1}{x}, enter ((x^2+1)/x)/x at inf to get m=1m = 1, then (x^2+1)/x - x to get n=0n = 0: the asymptote is y=xy = x.

Limits, derivatives and integrals

The derivative is the limit of a difference quotient, and the definite integral the limit of Riemann sums. The derivative calculator gives the symbolic derivatives this page uses for L’Hôpital’s rule, and the integral calculator handles improper integrals, which are limits too.

Frequently asked questions

What does "does not exist" mean?

Either the left- and right-hand limits differ (|x|/x at 0 gives −1 and 1), the function grows to +∞ on one side and −∞ on the other (1/x at 0), or it oscillates without settling (sin(1/x) at 0, sin(x) at ∞).

Is an infinite limit a limit that exists?

Strictly, a limit of +∞ or −∞ means the function grows without bound in a definite direction. The calculator reports +∞ or −∞ in that case, which tells you more than "does not exist" and signals a vertical asymptote at a finite point.

Which indeterminate forms are recognised?

0/0 and ∞/∞ (solved with L’Hôpital’s rule), 0·∞ (rewritten as a quotient), ∞ − ∞ and 1^∞. For the last two the value comes from the numerical analysis; for 1^∞ you can also take logarithms by hand.

Can L’Hôpital’s rule fail?

Yes, when the limit of f′/g′ does not exist. For (x + sin x)/x at ∞, the derivative quotient 1 + cos x oscillates, yet the original limit is 1. The calculator then keeps the numerical value of f itself and tells you so.

How do I enter a limit at infinity?

Type inf (or ∞) for +∞ and -inf for −∞ in the point field. The direction buttons are hidden because x can only approach infinity from one side.

Sources

Last updated:

More Math calculators

People also use