Skip to content

Limit Calculator

This limit calculator finds the value a function approaches as x gets close to a number or goes to infinity. Enter f(x) and the point, such as 1, inf or -inf, and choose both sides, left or right. It tries direct substitution first, then L'Hôpital's rule for 0/0 forms, and falls back to a clearly labeled numerical estimate.

Last updated November 6, 2026 · Topic: Calculus

Use x, ^, /, sin, cos, e^x, ln, sqrt

A number, inf or -inf

What is a limit?

Limits are the foundation of calculus. Both the derivative and the integral are defined as limits. A limit asks what value f(x) is heading toward as x approaches a particular point, from the left, from the right or both.

This tool uses three strategies in order: direct substitution, L’Hôpital’s rule for 0/0 forms, and a numerical check. It labels the result so you know how reliable it is.

How the limit calculator solves a limit

lim⁡x→af(x)=Lmeans f(x) gets as close to L as you like when x is close enough to a\lim_{x \to a} f(x) = L \quad \text{means } f(x) \text{ gets as close to } L \text{ as you like when } x \text{ is close enough to } a

L’Hôpital’s rule: if f(x)/g(x) is 0/0, then lim f/g = lim f′/g′ when the right side exists.

How to use the limit calculator

  1. Type the function f(x). Use x, ^, /, sin, cos, e^x, ln and sqrt.
  2. Type the value x approaches. Use inf or −inf for infinity.
  3. Choose both sides, left or right.
  4. Read the limit in the answer and the method in the steps.
  5. Check the answer against a graph if possible.

Limit examples

Example 1: A removable hole

Find the limit of (x² − 1)/(x − 1) as x → 1. Substituting gives 0/0. Differentiate the top and bottom: 2x and 1. At x = 1 that is 2/1 = 2. You can also factor: (x − 1)(x + 1)/(x − 1) = x + 1, which is 2 at x = 1.

Example 2: A famous limit

Find the limit of sin(x)/x as x → 0. Substituting gives 0/0. The derivatives of the top and bottom are cos(x) and 1. At x = 0 that is 1/1 = 1.

Example 3: Repeated L’Hôpital

Find the limit of (1 − cos x)/x² as x → 0. First pass: sin x over 2x, which is still 0/0. Second pass: cos x over 2, which is 1/2 at x = 0. The limit is 1/2.

Example 4: Infinity

Find the limit of (2x² + 1)/(x² − 3) as x → ∞. For large x, the values are 2.0000… and settle near 2. The limit is 2. This is a numerical estimate, and it agrees with the rule that the limit is the ratio of the leading coefficients.

Types of limits the calculator handles

TypeExampleResult
Two-sided limit at a point(x² − 1)/(x − 1) as x → 12
One-sided limit1/x as x → 0 from the right+∞
Limit at infinity(3x + 1)/(x − 2) as x → inf3
Infinite limit1/x² as x → 0+∞
A limit that does not exist1/x as x → 0 from both sidesthe sides disagree

A limit at infinity asks where the function settles as x grows. An infinite limit asks whether the function itself grows without bound near a point. They sound alike but answer different questions.

Why limits matter

Limits are how calculus defines a derivative: the slope of a curve is the limit of the slope of a short line as its length shrinks to zero. You can test this here with (f(x + h) − f(x))/h written out for a specific x. The derivative calculator does it with rules instead, and limits explained covers the ideas step by step.

Tips

  • Use brackets around the top and the bottom of a fraction.
  • Try direct substitution by hand first.
  • For one-sided limits, choose Left or Right.
  • Functions such as sin(1/x) have no limit at 0, so expect a does-not-exist message.
  • See limits explained for the ideas and techniques.

Common mistakes

  • Thinking the limit equals f(a). The function may not even be defined there.
  • Using L’Hôpital’s rule when the form is not 0/0 or ∞/∞.
  • Ignoring one-sided differences.
  • Trusting a numerical estimate without checking.

Real-life uses

Limits describe instant speed, the slope of a curve, the area under a graph, the behavior of a function for very large inputs, and how a series settles. Engineers use them to model systems near a boundary. In every calculus course, limits lead to the derivative and the integral. Try the derivative calculator to see how a limit becomes a slope.

FAQ

Frequently asked questions

01What is a limit?

A limit is the value a function gets closer and closer to as the input approaches some number. It does not matter what the function does exactly at that number, or even whether it is defined there. For (x² − 1)/(x − 1), the limit as x approaches 1 is 2 even though the function is undefined at 1.

02What is L’Hôpital’s rule?

If plugging in the value gives 0/0 or infinity over infinity, you can differentiate the top and the bottom separately and try again. The limit of the new ratio equals the limit of the old one if it exists. The calculator applies the rule up to four times and shows each new ratio.

03What are one-sided limits?

A one-sided limit looks at x approaching from only the left or only the right. The two-sided limit exists only if both sides agree. For 1/x at 0, the right-hand limit is plus infinity and the left-hand limit is minus infinity, so the two-sided limit does not exist. Choose the side in the From box.

04How does the calculator handle infinity?

Type inf or −inf for the x-value. For limits at infinity, it evaluates the function at very large inputs and checks whether the values settle on a number, grow without bound or keep jumping around. This is a numerical estimate, and the answer says so. Most school examples give clean results.

05When does a limit not exist?

A limit does not exist when the left and right sides approach different values, when the function grows without bound in opposite directions, or when it oscillates forever, like sin(1/x) near 0. The calculator tells you which case it found. A function growing to infinity is said to have an infinite limit.

06How reliable are the numerical answers?

Substitution and L’Hôpital results are exact. Numerical results are estimates based on values very close to the point, and they are rounded to nice numbers when they are close to a simple fraction. If the function is unusual, check the answer with algebra or a graph before you rely on it.

07Can a limit be infinite?

Yes. If the function grows without bound as x approaches the point, the limit is +∞ or −∞. 1/x² as x approaches 0 goes to +∞ from both sides. Some textbooks say such a limit does not exist as a number; both descriptions mean the same thing.

08What are limits at infinity?

They describe the value a function approaches as x gets very large or very negative. For (3x + 1)/(x − 2), the limit as x goes to infinity is 3, because the leading terms dominate. Type inf or -inf in the approaches box.