Double Integral Calculator screenshot

Double Integral Calculator

Integrate f(x, y) over a rectangle with iterated adaptive Simpson, printing the tolerance and the number of intervals used.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
No sign-up, no upload
Accuracy stated

Double Integral Calculator

Integrate f(x, y) over a rectangle with iterated adaptive Simpson, printing the tolerance and the number of intervals used.

How this page computes

The page integrates over a rectangle by running adaptive Simpson on the inner variable and then on the outer one. On x·y over x in [0, 1] and y in [0, 2] the value is exactly 1.

The tolerance is a per-axis error budget, and the interval count is printed so the refinement is visible. A non-finite sample inside the rectangle is refused by name rather than integrated across.

The limits are constants. A variable limit is a different integral, and the page says so instead of silently substituting a number.

The calculation runs entirely in this browser tab; nothing is uploaded.

The page computes a double integral over a rectangle and tells you how hard it worked: the value, the tolerance it aimed for, and the number of Simpson intervals it used. For x·y over [0, 1] × [0, 2] the answer is 1.

The method is iterated adaptive Simpson, not a fixed grid. Each axis halves its intervals only where the estimate is still moving, which is why a smooth integrand finishes in a few intervals and a peaked one does not.

How to use Double Integral Calculator

Type f(x, y), then the four limits: x from ax to bx, y from ay to by.

Set the tolerance. Smaller means more intervals and a slower page; 1e-8 is a sensible default for ordinary functions.

Press Run. The output gives the value first and the method line second, so the accuracy claim is attached to the number.

How the method works

Simpson's rule fits a parabola through three samples and integrates it exactly. Adaptive Simpson compares a one-panel estimate with the two-panel estimate and subdivides only where they disagree, so the error budget is spent where the integrand is hard.

A double integral is iterated: the inner integral is a function of the outer variable, and the outer adaptive rule calls it at each sample. The page prints the total interval count across both levels rather than a single misleading grid size.

What to Expect

Best for

  • A double integral over a rectangle
  • A numeric answer where no elementary antiderivative is handy
  • Seeing how many intervals a tolerance actually needed

Not ideal for

  • A region with curved boundaries, which needs variable limits
  • An integrand with a pole inside the rectangle
  • An exact symbolic answer, which the single-variable integral page handles for supported forms

What this tool keeps

  • The integrand and all four limits exactly as typed

What may need cleanup

  • Nothing: the value and its refinement count are final

Common errors

  • An interval with equal ends is refused
  • A non-finite integrand sample is refused with the point named
  • A tolerance outside (0, 1] is refused

Example use cases

  • Integrate x·y over the unit-by-two rectangle
  • Integrate x^2 + y^2 over the unit square
  • See the interval count for a peaked integrand

Sample input

f(x, y) = x·y, x from 0 to 1, y from 0 to 2, tolerance 1e-8

Sample output

value = 1, by iterated adaptive Simpson with a per-axis tolerance of 1e-8

Who this is for

  • Students checking a double integral
  • Readers who want the accuracy stated, not implied

Frequently asked questions

Why are the limits constants?

Because a rectangle is the region this page integrates over. A triangular or circular region needs limits that depend on the other variable, and pretending a constant is one of those would be a different problem.

How accurate is the answer?

The page aims for the tolerance you set on each axis and prints the interval count it used. For a smooth polynomial the estimate is usually far inside that budget, but the page does not claim more than the stated tolerance.

What if the function is infinite somewhere?

The page refuses and names the sample point. It does not integrate across a pole, because the result would depend on how the singularity is approached.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.