Calculus

Limit Calculator

Enter f(x) and the point a to find the limit of f(x) as x → a with steps: from both sides, from the left, from the right, or as x → ±∞.

Try

Use x as the variable, for example (x^2 - 1)/(x - 1) or (1 + 1/x)^x. Trigonometric functions use radians.

A number or expression such as pi/2. Type inf or -inf for limits at infinity.

Direction

Ignored for limits at ±infinity.

Result

Limit as x → 0 (numerical estimate): 1

Limit as x → 0 (numerical estimate)

limx→0sin(x)x=1\lim_{x \to 0} \frac{\sin\left(x\right)}{x} = 1

f(0)Division by zero
not defined
Left-hand limit (x → a⁻)
1
Right-hand limit (x → a⁺)
1
Form at x = 0The form alone does not determine the limit
00(indeterminate)\frac{0}{0} \; \text{(indeterminate)}
Solve by handThe algebraic method that usually resolves this form
Factor and cancel, multiply by a conjugate, or use L’Hôpital’s rule
Continuity
Removable discontinuity (a hole)
Method
Richardson extrapolation of nearby values

As x → 0, f(x) = sin(x)/x approaches 1. Direct substitution gives the indeterminate form 0/0, but the values of f settle on this number.

This is a numerical estimate from values of f(x) close to the point. It is reliable for ordinary functions but is not a proof; very slow or very fast oscillation can mislead any numerical method.

0/0 is an indeterminate form: different functions with this form can have any limit, or none. Algebra (factoring, rationalizing), L’Hôpital’s rule or series are the usual ways to find the exact value.

Trigonometric functions use radians.

f(x) near x = 0
0.60.81−2−1.5−1−0.500.511.52xf(x)f(x)Limit
Values of f(x) near x = 0
hx = a − hf(a − h)x = a + hf(a + h)
0.1−0.10.99833416650.10.9983341665
0.01−0.010.99998333340.010.9999833334
0.001−0.0010.99999983330.0010.9999998333
0.0001−0.00010.99999999830.00010.9999999983
0.00001−0.0000110.000011
0.000001−0.00000110.0000011
Step-by-step working (4 steps)
  1. Try direct substitution

    Substituting x = 0 gives the form 0/0, which is indeterminate: it does not say what the limit is, so look at values near the point.

    f(0)→00f\left(0\right) \to \frac{0}{0}
  2. Approach from both sides

    Evaluate f at points a distance h from 0, with h shrinking toward 0 (see the table). From the left the values approach 1. From the right they approach 1.

  3. Extrapolate to h = 0

    Values of f at distances h, h/2, h/4, … are combined by Richardson extrapolation, which cancels the leading error terms and estimates the value at h = 0.

  4. Conclusion

    limx→0sin(x)x=1\lim_{x \to 0} \frac{\sin\left(x\right)}{x} = 1

The calculator tries direct substitution, names indeterminate forms such as 0/0, shows a table of values approaching the point, checks continuity and extrapolates to the limit. For example, sin(x)/x approaches 1 as x → 0.

By Hira Noor, mathematicianLast reviewed Free, no sign-up, runs in your browserReport a problem

How to use this calculator

  1. Type the function with x as the variable, for example sin(x)/x, (x^2 - 1)/(x - 1) or (1 + 1/x)^x.
  2. Enter the point a. Use numbers, fractions or expressions such as pi/2; type inf or -inf for a limit at infinity.
  3. Choose the direction: both sides for an ordinary limit, or the left (x → a⁻) or right (x → a⁺) for a one-sided limit.
  4. Read the limit, then check the left-hand and right-hand values and the table. A two-sided limit exists only when both one-sided limits exist and are equal.
  5. If substitution gives an indeterminate form, the result suggests the algebraic method to use by hand, so you can check your own working against the number.

Formulas

Two-sided limit

limx→af(x)=L⇔limx→a−f(x)=L=limx→a+f(x)\lim_{x \to a} f(x) = L \iff \lim_{x \to a^{-}} f(x) = L = \lim_{x \to a^{+}} f(x)

Plain-text formula: lim_{x → a} f(x) = L ⇔ lim_{x → a^ − } f(x) = L = lim_{x → a^ + } f(x)

The limit describes the values of f near a, not at a. It exists only when the left-hand and right-hand limits agree.

Continuity

limx→af(x)=f(a)\lim_{x \to a} f(x) = f(a)

Plain-text formula: lim_{x → a} f(x) = f(a)

