Skip to content

Integral Calculator

Calculate the definite integral of a function between two limits, for example sin(x) from 0 to pi or x^2 * exp(-x) from 0 to 10. The value is computed numerically with adaptive Simpson integration and shown with an error estimate.

Reset

Frequently asked questions

What kind of integrals can it solve?

Definite integrals of one variable: the function, the variable and the lower and upper limits. The result is a number. Indefinite integrals, which return a formula, are not supported.

How is the integral computed?

With adaptive Simpson's rule: the interval is split into pieces, and each piece is halved again until the estimate stops changing, so steep parts of the function get more evaluation points than flat ones.

Which functions can I use?

The same functions as the Derivative Calculator, including sin, cos, tan, exp, log, sqrt, abs and powers with ^. Constants such as pi and e are allowed in the function and in the limits.

What does the error estimate mean?

It is the method's own estimate of how far the result may be from the exact value. Smooth functions usually reach an error far below the displayed precision.

Why does it say the integral diverges?

The function became infinite or undefined somewhere in the interval, for example 1/x at 0. Such improper integrals need limits that avoid the singular point.

Can I swap the limits?

Yes. If the upper limit is smaller than the lower one, the result has the opposite sign, as the definition of the integral says.

About OneClick Pro

OneClick Pro is a free collection of more than 150 web tools for everyday work: converting images and units, formatting and validating code, checking domains and SEO, and working with text, dates and numbers. Every tool runs without registration or subscription, and what you enter is only used to calculate your result and is never stored. Use it as a quick toolbox for one-off tasks, or bookmark the tools you rely on every day.