Limit Calculator

Evaluate limits step by step: two-sided, one-sided and at infinity. See the technique used, a table of approaching values and a graph near the point.

Limit Calculator

Calculate limits of functions as x approaches a specific value or infinity. Evaluate one-sided limits, two-sided limits, and limits at infinity. Visualize the function behavior near the limit point with graphs and step-by-step solutions.

Function Input

Limit Parameters

Display Options

How to Use the Limit Calculator

The most common mistake about limits is thinking they equal the function's value at that point. A limit is what the function approaches, not what it equals, and it can exist even when the function is undefined there. The limit calculator shows you exactly that separation by working through three methods in order: direct substitution, algebraic manipulation, and L'Hôpital's rule. You get the value plus the reasoning behind it, not just a number.

To enter a limit, pick a function type from the dropdown, polynomial, rational, trigonometric, exponential, logarithmic, radical, or piecewise, then type the expression. For the limit point, enter a number, inf, or -inf. Choose direction: two-sided, left-hand, or right-hand. The calculator handles one-sided limits and limits at infinity. Set decimal places from 2 to 8, and tick boxes to show the values table, graph, or solution steps. Untick 'numerical approximation' to force exact direct substitution where the function is continuous.

  • Limit Point: Enter any real number, pi/2, inf, or -inf
  • Directions: Two-sided, left-hand (x → a⁻), or right-hand (x → a⁺)
  • Function Types: Polynomial, rational, trigonometric, exponential, logarithmic, radical, piecewise, or custom
  • Output: Limit value, one-sided limits, function value at point, continuity, values table, graph, and step-by-step solution

How the Calculator Decides: Substitution, Algebra, L'Hôpital

The limit solver follows a fixed hierarchy. First it tries direct substitution. If the function is defined and continuous at the limit point, meaning plugging in the x-value gives a real number, that number is the limit. No fancier technique is needed.

When Direct Substitution Fails

If direct substitution gives an indeterminate form like 0/0 or ∞/∞, the calculator moves to algebraic methods. It factors the numerator and denominator, cancels common factors, or rationalizes expressions involving radicals. For rational functions at infinity, it compares the degrees of the numerator and denominator, if the numerator degree is less, the limit is 0; if equal, the ratio of leading coefficients; if greater, the limit is infinite.

L'Hôpital's Rule

If the limit remains indeterminate after algebra, or if the expression is not easily factorable, the calculator applies L'Hôpital's rule. This differentiates the numerator and denominator separately and re-evaluates the limit. The rule requires the original form to be 0/0 or ∞/∞. It can be applied repeatedly if the result remains indeterminate. The calculator stops and reports the limit once a determinate value is reached, or declares the limit does not exist if it oscillates or diverges.

Numerical Approximation

When the exact method fails, for example with functions that oscillate or have essential discontinuities, the calculator falls back to numerical approximation. It samples the function at points approaching the limit from the chosen direction, looking for three consecutive values that agree within a small spread. It detects unbounded growth (∞ or -∞) and oscillation (DNE). This numerical method is not a proof but a reliable estimate, and the tool flags it as such in the solution steps.

Reading the Output: Values Table, Graph, Continuity

After calculating, the results panel shows five pieces of information. The limit value is the main number, with left-hand and right-hand limits listed separately if the direction was two-sided. The function value at the point f(a) is displayed below, with 'Undefined' if the function is not defined there. The continuity field tells you whether the limit equals f(a), if yes, the function is continuous; if not, it names the discontinuity type: removable (hole), jump, or infinite.

Approaching Values Table

The table shows x-values getting closer to the limit point, with the corresponding f(x). For a two-sided limit, it lists values from both sides. This table lets you see the trend numerically, which is especially helpful when the graph is ambiguous.

Function Graph

The graph plots the function as a blue curve with a red dot at the limit point (a, limit value). It zooms in automatically near the point. Use it to check for jumps, holes, or vertical asymptotes that the numerical table might miss. The graph is particularly useful for piecewise functions where the algebraic expression changes at the limit point.