When this holds, f is continuous at a and direct substitution gives the limit. Polynomials, sin, cos and exp are continuous everywhere, and rational functions wherever the denominator is not 0.

L’Hôpital’s rule

limx→af(x)g(x)=limx→af′(x)g′(x)\lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f^{\prime}(x)}{g^{\prime}(x)}

Plain-text formula: lim_{x → a} (f(x))/(g(x)) = lim_{x → a} (f′(x))/(g′(x))

Valid only for the forms 0/0 and ∞/∞, when the limit on the right exists. Differentiate the numerator and the denominator separately (not with the quotient rule). The derivative calculator finds f′ and g′.

Squeeze theorem

g(x)≤f(x)≤h(x) and limx→ag(x)=limx→ah(x)=L⇒limx→af(x)=Lg(x) \le f(x) \le h(x) \text{ and } \lim_{x \to a} g(x) = \lim_{x \to a} h(x) = L \implies \lim_{x \to a} f(x) = L

Plain-text formula: g(x) ≤ f(x) ≤ h(x) and lim_{x → a} g(x) = lim_{x → a} h(x) = L ⇒ lim_{x → a} f(x) = L

Trap f between two functions with the same limit. It is how limx→0x2sin⁡1x=0\lim_{x \to 0} x^2 \sin\frac{1}{x} = 0 is proved, since −x2≤x2sin⁡1x≤x2-x^2 \le x^2 \sin\frac{1}{x} \le x^2.

Richardson extrapolation (the method this calculator uses)

L≈2kT(h/2)−T(h)2k−1L \approx \frac{2^k\,T(h/2) - T(h)}{2^k - 1}

Plain-text formula: L ≈ (2^k T(h/2) − T(h))/(2^k − 1)

Values T(h) = f(a ± h) at halving distances are combined so the leading error terms cancel, giving an estimate of the value at h = 0. When the values settle too slowly, Aitken’s Δ² process is used on samples at distances 10⁻ᵏ instead.

Reading the result

A finite answer L means f(x) gets as close to L as you like when x is close enough to a. If the result is ∞ or −∞, f grows without bound; strictly the limit does not exist, but the sign tells you the direction, which is how vertical asymptotes are described.

Does not exist has three common causes: the two one-sided limits differ (a jump, as for |x|/x at 0), f grows to +∞ on one side and −∞ on the other (as for 1/x at 0), or f oscillates without settling (as for sin(1/x) at 0). Check the left-hand and right-hand items and the table to see which.

Forms such as 0/0, ∞/∞, 0·∞, ∞ − ∞, 1^∞, 0⁰ and ∞⁰ are called indeterminate because the form alone does not fix the answer. For example, sin(x)/x, x/x² and x²/x all give 0/0 at 0, but their limits are 1, does not exist and 0.

How to find limits step by step

1. Substitute. Put x = a into f. If you get a number, and f is built from continuous functions, that number is the limit: limx→2(x2+3x)=10\lim_{x \to 2}(x^2 + 3x) = 10. 2. Nonzero over zero. A form such as 5/0 means f grows without bound; check each side for the sign, since the two-sided limit may not exist. 3. Indeterminate form. For 0/0 or ∞/∞, change the expression without changing its values near a: factor and cancel, multiply by a conjugate, use a standard trigonometric limit, or divide by the highest power of x. 4. Still stuck. Use L’Hôpital’s rule, a series expansion, or the squeeze theorem for bounded oscillating factors.

Limits can also be found numerically from a table of values, as this calculator does, and graphically by following the curve toward x = a from each side. Those two views suggest the answer; the algebra in step 3 or 4 proves it.

Limit methods, when to use them, and an example of each
MethodUse it whenExample
Direct substitutionf is continuous at alimx→2(x2+3x)=10\lim_{x \to 2}(x^2 + 3x) = 10
Factor and cancel0/0 from polynomialslimx→2x2−4x−2=limx→2(x+2)=4\lim_{x \to 2}\frac{x^2 - 4}{x - 2} = \lim_{x \to 2}(x + 2) = 4
Multiply by the conjugate0/0 with a square rootlimx→0x+4−2x=limx→01x+4+2=14\lim_{x \to 0}\frac{\sqrt{x + 4} - 2}{x} = \lim_{x \to 0}\frac{1}{\sqrt{x + 4} + 2} = \frac{1}{4}
Standard trigonometric limitsin or cos near 0limx→0sin⁡3xx=3⋅limx→0sin⁡3x3x=3\lim_{x \to 0}\frac{\sin 3x}{x} = 3 \cdot \lim_{x \to 0}\frac{\sin 3x}{3x} = 3
Divide by the highest power∞/∞ as x → ±∞limx→∞3x2+12x2−5=32\lim_{x \to \infty}\frac{3x^2 + 1}{2x^2 - 5} = \frac{3}{2}
L’Hôpital’s rule0/0 or ∞/∞limx→1ln⁡xx−1=limx→11/x1=1\lim_{x \to 1}\frac{\ln x}{x - 1} = \lim_{x \to 1}\frac{1/x}{1} = 1
Squeeze theorema bounded factor that oscillateslimx→0x2sin⁡1x=0\lim_{x \to 0} x^2 \sin\frac{1}{x} = 0
Take logarithms1^∞, 0⁰ or ∞⁰limx→∞(1+1x)x=e\lim_{x \to \infty}\left(1 + \frac{1}{x}\right)^x = e

