My Calculator

Limit Calculator

Find the limit of any function as x approaches a value or infinity — with direct substitution, L'Hôpital's Rule, a plotted diagram, and a full step-by-step solution.

Tap x² / x³ below, or type x²

Reading this as: f(x) = (5 · x^2 - 8 · x - 13) / (x^2 - 5)

Type powers as , use * or / for × and ÷, and sqrt(x) / sin(x) / ln(x) for functions. "infinity" works for limits at ∞.

Math Keyboard

Try an example

Functionf(x) = (5 · x² - 8 · x - 13) / (x² - 5)
Approachingx → 3
Limit2
Method usedDirect substitution
Left-hand limit (x → a⁻)2
Right-hand limit (x → a⁺)2

Limit Diagram

Your exact function plotted near the point in question. The dots are real x-values sneaking closer to the target — each one is labeled with its actual f(x) value, so you can watch the numbers converge with your own eyes.

x = 3-1.42.79311.715542.223431.97472.0247limit = 2
f(x)Values approaching x = aThe limitx = a

Values of f(x) as x approaches 3

x (from left)f(x)x (from right)f(x)
2.5-1.43.52.7931
2.91.715543.12.22343
2.991.97473.012.0247
2.9991.99753.0012.0025
2.99991.999753.00012.00025
2.999991.999973.000012.00002

Step-by-Step Solution

Here's exactly how this answer was calculated, one step at a time.

Given: lim(x → 3) (5 · x² - 8 · x - 13) / (x² - 5)

  1. Step 1: Try direct substitution

    Plug x = 3 directly into f(x) = (5 · x^2 - 8 · x - 13) / (x^2 - 5) and see if it gives a single, defined number.

    f(3) = 2
  2. Step 2: Simplify the substituted expression

    The function is continuous at this point, so direct substitution already gives the limit — no further work is needed.

    = 2

The limit is:

2

Free Online Limit Calculator with Steps

This limit calculator finds the limit of almost any function as x approaches a number, a point like pi/2, or positive/negative infinity — instantly, with a fully worked, step-by-step solution. Type in your function using standard notation such as x², sin(x), sqrt(x), ln(x), or eˣ, choose the value x approaches, and the calculator handles the rest: it tries direct substitution first, automatically detects indeterminate forms like 0/0 or ∞/∞, applies L'Hôpital's Rule when needed, and backs up the answer with a numeric table and a plotted diagram so you can literally watch the function approach its limit.

Whether you're a calculus student working through limit definitions for the first time, checking homework before an exam, or an engineer who just needs a fast, reliable limit solver, this tool is built to handle rational functions, trigonometric limits, radicals, exponentials, logarithms, one-sided limits, and limits at infinity — all with a complete, copyable explanation of every step.

What Is a Limit in Calculus?

A limit describes the value that a function f(x) gets closer and closer to as the input x gets closer and closer to some target value, called a, without necessarily ever reaching a itself. Limits are the foundational idea behind almost all of calculus — derivatives are defined as a limit of a slope, and integrals are defined as a limit of a sum, so understanding how to evaluate a limit is the first real skill every calculus course builds on.

Formally, we write the limit of f(x) as x approaches a as: lim(x→a) f(x) = L. This statement means that as x is chosen closer and closer to a (from either side), the output f(x) gets closer and closer to the single number L. Crucially, the limit only cares about the behavior of f(x) near a — it doesn't matter whether f(a) itself is defined, undefined, or even a completely different value.

Limit Notation and the Limit Formula

The standard notation for limits, and the pieces that make it up, are:

  • lim(x→a) f(x) = L — read as "the limit of f(x) as x approaches a equals L"
  • lim(x→a⁻) f(x) — the left-hand limit, where x approaches a only from values smaller than a
  • lim(x→a⁺) f(x) — the right-hand limit, where x approaches a only from values larger than a
  • A two-sided limit lim(x→a) f(x) exists only if the left-hand and right-hand limits both exist and are equal to each other
  • lim(x→∞) f(x) and lim(x→-∞) f(x) — limits at infinity, describing what f(x) settles toward as x grows without bound in either direction

How to Solve a Limit Step by Step

Every limit problem, no matter how it looks, can be approached with the same general sequence:

  • Step 1 — Try direct substitution first: plug x = a straight into f(x). If you get a single defined, finite number, that number is the limit — you're done.
  • Step 2 — If direct substitution gives 0/0 or ∞/∞, you have an indeterminate form. This does not mean the limit doesn't exist; it means you need another technique to reveal the real answer.
  • Step 3 — Try algebraic simplification: factor the numerator and denominator and cancel common factors, rationalize a numerator or denominator containing a square root, or combine fractions over a common denominator.
  • Step 4 — If the expression is still a 0/0 or ∞/∞ ratio after simplifying, apply L'Hôpital's Rule: differentiate the numerator and denominator separately (not using the quotient rule), then substitute again.
  • Step 5 — Repeat L'Hôpital's Rule as many times as needed if the result is still indeterminate, or fall back on evaluating the function at values that creep closer and closer to a from both sides.
  • Step 6 — Compare the left-hand and right-hand limits. If they agree, that shared value is the two-sided limit; if they disagree, the limit does not exist (DNE) at that point.

