CanDoYa
EN

Free Integral Calculator

Runs entirely in your browser - no upload, no sign-up.

Definite integral

Use x as the variable. Limits can be numbers or expressions like pi, 2*pi, 1/2.

Examples

Enter a function and both limits to evaluate the integral

Computed numerically with adaptive Simpson's rule
Supported functions
sincostanasinacosatanexplnlogsqrtcbrtabspie
Share this tool

What is an integral calculator?

An integral calculator evaluates the definite integral of a function over an interval - the signed area under its curve between a lower and an upper limit. Type a function of x, set the two limits, and this free tool returns the value of ∫ₐᵇ f(x) dx instantly, computed numerically in your browser with no sign-up.

How to use

  1. 1Enter the function. Type f(x) using x as the variable - for example x^2 + sin(x). Use ^ for powers and functions like sin, cos, exp, ln and sqrt.
  2. 2Set the limits. Enter the lower limit a and the upper limit b. Each can be a number or an expression such as pi, 2*pi or 1/2.
  3. 3Read the value. The definite integral ∫ₐᵇ f(x) dx appears immediately. Use Copy result to grab it, or an example chip to try a common integral.

Who it's for

Everything runs locally: your function is parsed on the page, integrated with an adaptive numerical method, and nothing is uploaded or stored. Limits can be numbers or expressions like pi, 2*pi or 1/2, and the result updates as you type. This is a definite-integral calculator - it returns the numeric area for a chosen interval rather than a symbolic antiderivative.

FAQ

Is the integral calculator free?

Yes - it is 100% free, with no sign-up and no limit on how many integrals you evaluate. The whole calculation runs in your browser and nothing you type is uploaded.

Does it compute definite or indefinite integrals?

It computes definite integrals: you give a lower and an upper limit and it returns the numeric value of the area under the curve between them. It does not return an indefinite integral (a symbolic antiderivative with + C).

How does the calculator evaluate the integral?

It parses your function into a fast evaluator and integrates it with adaptive Simpson's rule, a numerical method that subdivides the interval wherever the curve bends sharply until the result stops changing. This gives an answer accurate to about 8-10 significant figures for well-behaved functions.

What functions and constants can I use?

You can use +, -, *, / and ^, parentheses, the constants pi and e, and functions including sin, cos, tan, asin, acos, atan, exp, ln, log (base 10), sqrt, cbrt and abs. Implicit multiplication like 2x or 2sin(x) works too.

Can the limits be pi or fractions?

Yes. Each limit can be a number or an expression such as pi, 2*pi, pi/4 or 1/2. If the lower limit is larger than the upper limit, the sign of the result flips, exactly as the definition of the integral requires.

Can it handle improper integrals?

It handles many improper integrals that converge, such as ∫₀¹ 1/√x dx = 2, by carefully sampling near the singularity, and marks the result as approximate. If the integral diverges - for example ∫₋₁¹ 1/x dx - it tells you the integral does not converge instead of printing a wrong number. Infinite limits are not supported.

How accurate is the result?

For smooth functions the value is typically accurate to 8-10 significant figures, well beyond everyday needs. Near a singularity the tool falls back to a best-effort estimate and labels it approximate, so you always know when to treat the last digits with caution.

Why does my result look slightly off from the exact answer?

Because it is a numerical method, the answer can differ from an exact symbolic value in the final digit or two - for instance returning 0.6666666667 for 2/3. Round to the precision you need and the values agree.