Direct substitution
When the function is defined at the point, replace x with it. For 2x + 1 at x = 3 the answer is 2·3 + 1 = 7.
Find the limit of a function as x approaches a number or infinity, from both sides or from one side. Type a function, say where x is heading, and see the answer, the steps, a table of values, and a graph.
Checked: the table of values moves toward this limit.
Replacing x with that value makes both the numerator and the denominator 0. The form 0/0 has no value on its own, so another method is needed.
The form is 0/0, so L'Hôpital's Rule applies: differentiate the numerator and the denominator separately.
Now the limit can be found directly.
The value of f(x) at points closer and closer to where x is heading. The calculator uses these numbers to check its answer.
| x | f(x) |
|---|---|
| -0.1 | 2.955202067 |
| -0.01 | 2.99955002 |
| -0.001 | 2.9999955 |
| -0.0001 | 2.999999955 |
| x | f(x) |
|---|---|
| 0.1 | 2.955202067 |
| 0.01 | 2.99955002 |
| 0.001 | 2.9999955 |
| 0.0001 | 2.999999955 |
The graph appears here once there is a valid function.
A limit describes where a function is heading as its input gets close to a value. The function does not need to be defined at that value. For example, (x² − 4) / (x − 2) cannot be evaluated at x = 2 because it gives 0/0, yet its values get closer and closer to 4 as x approaches 2, so the limit is 4. Limits are the foundation of calculus: they define continuity, derivatives, and integrals, and they describe asymptotes on a graph. This free limit calculator finds two-sided, left-hand, right-hand, and infinite limits, shows the method used at each step, and checks the answer with a table of values and a graph.
(x^2-4)/(x-2). The keys under the box insert common symbols and functions.2, an expression such as pi/2, or inf or -inf for infinity.| Type | Written as | What it means |
|---|---|---|
| Two-sided limit | x → a | The value f(x) approaches as x gets close to a from both sides. |
| Left-hand limit | x → a⁻ | The value f(x) approaches using only x smaller than a. |
| Right-hand limit | x → a⁺ | The value f(x) approaches using only x larger than a. |
| Infinite limit | f(x) → ∞ | The values grow without bound near a point. The graph has a vertical asymptote. |
| Limit at infinity | x → ∞ | The value f(x) approaches as x becomes very large or very negative. The graph may have a horizontal asymptote. |
Always try direct substitution first. If it gives a number, you are done. If it gives 0/0 or ∞/∞, use one of the methods below. These examples come straight from the calculator.
When the function is defined at the point, replace x with it. For 2x + 1 at x = 3 the answer is 2·3 + 1 = 7.
Substituting x = 2 into (x² − 4) / (x − 2) gives 0/0. Factor the top as (x − 2)(x + 2), cancel x − 2, and substitute again: x + 2 is 4 at x = 2.
For (√(x + 1) − 1) / x, multiply the top and bottom by √(x + 1) + 1. This gives 1 / (√(x + 1) + 1), which is 1/2 at x = 0. The calculator reaches the same value with L’Hôpital’s Rule.
For 0/0 or ∞/∞, differentiate the top and the bottom separately and take the limit again. For sin(3x) / x the new fraction is 3cos(3x) / 1, which is 3 at x = 0.
For a ratio of polynomials as x → ∞, look at the highest powers. When the degrees match, the limit is the ratio of the leading coefficients, here 3/5.
The values of 1/x² grow without bound on both sides of 0, so the limit is ∞. The graph has a vertical asymptote at x = 0.
|x| / x is −1 just left of 0 and 1 just right of 0. The two sides disagree, so the two-sided limit does not exist.
These standard results appear in almost every calculus course. You can enter any of them to see the steps.
The calculator works with one variable, x, and handles these functions:
It finds exact answers with direct substitution, factoring and cancelling, comparing degrees, and L’Hôpital’s Rule. When none of these applies, it estimates the limit from nearby values and marks the answer with ≈. It does not do limits of several variables, piecewise functions, or proofs with the squeeze theorem. Fractional powers of negative numbers, such as x^(1/3) to the left of 0, are treated as undefined.
(x^2-4)/(x-2) is not the same as x^2-4/x-2.The derivative is defined as a limit, so the derivative calculatoris a natural next step. To go the other way, try the integral calculator.
A limit is the value a function gets closer and closer to as its input gets closer to some number. The function does not have to be defined at that number. For example, (x² − 4) / (x − 2) cannot be evaluated at x = 2, but its values approach 4 as x approaches 2, so the limit is 4.
Start by substituting the value into the function. If you get a number, that is the limit. If you get 0/0 or ∞/∞, try another method: factor and cancel a common factor, multiply by a conjugate to remove a square root, or use L’Hôpital’s Rule. For limits at infinity, compare the highest powers. This calculator uses direct substitution, factoring and cancelling, comparing degrees, and L’Hôpital’s Rule, and it shows the ones it used.
It is called an indeterminate form. It does not mean the limit does not exist. It only means that substitution alone cannot tell you the answer, because the top and the bottom are both shrinking to zero and the result depends on how fast each one does. Factoring, conjugates, or L’Hôpital’s Rule can resolve it.
A one-sided limit looks at the function from only one direction. The left-hand limit, written x → a⁻, uses values smaller than a. The right-hand limit, written x → a⁺, uses values larger than a. The ordinary two-sided limit exists only when both one-sided limits exist and are equal.
Yes. If the values of the function grow without bound near a point, we write that the limit is ∞ (or −∞ if they decrease without bound). This is a way of describing how the function behaves, since ∞ is not a number. On a graph it shows up as a vertical asymptote, as with 1/x² at x = 0.
A limit at infinity asks what value f(x) approaches as x becomes very large (x → ∞) or very negative (x → −∞). If the answer is a number L, the graph has a horizontal asymptote at y = L. For example, 1/x approaches 0 as x → ∞.
A two-sided limit does not exist when the left-hand and right-hand limits are different (as with |x|/x at 0), when the function swings up and down without settling (as with sin(1/x) at 0), when it grows toward ∞ on one side and −∞ on the other (as with 1/x at 0), or when the function is not defined on one side of the point.
In the "x approaches" box, type inf for infinity or -inf for negative infinity. For other values, type a number such as 2 or -3.5, or an expression such as pi/2 or sqrt(2). In the function, use x as the variable and type it as you would on a calculator, for example sin(3x)/x or (x^2-4)/(x-2).
Yes. It lists each method it used, such as direct substitution, factoring and cancelling, comparing degrees, or L’Hôpital’s Rule, along with the expression at each stage. It also shows a table of values on each side of the point and a graph so you can see that the answer makes sense.
When none of the exact methods apply, the calculator estimates the limit from values of the function very close to the point and marks the result with ≈. Limits such as (1 + 1/x)ˣ as x → ∞ (which is e) are handled this way. Treat an estimate as a guide and confirm it by hand if you need an exact form.