Finding limits without L’Hôpital’s rule

Many courses ask for limits before derivatives are taught, so L’Hôpital’s rule is off the table. Most 0/0 and ∞/∞ limits then yield to algebra: factoring, multiplying by a conjugate, combining fractions over a common denominator, or dividing every term by the highest power of x. The rest reduce to a few standard limits, listed below, which are proved geometrically or with the squeeze theorem.

For example, limx→01−cos⁡xx2\lim_{x \to 0}\frac{1 - \cos x}{x^2}: multiply top and bottom by 1+cos⁡x1 + \cos x to get sin2⁡xx2(1+cos⁡x)=(sin⁡xx)2⋅11+cos⁡x→1⋅12=12\frac{\sin^2 x}{x^2(1 + \cos x)} = \left(\frac{\sin x}{x}\right)^2 \cdot \frac{1}{1 + \cos x} \to 1 \cdot \frac{1}{2} = \frac{1}{2}. This calculator never uses L’Hôpital’s rule either: it works from values of f alone, so its answer is an independent check on working done by any method.

Standard limits used without L’Hôpital’s rule
LimitValue
limx→0sin⁡xx\lim_{x \to 0}\frac{\sin x}{x}11
limx→01−cos⁡xx\lim_{x \to 0}\frac{1 - \cos x}{x}00
limx→0ex−1x\lim_{x \to 0}\frac{e^x - 1}{x}11
limx→0ln(1+x)x\lim_{x \to 0}\frac{\ln(1 + x)}{x}11
limx→∞(1+1x)x\lim_{x \to \infty}\left(1 + \frac{1}{x}\right)^xee
limx→∞1xn\lim_{x \to \infty}\frac{1}{x^n}, n>0n > 000

One-sided limits and limits at infinity

A one-sided limit looks at values on one side only: limx→a−\lim_{x \to a^{-}} from below and limx→a+\lim_{x \to a^{+}} from above. You need them for piecewise functions, absolute values such as |x|/x, roots such as √x at 0 (defined only on the right) and vertical asymptotes such as 1/x at 0, where the left-hand limit is −∞ and the right-hand limit is +∞. Choose a direction in the calculator to use it as a one-sided limit calculator.

For a limit at infinity of a rational function, compare the degrees of the numerator and denominator. If the top has the lower degree the limit is 0; if the degrees are equal it is the ratio of the leading coefficients; if the top has the higher degree there is no finite limit. A finite limit L at infinity means the line y = L is a horizontal asymptote. To see the long-run behavior of any function, type inf as the point, or tabulate it with the function table calculator.

Limit laws

When the limits of f and g at a both exist, limits can be split across sums, products and quotients. These laws are what make direct substitution valid for continuous functions.

Limit laws, where lim f(x) = L and lim g(x) = M as x → a
LawFormula
Sum and differencelim[f(x)±g(x)]=L±M\lim\,[f(x) \pm g(x)] = L \pm M
Constant multiplelimcf(x)=cL\lim\, c f(x) = cL
Productlimf(x)g(x)=LM\lim\, f(x)g(x) = LM
Quotientlimf(x)g(x)=LM\lim \frac{f(x)}{g(x)} = \frac{L}{M} if M≠0M \ne 0
Powerlim[f(x)]n=Ln\lim\, [f(x)]^n = L^n
Rootlimf(x)n=Ln\lim \sqrt[n]{f(x)} = \sqrt[n]{L} (L≥0L \ge 0 when n is even)

Why the answer is an estimate

The calculator works with numbers, not symbols: it evaluates f at points ever closer to a and extrapolates. For ordinary textbook functions this gives the limit to about 9 significant digits. To prove a limit, use algebra (factoring or rationalizing), the squeeze theorem, L’Hôpital’s rule or a series expansion; the estimate is a reliable way to check that work.