Indeterminate Forms: 0/0 and ∞/∞

An indeterminate form happens when direct substitution produces an expression like 0/0 or ∞/∞ that doesn't have one fixed numerical value on its own — it could resolve to any real number, to infinity, or to no limit at all, depending on the specific functions involved. Other indeterminate forms include 0·∞, ∞−∞, 1^∞, 0⁰, and ∞⁰, though 0/0 and ∞/∞ are by far the most common ones you'll meet in an introductory calculus course.

Seeing an indeterminate form is not a dead end — it's a signal that the limit likely does exist, and that you need to rewrite the function (by factoring, simplifying, or differentiating with L'Hôpital's Rule) before substituting again to reveal its true value.

L'Hôpital's Rule Explained

L'Hôpital's Rule is one of the most powerful shortcuts in calculus for resolving indeterminate limits. It states that if lim(x→a) f(x)/g(x) produces the indeterminate form 0/0 or ∞/∞, then, provided the limit on the right-hand side exists: lim(x→a) f(x)/g(x) = lim(x→a) f'(x)/g'(x), where f'(x) and g'(x) are the derivatives of the numerator and denominator, taken separately — this is not the quotient rule, and you should never differentiate the whole fraction as one unit.

After differentiating, substitute x = a again. If the result is still 0/0 or ∞/∞, you can apply L'Hôpital's Rule again on the new fraction, repeating as many times as necessary until substitution finally gives a determinate answer. This calculator applies L'Hôpital's Rule automatically whenever your function is written as a fraction and produces an indeterminate form at the target value.

One-Sided Limits: Left-Hand and Right-Hand

Sometimes a function behaves differently depending on which direction x approaches a from — this is common with piecewise functions, functions involving absolute value, or functions with a vertical asymptote like 1/x. The left-hand limit, written lim(x→a⁻) f(x), only considers x-values slightly smaller than a; the right-hand limit, lim(x→a⁺) f(x), only considers x-values slightly larger than a.

The full two-sided limit exists only when both one-sided limits exist and are equal. If they disagree — for example, if f(x) shoots toward +∞ from one side and -∞ from the other, as with 1/x at x = 0 — then the two-sided limit does not exist, even though each one-sided limit might still be perfectly well defined on its own. This calculator lets you check the left-hand limit, the right-hand limit, or the full two-sided limit independently.

Limits at Infinity and Horizontal Asymptotes

A limit at infinity, written lim(x→∞) f(x) or lim(x→-∞) f(x), describes what value f(x) settles toward as x grows arbitrarily large in the positive or negative direction. If this limit is a finite number L, the graph of f(x) has a horizontal asymptote at y = L, meaning the curve gets flatter and flatter as it stretches out toward that height without ever necessarily touching it.

For rational functions (a polynomial divided by another polynomial), there's a quick shortcut: compare the degree of the numerator to the degree of the denominator. If the denominator's degree is higher, the limit at infinity is 0; if the degrees are equal, the limit is the ratio of the leading coefficients; and if the numerator's degree is higher, the function grows without bound and the limit is ±infinity. This calculator estimates limits at infinity numerically by evaluating f(x) at increasingly large values of x and watching whether the outputs settle down or keep growing.

How to Use This Limit Calculator

Type your function into the f(x) box using x as the variable — write powers as x², multiplication either with * or just by writing terms next to each other like 2x or (x+1)(x-1), and standard function names like sin(x), cos(x), tan(x), sqrt(x), ln(x), log(x), eˣ, and abs(x). Then enter the value x approaches in the second box — this can be a plain number like 2 or -3, an expression like pi/2, or the word "infinity" (or "-infinity") for a limit at infinity.

Choose whether you want the two-sided limit, the left-hand limit, or the right-hand limit from the dropdown, and the calculator instantly shows the final answer, the method used (direct substitution, L'Hôpital's Rule, or numerical estimation), a diagram plotting your exact function with the approach values and the limit point labeled, a table of x-values sneaking up on the target from both sides, and a full step-by-step breakdown you can copy with one click.

Worked Examples

Example 1 — a classic 0/0 form: find lim(x→1) (x²−1)/(x−1). Direct substitution gives (1−1)/(1−1) = 0/0, which is indeterminate. Differentiating top and bottom with L'Hôpital's Rule gives 2x/1, and substituting x = 1 gives 2/1 = 2. You could also solve this by factoring: (x²−1)/(x−1) = (x−1)(x+1)/(x−1) = x+1, which gives 1+1 = 2 as well — both methods agree.