Worked Example

Evaluate lim_{x→0} (sin x)/x using the limit calculator.

Enter the function type as 'trigonometric' and the expression sin(x)/x. Set the limit point to 0 and direction to 'two-sided'. Click calculate.

The output shows a limit value of 1. The left-hand and right-hand limits are both 1.Continuity reads 'Removable Discontinuity', the limit exists but the function is not defined at the point. The approaching values table lists x = ±0.1, ±0.01, ±0.001 with f(x) getting closer to 1. The graph shows a curve approaching 1 from both sides with a hole at (0,1). The solution steps explain: direct substitution gives 0/0, so the calculator uses the limit of sin(x)/x = 1, which is a standard trigonometric limit taught in Stewart §3.3.

Technique Selection Guide for Common Limit Forms
FormFirst TechniqueSecond TechniqueExample
0/0 (polynomial)Factor and cancelL'Hôpital's rulelim_{x→2} (x²-4)/(x-2)
0/0 (radical)RationalizeL'Hôpital's rulelim_{x→0} (√(1+x)-1)/x
0/0 (trigonometric)Standard trigonometric limitL'Hôpital's rulelim_{x→0} (sin x)/x
∞/∞ (rational)Divide by highest powerL'Hôpital's rulelim_{x→∞} (3x²+2)/(5x²-1)
∞ - ∞Combine into a single fractionRewrite as 0/0 or ∞/∞lim_{x→0} (1/x - 1/sin x)

Limit Solver with Steps

The limit solver with steps is the core of this tool. It does not just output a number, it shows the reasoning. The steps panel lists each technique tried, the form detected, and the algebra or rule applied. For L'Hôpital's rule, it shows the derivative of the numerator and denominator separately before re-evaluating. For factoring, it shows the factorisation and cancellation. This walkthrough helps you check your own work and understand why a particular method was chosen.

For piecewise functions, the calculator evaluates the appropriate piece for the chosen direction. If the direction is left-hand, it uses the expression for x < a; for right-hand, the expression for x > a. The optional 'at x = a' field lets you define f(a) separately for continuity checking.

Common Questions

When should I write DNE vs ∞?

The calculator follows the convention from Stewart §2.2 and the AP Calculus CED: if the function grows without bound (vertical asymptote), the limit is written as ∞ or -∞. DNE is reserved for cases where the left and right limits are different finite numbers, the function oscillates without settling, or the unbounded behaviour differs in sign on each side. For example, lim_{x→0} 1/x² is ∞, but lim_{x→0} 1/x is DNE because it goes to ∞ from the right and -∞ from the left.

How do I evaluate a one-sided limit?

Select 'Left-Hand' or 'Right-Hand' from the direction dropdown. The calculator will only approach the point from that side. The output will show only the one-sided limit value and skip the two-sided comparison. Use this when the function has different behaviour on each side, such as piecewise functions or functions with absolute value.

Is the limit value from the calculator exact or numerical?

It can be either. By default, the calculator attempts an exact solution through direct substitution or algebraic manipulation. If it succeeds, the value is exact (shown without approximation). If it must fall back to numerical sampling, the solution steps will note 'numerical estimate' and the value is approximate to the chosen decimal places. Untick 'Numerical approximation only' to force exact methods where the function is continuous.

Does the calculator use degrees or radians for trigonometric functions?

All trigonometric functions are evaluated in radians. This is the standard convention for calculus and matches every textbook (Stewart, Spivak, AP Calculus). If you enter sin(90), the calculator interprets that as sin(90 radians), not sin(90°). To use degrees, convert manually: 90° = π/2 radians.

Can the calculator handle piecewise functions?

Yes. Select 'Piecewise Function' as the function type. Enter the expression for x < a in the 'Expression for x' field, the expression for x > a in the 'Expression for x > a' field, and optionally the value at x = a in the 'Expression at x = a' field. The calculator evaluates the appropriate piece based on the direction selected. For limit at infinity, it uses the x > a piece for positive infinity and the x < a piece for negative infinity.

Guides on this site