Skip to content

Limits Explained: The Foundation of Calculus

By Sprout Calculator Editorial Team Bylines · Published November 5, 2026 · Updated November 6, 2026

A limit describes the value a function approaches as its input gets close to a point, whether or not the function reaches it there. Write it as lim x→a f(x) = L. To evaluate one, try substituting a first. If that gives 0/0, simplify by factoring or using a conjugate, then substitute again.

What is a limit?

A limit describes where a function is heading as its input gets close to some value. It answers the question: "what output does f(x) approach as x approaches a?" It does not ask what happens exactly at a.

lim⁡x→af(x)=L\lim_{x \to a} f(x) = L

This reads "the limit of f(x) as x approaches a is L." It means f(x) can be made as close as you like to L by choosing x close enough to a (but not equal to a).

Limits are the foundation of calculus. Derivatives are limits of slopes, and integrals are limits of sums. You can test limits with the limit calculator.

Why do we need limits?

Some expressions are undefined at a point but still have a clear trend nearby. Consider

f(x)=x2−1x−1f(x) = \frac{x^2 - 1}{x - 1}

At x = 1, this becomes 0/0, which is undefined. But look at nearby values:

xf(x)
0.91.9
0.991.99
0.9991.999
1.0012.001
1.012.01
1.12.1

The outputs close in on 2 from both sides. So the limit is 2, even though f(1) does not exist. Algebra confirms it: (x² − 1)/(x − 1) = (x + 1)(x − 1)/(x − 1) = x + 1 for x ≠ 1, which approaches 2.

A table like this is a numerical estimate. It suggests the limit but does not prove it.

How do you evaluate limits by substitution?

If the function is continuous at the point, just plug in. Polynomials, exponentials, sines and cosines are continuous everywhere, and rational functions are continuous wherever the denominator is not zero.

  • lim x→3 (2x² − x + 4) = 2(9) − 3 + 4 = 19.
  • lim x→0 (cos x + 5) = 1 + 5 = 6.
  • lim x→2 (x + 1)/(x − 4) = 3/(−2) = −1.5.

Always try substitution first. If you get a real number, you are done. If you get 0/0, the answer is not decided yet, and you need to simplify.

How do you handle 0/0 by factoring?

When both the numerator and denominator are zero at the point, they share a factor. Cancel it.

Example: lim x→2 (x² − 4)/(x − 2).

Substitution gives 0/0. Factor: (x − 2)(x + 2)/(x − 2) = x + 2. Then lim = 2 + 2 = 4.

Example: lim x→3 (x² − 5x + 6)/(x² − 9).

Factor: (x − 2)(x − 3) / [(x − 3)(x + 3)] = (x − 2)/(x + 3). Substitute x = 3: 1/6.

How do you use a conjugate?

For expressions with square roots, multiply the numerator and denominator by the conjugate.

Example: lim x→0 (√(x + 4) − 2)/x.

Substitution gives 0/0. Multiply by (√(x + 4) + 2)/(√(x + 4) + 2):

numerator: (x + 4) − 4 = x. So the expression becomes x / [x(√(x + 4) + 2)] = 1/(√(x + 4) + 2).

At x = 0: 1/(2 + 2) = 1/4.

What are one-sided limits?

A one-sided limit approaches the point from only one side. The notation x → a⁻ means from the left (smaller values), and x → a⁺ means from the right (larger values).

The two-sided limit exists only if both one-sided limits exist and are equal.

Example. For f(x) = |x|/x, we have f(x) = 1 for x > 0 and f(x) = −1 for x < 0.

  • lim x→0⁺ f(x) = 1.
  • lim x→0⁻ f(x) = −1.

These differ, so the two-sided limit does not exist. Piecewise functions are a common place to meet one-sided limits.

What are limits at infinity?

A limit at infinity describes the behavior of a function as x grows without bound.

lim⁡x→∞1x=0\lim_{x \to \infty} \frac{1}{x} = 0