Example 2 — a famous trigonometric limit: find lim(x→0) sin(x)/x. Direct substitution gives sin(0)/0 = 0/0, again indeterminate. Applying L'Hôpital's Rule, the derivative of sin(x) is cos(x) and the derivative of x is 1, so the limit becomes cos(x)/1, and substituting x = 0 gives cos(0)/1 = 1. This confirms the well-known result that sin(x)/x approaches exactly 1 as x approaches 0, even though the function itself is undefined at x = 0.

Common Limit Rules and Properties

A handful of algebraic rules make evaluating limits of combined functions much easier, assuming the individual limits exist:

  • Sum/Difference Rule: lim [f(x) ± g(x)] = lim f(x) ± lim g(x)
  • Product Rule: lim [f(x) · g(x)] = lim f(x) · lim g(x)
  • Quotient Rule: lim [f(x) / g(x)] = lim f(x) / lim g(x), provided the limit of g(x) is not zero
  • Constant Multiple Rule: lim [k · f(x)] = k · lim f(x) for any constant k
  • Power Rule: lim [f(x)]ⁿ = [lim f(x)]ⁿ for any positive integer n
  • Limit of a constant: lim(x→a) c = c for any constant c, at any point a

Real-World Applications of Limits

Limits aren't just an abstract calculus exercise — they underpin how change, motion, and growth are modeled across science and engineering:

  • Physics: instantaneous velocity and acceleration are defined as the limit of average velocity/acceleration as the time interval shrinks toward zero.
  • Engineering: analyzing how a system's response settles (or fails to settle) as time or a parameter approaches an extreme value.
  • Economics and finance: modeling marginal cost, marginal revenue, and continuous compounding, all of which rely on limiting behavior.
  • Population and epidemiology models: predicting the long-term (limiting) behavior of a population as time approaches infinity.
  • Signal processing: understanding the steady-state behavior of a system's output as time grows large.
  • Computer science: analyzing the limiting growth rate of algorithms as input size approaches infinity (asymptotic/Big-O analysis).

Limits vs. Derivatives vs. Integrals

Limits, derivatives, and integrals are the three core pillars of calculus, and each builds on the one before it. A limit describes the value a function approaches. A derivative is itself defined as a specific limit — the limit of the average rate of change, f(x+h) − f(x), all divided by h, as h approaches 0 — which gives the instantaneous rate of change, or slope, at a point. An integral is defined as the limit of a sum of infinitely many, infinitely thin rectangles, which gives the exact area under a curve. In short: master limits first, and derivatives and integrals become the natural next step.

Tips for Solving Limits Faster

Always try direct substitution first — most limits in practice aren't indeterminate at all, and you'll save yourself the extra work. When you do hit 0/0, look for an obvious factoring opportunity before reaching for L'Hôpital's Rule, since canceling a common factor is usually quicker than differentiating. For limits involving square roots that produce 0/0, try multiplying the top and bottom by the conjugate to eliminate the radical. For limits at infinity involving a rational function, comparing the degrees of the numerator and denominator gives you the answer almost instantly without any substitution at all. And whenever a limit problem feels tricky or you just want to double-check your algebra, this calculator instantly verifies your answer with a full step-by-step solution and a diagram showing exactly how the function behaves near the point in question.

Frequently Asked Questions

What is a limit in simple terms?

A limit is the value a function gets closer and closer to as its input gets closer and closer to some target value — without necessarily ever equaling it. It describes approaching behavior, not the function's actual value at that point.

What does it mean when a limit is 0/0?

0/0 is called an indeterminate form. It means direct substitution alone can't tell you the answer — the true limit could still be any finite number, or infinite, or not exist. You need to simplify the expression or apply L'Hôpital's Rule to resolve it.

How does L'Hôpital's Rule work?

If a limit produces 0/0 or ∞/∞, L'Hôpital's Rule says you can differentiate the numerator and denominator separately (not with the quotient rule) and take the limit of that new fraction instead — it will have the same value as the original limit.

What does it mean if a limit does not exist (DNE)?

A limit does not exist when the left-hand limit and right-hand limit disagree, or when the function oscillates or grows without settling near the target value. Each one-sided limit can still exist separately even when the two-sided limit does not.

Can this calculator find limits at infinity?

Yes. Enter "infinity" or "-infinity" as the value x approaches, and the calculator evaluates the function at increasingly large x-values to determine whether it settles at a horizontal asymptote or grows without bound.

Is a limit the same as the value of the function at that point?

No. A limit only describes the behavior of f(x) near a point — the function can be undefined at that exact point, or even defined as a completely different value, and the limit can still exist and equal something else entirely.