Skip to main content
CalcChef

Limit Calculator

Limit of f(x) as x approaches a number, +∞ or −∞: f(c) where f is continuous, otherwise an estimate from samples. Shows one-sided limits, ±∞ and jumps. How it works

Use the Limit Calculator

Try an example

Operators + - * / ^ and brackets; 2x is read as 2*x. Functions: sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, exp, log (natural log), log10, log2, sqrt, cbrt, abs, floor, ceil, round, sign, min, max. Constants: pi, e.

Limit as x→2
4

Both one-sided limits agree.

f is continuous at this point, so the limit is the value f(c), computed directly rather than estimated.

From the left (x → c⁻)
4
From the right (x → c⁺)
4

Graph near the limit

x = 13

The dashed vertical line is x = c; open circles are the one-sided values the estimate found. A gap in the curve means f has no real value there, and the few most extreme values are cut off so the shape near c stays visible.

Numerical estimate from samples of f near the point (down to about 3 × 10⁻¹² of its size, or out to 10³⁰⁰ for infinity). A continuous function gives f(c) itself; an estimate is shown with the digits its error estimate supports (at most 5 significant). When the samples cannot settle the question the tool says so. It is an approximation, not a proof: check by hand when the answer matters.

About the Limit Calculator

The limit of sin(x)/x as x approaches 0 is 1, and the limit of (x² − 1)/(x − 1) as x approaches 1 is 2. This limit calculator gives f(c) where f is continuous and otherwise estimates the limit of f(x) as x approaches a number, +∞ or −∞ from samples on each side, shows the left-hand and right-hand values, and says when the limit is infinite, does not exist or cannot be decided.

Limits as x approaches a number

f(x) as typedx →From the leftFrom the rightTool showsExact limit
x^224444
sin(x)10.841470.841470.84147sin 1 ≈ 0.841471
sin(x)/x01111
(x^2-1)/(x-1)12222
(x^3-8)/(x-2)212121212
(1-cos(x))/x^200.50.50.51/2
(exp(x)-1)/x01111
(sqrt(x+4)-2)/x00.250.250.251/4
(1+x)^(1/x)02.71832.71832.7183e ≈ 2.71828
x*sin(1/x)00000
1/x^20+∞+∞+∞ (no real-number limit)+∞
1/x0−∞+∞does not existDoes not exist
abs(x)/x0-11does not existDoes not exist
floor(x)101does not existDoes not exist
sqrt(x)0not defined (no real values)0does not existDoes not exist (right-hand limit 0)
sin(1/x)0does not settle on a valuedoes not settle on a valuedoes not existDoes not exist

In the first two rows f is continuous, so the tool shows f(c) itself. The others are estimates, printed with the digits their error estimate supports (at most 5 significant). Type the first column into the Function box as it is written.

Limits as x goes to infinity

f(x) as typedx →Tool showsExact limit
(1+1/x)^x+∞2.7183e ≈ 2.71828
(3x^2+1)/(x^2-5)+∞33
(2x+1)/(x-3)−∞22
sqrt(x^2+x)-x+∞0.51/2
sin(x)/x+∞00
exp(x)−∞00
x^2+∞+∞ (no real-number limit)+∞
sin(x)+∞does not existDoes not exist
exp(x)+∞+∞ (no real-number limit)+∞
log(x)+∞+∞ (no real-number limit)+∞
sqrt(x)-sqrt(x-1)+∞00

Where the tool is wrong or cannot decide

f(x) as typedx →Tool showsCorrect answer
x+1e-10/x00Does not exist (−∞ from the left, +∞ from the right)
1+1e-9*sign(x)01Does not exist (a jump of 0.000000002)
sin(x)/(x+1e-13)010
(1-cos(x))/x^21e-70.4996About 0.5
floor(x)1e121000000000000Does not exist (a jump)
1/(1+1e-15x)+∞10
exp(x)/x^200+∞0+∞
(1-1/x)^(x^2)+∞10
gamma(x)−∞0Does not exist (a pole at every negative integer)
(1-cos(x))/x^21e-8cannot decideAbout 0.5
x^21e308cannot decide10^616, too large to store
sin(x)1e13cannot decidesin(10^13)
log(log(log(x)))+∞cannot decide+∞
x*sin(x)+∞cannot decideDoes not exist (oscillates)
x^100/exp(x)+∞cannot decide0
log(x)^10/x+∞cannot decide0
sin(x^2)+∞cannot decideDoes not exist (oscillates)
round(x)-x+∞cannot decideDoes not exist (oscillates)

The wrong answers come from features much smaller than about 10⁻⁸ of the sampled values, from cancellation between nearly equal numbers, and from overflow.

Methodology

The tool computes f(c) first: if f is continuous at c, the limit is f(c) itself. Otherwise it samples f on each side at 37 steps that halve from 0.2371 × |c| (0.2371 at c = 0) down to about 3 × 10⁻¹² of it (for infinity, out to 10³⁰⁰), extrapolates to a zero step with Ridders’ and Aitken’s methods and prints only the digits the error estimate supports, at most 5 significant. Two sides must agree within their error estimates for a limit to be shown.

How to use this tool

  1. Type f(x) with x as the variable, for example (x^2-1)/(x-1). 2x is read as 2*x, sin, cos and tan take radians, and log is the natural log (log10 and log2 are separate functions).
  2. Under What x approaches, pick a number c and type it, or pick +∞ or −∞. Or press one of the six examples, such as sin(x)/x at 0, to fill in all three.
  3. Read the limit and the accuracy line under it. For a number c the left-hand and right-hand values are always shown as well. The graph under the result shows f from c − 1 to c + 1, with open circles at the values each side approaches.

Frequently asked questions

How do you find a limit step by step?
Try substituting first. If that gives 0/0, simplify: (x² − 1)/(x − 1) = x + 1 for x ≠ 1, so the limit at 1 is 2. The tool does not show algebra steps. It finds that f has no value at 1, samples f on both sides at steps that halve from about 0.24 down to about 3 × 10⁻¹², and shows 2 from both sides, which checks your working.
What is the limit of sin(x)/x as x approaches 0?
1, from both sides. Two related limits come out the same way: tan(x)/x at 0 is 1 and (1 − cos(x))/x² at 0 is 0.5.
How do you know when a limit does not exist?
Compare the two sides. abs(x)/x at 0 gives -1 from the left and 1 from the right, a jump. 1/x at 0 goes to −∞ on the left and +∞ on the right. sin(1/x) at 0 keeps oscillating and settles on nothing. 1/x² goes to +∞ from both sides: the tool shows +∞, which means there is no limit as a real number.
How do you find a limit at infinity?
Choose x approaches +∞ or −∞. The tool samples x from about 2.4 out to 10³⁰⁰, so fast growth such as exp(x) or log(x) shows as +∞. For a ratio of polynomials of the same degree the limit is the ratio of the leading coefficients: (3x² + 1)/(x² − 5) goes to 3. (1 + 1/x)^x goes to e, shown as 2.7183.
Can it find one-sided limits?
Yes. For a number c it shows the limit from the left and from the right separately. sqrt(x) at 0 is not defined on the left and 0 on the right, so only the right-hand limit exists. floor(x) at 1 is 0 from the left and 1 from the right.
Why does it say it cannot decide?
Because the samples on at least one side are too noisy, too few or too slow to settle, and the tool will not guess. x^2 at 1e308 gives this answer, because x² is too large to store near that point. Try a simpler form of the function, for example with common factors cancelled, or check by hand.

Related Tools

View all tools