For rational functions, compare the highest powers of the numerator and denominator.

  • Degree of numerator smaller: the limit is 0. For (3x + 1)/(x² + 2), the limit is 0.
  • Degrees equal: the limit is the ratio of leading coefficients. For (3x² + 1)/(5x² − 4), the limit is 3/5.
  • Numerator degree larger: the limit is infinite (it grows without bound).

To see why, divide the top and bottom by the highest power of x. For (3x² + 1)/(5x² − 4), dividing by x² gives (3 + 1/x²)/(5 − 4/x²), which approaches 3/5.

A finite limit at infinity gives a horizontal asymptote.

What are infinite limits and vertical asymptotes?

If f(x) grows without bound as x approaches a, we write lim f(x) = ∞ (or −∞). This is a way of describing a trend; the limit does not exist as a number.

lim x→0⁺ 1/x = ∞, and lim x→0⁻ 1/x = −∞. The graph has a vertical asymptote at x = 0. If the sides disagree, as here, the two-sided limit does not exist.

What are the limit laws?

If lim f(x) = A and lim g(x) = B as x approaches a, then:

  • lim [f + g] = A + B.
  • lim [f − g] = A − B.
  • lim [c · f] = c · A.
  • lim [f · g] = A · B.
  • lim [f / g] = A / B, provided B ≠ 0.
  • lim [f(x)ⁿ] = Aⁿ.

These let you break a complicated limit into easy pieces. They need each piece to have a finite limit.

What is the squeeze theorem and some famous limits?

If g(x) ≤ f(x) ≤ h(x) near a, and g and h have the same limit L at a, then f also has limit L. It is used to prove

lim⁡x→0sin⁡xx=1\lim_{x \to 0} \frac{\sin x}{x} = 1

This limit, with x in radians, is the foundation for the derivatives of sine and cosine. Another important one is

lim⁡n→∞(1+1n)n=e≈2.71828\lim_{n \to \infty}\left(1 + \frac{1}{n}\right)^n = e \approx 2.71828

How do limits connect to derivatives?

The derivative is defined as a limit. The slope of the tangent line to f at x is

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

For f(x) = x², this gives ((x + h)² − x²)/h = (2xh + h²)/h = 2x + h, which approaches 2x as h → 0. Direct substitution would give 0/0, so the algebra is the point. For a fuller walk-through, see what is a derivative, and try functions in the derivative calculator.

Integrals also use limits: a definite integral is the limit of sums of thin rectangles as their width shrinks to zero. Our guide to integrals explains this.

What mistakes should you avoid?

  • Assuming the limit equals f(a). It may differ or not exist.
  • Stopping at 0/0. It is an indeterminate form, not an answer.
  • Ignoring one-sided behavior at points where the function changes definition.
  • Cancelling terms rather than factors.
  • Calling a limit "infinity" a number.
  • Trusting a table too much. Values close to a can hide oscillation or jumps.

A note on the limit calculator: results found by sampling values near the point are numerical estimates, so confirm them algebraically when you can. Practice with a mix of substitution, factoring and conjugate problems, then compare your answers with the limit calculator.

FAQ

Frequently asked questions

01Does a limit have to equal the function value?

No. A limit depends only on what the function does near the point, not at it. The function may be undefined there or have a different value. When the limit equals the function value, the function is called continuous at that point.

02What does it mean when a limit is infinity?

It means the function grows without bound as x approaches the point, so the limit does not exist as a finite number. We write it as infinity to describe the behavior. This often signals a vertical asymptote on the graph.

03What is a one-sided limit?

A one-sided limit looks at the function from only one direction: from the left, written x approaching a from below, or from the right. A two-sided limit exists only if both one-sided limits exist and are equal.

04How do I know if I need a one-sided limit?

Use one when the function behaves differently on each side of the point, such as at a jump, a corner of a piecewise function or a vertical asymptote. If the left and right limits differ, the two-sided limit does not exist. For 1/x at 0, the left side goes to −∞ and the right side to +∞.

05What is the limit of sin x divided by x as x approaches 0?

It is 1. You cannot substitute 0, because you get 0/0. A squeeze argument, a table of values or L'Hôpital's rule (cos x ÷ 1 = 1 at 0) all give the same answer. This limit is the key step in proving that the derivative of sin x is cos x.