Double integral calculator

Type a function of x and y and the limits of a rectangle to get ∬ f(x, y) dA, computed by nested adaptive Simpson integration to about ten significant digits. The area of the rectangle and the average value of f over it come with it.

Use x, y, numbers, + - * / ^, parentheses, pi, e and sin, cos, tan, exp, ln, log, sqrt, abs with brackets. Write x*y, not xy.
Limits may be numbers or expressions such as pi/2 or sqrt(2).
The y limits are constants: the region is a rectangle.
∬ f(x, y) dA18
Area of the rectangle
6
Average value of f
3
Function evaluations
4225

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Type the integrand, for example x*y^2.
  2. Enter the x limits and the y limits of the rectangle. They can be expressions such as pi.
  3. Read the integral, the area and the average value.

How it works

For each x the inner integral ∫ f(x, y) dy from c to d is computed with adaptive Simpson’s rule, which splits the interval until the estimate stops changing. The outer integral does the same over x from a to b, calling the inner one at every sample point. The inner integrals use a tighter tolerance so their small errors do not add up in the outer one.

Worked example

∬ x·y² dA over 0 ≤ x ≤ 2, 0 ≤ y ≤ 3. Because the integrand is a product, the integral is ∫₀² x dx · ∫₀³ y² dy = 2 · 9 = 18. The calculator shows 18, the area 2 · 3 = 6 and the average value 18 / 6 = 3.

Tips and common mistakes

  • Functions that blow up inside the rectangle, such as 1/x with x = 0 on the edge, give an error rather than a wrong number.
  • For a volume under a surface, f must be the height above the xy-plane; parts below the plane count as negative.
  • Products such as sin(x)·cos(y) separate into two single integrals, which is a quick way to check the result.

Frequently asked questions

How is a double integral calculated?

By Fubini's theorem a double integral over a rectangle equals an iterated integral: integrate f(x, y) over y for a fixed x, then integrate that result over x. The calculator does both steps numerically with adaptive Simpson's rule.

Can the region be a triangle or a disk?

Not directly: the limits must be constants, so the region is a rectangle. For other regions, change variables first (for a disk, polar coordinates turn it into a rectangle in r and θ with the extra factor r).

What does the average value mean?

The integral divided by the area of the region. If f is a height, it is the height of a flat box with the same base and volume.

What if the lower limit is larger than the upper one?

As in one dimension, swapping a pair of limits changes the sign of the integral. The average value is always computed with the limits in increasing order.

More in Math

All tools in this category: Math ·Updated November 4, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.