Integral Calculator with Limits and Graph
Compute a definite integral between two limits — the exact area under any curve — with the function plotted alongside the result.
Inputs
Use x as the variable. Supports +, -, *, /, ^, sqrt, sin, cos, tan, log, ln, exp.
- Function f(x)
- Lower Limit
- Upper Limit
Saved Scenarios
— select 2+ to compare| Metric | |
|---|---|
Definite Integral
9.0000
Spark says
f(x) over the integration range
Formula
- h
- — (b-a)/n, the width of each of the n subintervals Simpson's rule divides the range into
What is the Integral Calculator with Limits and Graph?
This calculator finds a definite integral — the exact area between a function's curve and the x-axis, between two limits — computed numerically via Simpson's rule, and plots the function so you can see the actual region being measured.
Use this when checking a manually calculated definite integral, finding the area under a curve that doesn't have a simple closed-form antiderivative, or building intuition for what a definite integral actually represents by seeing the shaded region alongside the number.
How to use it
- 1 Enter your function using x as the variable, e.g. x^2 or sin(x)*x.
- 2 Enter the lower and upper limits of integration.
- 3 Read the resulting area, and check the plotted graph to see the actual region being measured.
Understanding Integral Calculator with Limits and Graph
A definite integral answers a genuinely intuitive geometric question — how much area sits between a function's curve and the x-axis, over a specific range — and Simpson's rule, the numeric method this calculator uses, is a well-established, accurate way to compute that area without needing to find the function's symbolic antiderivative first.
The most basic way to approximate area under a curve is to slice the region into thin rectangles and sum their areas — the rectangle method, which becomes more accurate as the rectangles get narrower, but converges relatively slowly and requires a large number of slices for high precision. Simpson's rule improves on this substantially by using parabolic arcs instead of flat-topped rectangles to approximate the curve within each small slice — since a parabola can bend to follow a curving function far more closely than a flat rectangle top can, Simpson's rule achieves meaningfully higher accuracy with far fewer slices than the basic rectangle method needs for comparable precision. This calculator uses 100 slices internally, which — combined with Simpson's parabolic-arc approach — produces results accurate to many decimal places for the great majority of well-behaved functions, matching the true exact integral (when one exists in closed form) extremely closely.
A genuinely important, easy-to-overlook detail about definite integrals is how they handle a function that dips below the x-axis within the integration range: area below the axis counts as negative, not as additional positive area. This means a function that spends part of its range above the x-axis and part below can produce a definite integral smaller than the visually apparent total shaded region would suggest — the below-axis portion actively subtracts from, rather than adds to, the above-axis portion. This isn't a quirk of the numeric method; it's the actual mathematical definition of a definite integral, and it's exactly why 'find the total shaded area, treating everything as positive' is a genuinely different (and sometimes more complicated to compute) question than 'find the definite integral,' even though the two coincide whenever the function stays entirely above the x-axis throughout the integration range.
The relationship between a definite integral and its antiderivative — captured formally by the Fundamental Theorem of Calculus — is worth understanding even though this calculator works numerically rather than symbolically. The theorem states that a definite integral from a to b equals F(b) - F(a), where F is any antiderivative of the original function (a function whose derivative is the original function). This is exactly why, for functions with a known, simple antiderivative, computing a definite integral symbolically is often faster than any numeric method — but many genuinely important functions either have no closed-form antiderivative expressible in elementary functions at all, or have one complex enough that numeric integration is more practical anyway. This is precisely the gap numeric methods like Simpson's rule fill: they compute an accurate definite integral directly from the function itself, without requiring a symbolic antiderivative to exist or be found first.
Definite integrals show up constantly in practical contexts once you recognize the underlying pattern: accumulating a continuously-changing rate into a total quantity. A velocity function's definite integral over a time interval gives total distance traveled. A rate-of-production function's definite integral gives total output over a period. A probability density function's definite integral over a range gives the probability of an outcome falling within that range. In every case, the definite integral is answering the same fundamental question this calculator computes directly — given how something is changing instant to instant, how much total accumulation happened over a specific interval — which is exactly why definite integrals remain one of the most widely applicable tools across physics, economics, statistics, and engineering, well beyond their origins as a purely geometric area calculation.
Worked examples
Advantages
- •Works for any function the input grammar supports, including ones with no simple closed-form antiderivative.
- •Plots the actual function and integration range, connecting the abstract number to the concrete area it represents.
- •Uses Simpson's rule, a genuinely accurate numeric integration method, not a crude approximation.
- •Handles negative limits, negative function values, and any valid limit ordering.
Limitations
- •Computes a numeric approximation, not a symbolic antiderivative formula — it can't tell you the general antiderivative function, only the specific area for the limits you enter.
Common mistakes
- ⚠️ Expecting a symbolic antiderivative formula (like x³/3 for x²) instead of a numeric area — this calculator finds the specific area for your entered limits, not a general formula.
- ⚠️ Not accounting for negative area when a function dips below the x-axis within the integration range — a definite integral subtracts area below the axis rather than adding its absolute value, so a function that's partly negative can produce a smaller total (or even negative) result than the visual 'total shaded area' might suggest.
- ⚠️ Entering the limits in the wrong order without realizing a definite integral's sign flips when the limits are swapped — integrating from a to b gives the negative of integrating from b to a.
Tips
- 💡 What's the difference between this and an antiderivative? This calculator finds the numeric area for specific limits; an antiderivative (like x³/3 for x²) is a general formula you'd still need to evaluate at two points and subtract — this tool skips straight to that final numeric answer.
- 💡 Watch the graph carefully when a function crosses the x-axis within your integration range — the calculator correctly treats area below the axis as negative, which can make the total smaller than the visually shaded region might suggest.
- 💡 Check your expression syntax carefully — use * for multiplication explicitly (3*x, not 3x) and ^ for exponents (x^2, not x²).
- 💡 Swapping the lower and upper limits flips the sign of the result — this is mathematically correct, not a bug, and matches how definite integrals are formally defined.
Real-life uses
- Checking a manually calculated definite integral
- Finding the area under a curve that doesn't have a simple closed-form antiderivative
- Building intuition for what a definite integral actually represents by seeing the shaded region alongside the number
- Estimating a total accumulated quantity (distance from a velocity function, total revenue from a rate function) over an interval
Frequently asked questions
What's the difference between this and an antiderivative?
This calculator finds the numeric area for specific limits; an antiderivative (like x³/3 for x²) is a general formula you'd still need to evaluate at two points and subtract — this tool skips straight to that final numeric answer.
Why can a definite integral be negative or smaller than the visible shaded area?
Area below the x-axis counts as negative in a definite integral, not as additional positive area — a function that dips below the axis within the range subtracts from the total rather than adding to it.
How accurate is Simpson's rule?
Very accurate for smooth functions — using parabolic arcs instead of flat rectangles to approximate the curve, it converges to the true value far faster than simpler methods, typically matching the exact result to many decimal places.
What happens if I swap the lower and upper limits?
The result's sign flips — integrating from a to b gives the negative of integrating from b to a, which is the correct, formally defined behavior of a definite integral, not an error.
What functions does this calculator support?
Any expression using x as the variable with +, -, *, /, ^, sqrt, sin, cos, tan, log, ln, exp and similar standard functions — the same safe expression grammar used throughout this site's calculators.
calixo.cloud/math/integral-calculator/ — free calculator, no signup required.