Numerical Integration Calculator

Approximate definite integrals numerically.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Type a function and limits to evaluate the area numerically. ∫ from 0 to 1 of 4/(1 + x²) dx equals π, 3.14159.

How to use

1
Step 1
Type f(x).
2
Step 2
Enter the lower and upper limits.
3
Step 3
Press Calculate.

How it works

The interval is split into 200 slices and integrated with Simpson's rule, which is accurate to about six digits for smooth functions. Use it when a function such as exp(−x²) has no elementary antiderivative.

∫ₐᵇ f(x) dx ≈ Σ f(xᵢ) Δx

Worked example

A famous way to get π

Input
4/(1+x^2) from 0 to 1
Output
3.14159
Walkthrough
The antiderivative is 4 arctan x, and 4 arctan 1 − 4 arctan 0 = 4 × π/4 = π.

Limitations

  • Smooth functions only: a vertical asymptote or sharp corner inside the interval reduces the accuracy.

Questions

What is the integral of x³ from 0 to 2?
The integral of x³ from 0 to 2 is 4, since 2⁴ ÷ 4 = 4.
What is the integral of 1/x from 1 to 3?
1.09861, which is ln 3.
How can an integral give π?
∫₀¹ 4/(1+x²) dx = 3.14159, since the antiderivative is 4 arctan x.

Features

  • No antiderivative needed
  • Six-digit result
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Finding mean, median, and mode

    Khan Academy

    Descriptive stats used across statistics tools.

    Watch on YouTube
  • The essence of calculus

    3Blue1Brown

    Visual derivative/integral story that complements symbolic tools.

    Watch on YouTube