When an estimate matches a well-known constant or a simple fraction, the result says so, for example that 2.71828183 matches e. The calculator handles functions of one variable; a multivariable limit, where (x, y) can approach a point along infinitely many paths, needs a different test.

Worked example

Find the limit of (x² − 1)/(x − 1) as x → 1

Direct substitution gives 0/0. Find the limit.

  1. Substituting x = 1 gives 00\frac{0}{0}, an indeterminate form, so f(1) is not defined.
  2. Factor the numerator: x2−1x−1=(x−1)(x+1)x−1=x+1\frac{x^2 - 1}{x - 1} = \frac{(x - 1)(x + 1)}{x - 1} = x + 1 for x≠1x \ne 1. The factoring calculator finds factors like these.
  3. The table agrees: f(0.999999) = 1.999999 and f(1.000001) = 2.000001.
  4. So limx→1x2−1x−1=1+1=2\lim_{x \to 1} \frac{x^2 - 1}{x - 1} = 1 + 1 = 2.

Answer: The limit is 2 from both sides. The graph of f is the line y = x + 1 with a hole at (1, 2), a removable discontinuity.

Frequently asked questions

What is the difference between a limit and the value of the function?

The value f(a) is what you get at x = a; the limit describes what f(x) approaches as x gets close to a. They can differ: x2−1x−1\frac{x^2-1}{x-1} is undefined at 1, yet its limit there is 2.

What are the three ways to find a limit?

Numerically, from a table of values approaching the point; graphically, by following the curve toward x = a from each side; and algebraically, by substitution, factoring, conjugates or L’Hôpital’s rule. This calculator shows the first two and suggests the algebraic method for the form it finds.

When does a limit not exist?

When the left-hand and right-hand limits differ (a jump), when f grows without bound in different directions on each side, or when f oscillates without settling, as sin(1/x) does near 0.

What does 0/0 mean?

It means both numerator and denominator approach 0, which on its own tells you nothing about the limit. The answer depends on how fast each part shrinks; factoring, rationalizing or L’Hôpital’s rule resolves it.

Can I find a limit without L’Hôpital’s rule?

Yes. Factor and cancel, multiply by a conjugate, divide by the highest power of x, or use standard limits such as sin(x)/x → 1 as x → 0. This calculator does not use L’Hôpital’s rule, so it also checks answers found without it.

How do I find a limit at infinity?

Type inf (or -inf) as the point. The table then shows x = 10, 100, 1,000 and so on. For example, (1 + 1/x)^x approaches e ≈ 2.71828183 as x → ∞.

Why is the answer called a numerical estimate?

Because it is found from values of f close to the point rather than by symbolic algebra. It is accurate for most functions, but it is not a proof.

Does it work for multivariable limits?

No. It finds limits of functions of one variable, x. For f(x, y), a limit exists only if every path to the point gives the same value, which needs a separate argument.

Why are trigonometric functions in radians?

Standard results such as sin(x)/x → 1 as x → 0 hold only in radians. In degrees that limit would be π/180.

Derivative Calculator

First to fifth derivatives with rule-by-rule steps, f′(a), the tangent line and a graph.

Calculus

Integral Calculator

Antiderivatives with named steps, plus definite and improper integrals with an error estimate and area graph.

Calculus

Function Table Calculator

Tables of values for one or two functions with exact fractions, roots, turning points, a graph and CSV.

Calculus

Summation Calculator

Sigma notation with steps: exact fractions, partial sums, closed forms and infinite-series tests.

Calculus

Graphing Calculator

Plot functions, equations, inequalities, parametric and polar curves; find roots and intersections.

Tools

Step-by-Step Math Solver

Free worked solutions for equations, systems, inequalities, factoring, derivatives, integrals, limits and matrices.

Tools

Learn more: For limits, derivatives and integrals inside the full calculator, read the calculus functions manual.

Sources and further reading

  1. Calculus Volume 1, Chapter 2: Limits (opens in a new tab), OpenStax, Rice University
  2. Calculus I: Computing Limits (opens in a new tab), Paul’s Online Math Notes, Lamar University
  3. 18.01SC Single Variable Calculus, Unit 1: Differentiation (limits and continuity) (opens in a new tab), MIT OpenCourseWare
  4. NIST Digital Library of Mathematical Functions, §3.9 Acceleration of Convergence (opens in a new tab), National Institute of Standards and Technology

Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?