Math · Calculus

Integral Calculator

Evaluate definite integrals numerically with the trapezoidal rule and Simpson's rule — no antiderivative required.

Definite integral
-
Trapezoidal approximation
-
Simpson's approximation
-
Difference |S − T|
-
Step size h
-
f(a), f(b)
-
Trapezoidal rule: ∫f dx ≈ h/2 · [ f(a) + 2Σf(xi) + f(b) ]
Simpson's rule: ∫f dx ≈ h/3 · [ f(a) + 4Σoddf(xi) + 2Σevenf(xi) + f(b) ]
Supported syntax: x, ^ (power), sin(x), cos(x), tan(x), exp(x), log(x) (natural), sqrt(x), abs(x), pi, e.

Any integrable function

Type x^2, sin(x)/x, exp(-x^2) and more — the numeric engine handles the rest.

Two classic rules

Trapezoidal and Simpson's rules with adjustable step count for accuracy.

Error insight

Comparing both methods reveals the convergence of the approximation.

Up to 100k steps

Increase n for tight precision on oscillatory or steep functions.

More Math Tools

Explore calculus and equation calculators.