Squeeze Theorem Calculator
See how two bounds constrain a function or sequence. Compare one-sided or two-sided samples, inspect the graph and work through the proof examples.
Check a squeeze theorem setup
Enter a lower bound, a middle expression and an upper bound. The calculator samples the three expressions and estimates the outer limits. A proof still needs inequalities and limits that hold throughout the relevant neighborhood or tail.
Load an example
Sample table
How the sample check works
How the squeeze theorem works
The squeeze theorem, also called the sandwich or pinching theorem, is an AP Calculus AB and BC Topic 1.8 method. Use it when you can trap a hard-to-evaluate expression between two simpler ones with the same limiting value. Bounded oscillation times a factor that shrinks to zero is a common example.
Functions approaching a point
Show that for all inputs in a punctured neighborhood . The value at the point itself does not affect the limit. Restrict the neighborhood to one side for a one-sided limit.
Sequences approaching infinity
For sequences, show for all sufficiently large positive integers. If the outer sequences tend to the same value, the middle one tends to it too.
Use the calculator to check your setup
- Choose functions or sequences and enter the three expressions. For functions, choose a direction and a sample radius. For sequences, enter the range of indices to inspect.
- Use geometric spacing to concentrate function samples closer to the approach point. Uniform spacing distributes samples evenly across the selected range.
- Check numerical ordering, numerical outer estimates and any optional limits you input. The plot and table show the finite evidence. Save your session in the browser or export the samples as CSV.
Worked examples
Oscillation with a shrinking amplitude
The sine factor has magnitude at most one. Taking absolute values handles negative inputs without accidentally reversing just one inequality. The product has magnitude at most the magnitude of the input, so the outer limits agree at zero.
The standard sine and cosine limits
Use radians. The unit-circle area comparison gives the following bounds when the input is positive and less than a right angle. The three expressions are even, so the same bounds hold for negative inputs close to zero. Both outer expressions tend to one.
The half-angle identity and the standard inequality for the absolute value of sine also give the cosine limit.
A right-hand limit at a domain boundary
Between zero and one, the square root is defined and lies between zero and one. Multiply by the positive input. Both bounds tend to zero as the input approaches zero from the right. The expression has no real values immediately to the left of zero.
A rational sequence with matching bounds
Subtract the fraction from two, then bound the resulting correction term. The calculator preset uses bounds that hold for every positive integer. Constant bounds on either side of two would keep the sequence in a band but would not establish its limit.
Practice problems and solutions
Choose a valid neighborhood or sequence tail before applying the theorem. Then open the solution to check your setup.
1. Use the squeeze theorem on an oscillating product
Show that the absolute value of the target stays below the shrinking outer bound.
2. Sandwich the sine quotient near zero
Use the geometric bounds for the sine quotient. The lower and upper expressions approach one from both sides.
3. Pinch an oscillating sequence
Divide the standard sine bounds by the positive index. Both resulting outer sequences go to zero.
4. Use quadratic bounds on a cosine product
Multiply the cosine inequality by the nonnegative square. Both outer limits are zero.
5. Find converging bounds for a rational sequence
Find bounds for . Rewrite the middle term before choosing them. Since the index is positive, the lower and upper sequences below both tend to three.
6. Decide what differing outer limits tell you
With lower bound negative one and upper bound one, cosine stays between them. The constants approach different limits, so the squeeze theorem gives no conclusion from this setup. At a right angle, continuity gives the middle limit directly.
Squeeze theorem FAQs
What is the squeeze theorem?
The squeeze, sandwich or pinching theorem finds a limit by trapping the target expression between two bounds that approach the same value. The inequalities must hold near the limit point or eventually along a sequence.
What is an example of the squeeze theorem?
An oscillating factor can be multiplied by a shrinking amplitude. For any nonzero input, the absolute value of the product is at most the absolute value of the input. Both signed bounds tend to zero.
How do I use the squeeze theorem to evaluate a limit?
Choose lower and upper expressions. Prove their order in the relevant neighborhood, then evaluate each outer limit. If those two limits agree, the middle limit is their common value.
What is the sandwich theorem?
Sandwich theorem, squeeze theorem, pinching theorem and compression theorem are names for the same idea. The middle expression is confined between the two outer ones.
Can I use the squeeze theorem for sequences?
Yes. It is enough for the order to hold from some positive integer onward. The lower and upper sequences must tend to the same value, so a finite number of earlier terms does not affect the conclusion.
What does it mean when the calculator says 'Inconclusive'?
The relevant side may contain undefined samples, or the outer estimates may fail to stabilize or agree. Review the sample table, the real domain and the chosen bounds. Matching numbers entered manually are assumptions you still need to justify.
What is a proof of the squeeze theorem?
Let . Each outer limit gives a radius within which its bound is within epsilon of the common limit. Also take the radius where the ordering holds. Choose the smallest of these radii. The middle is then within epsilon as well.
What is the squeeze theorem example?
For nonzero arguments with absolute value less than a right angle, the unit-circle area comparison gives the bounds shown below. The quotient is even, so the positive-side inequalities extend to the negative side. Both outer limits are one.
What are common squeeze theorem mistakes?
Check two things separately. The inequality must hold throughout the required punctured neighborhood, and both outer functions must approach the same value. For a two-sided limit, the evidence must cover both sides. At a one-sided domain boundary, use the side the problem requests.
Can I download squeeze theorem practice problems?
Open the practice problems below and reveal the worked solutions after trying them. The calculator’s CSV contains the computed sample table and its diagnostic statuses. College Board links at the end provide additional released questions.
How does this squeeze theorem solver work?
The calculator evaluates a restricted set of mathematical expressions and tabulates samples in a deterministic order. It estimates the two outer limits separately, checks each sample and lets you inspect or export those samples.
Can I use this squeeze theorem calculator for homework and exams?
Use it to check how a proposed setup behaves while studying. On a written solution, state the valid domain and prove the inequalities and the two outer limits. Follow your exam’s calculator rules.
More NUM8ERS calculus resources
AP Calculus framework and released papers
Topic 1.8 includes the standard sine and cosine quotient limits near zero. The released free-response questions below give related practice in end behavior and continuity. For the 2025 end-behavior question, try bounding the positive rate above by a simpler expression that tends to zero. For the 2026 question, decide whether continuity gives the limit directly.