Integral calculusFree · No sign-up

Multiple Integral Calculator

This multiple integral calculator evaluates double, triple and quadruple integrals in any order and any variables, with limits that depend on outer variables. It integrates from the inside out, shows every intermediate result and checks the value numerically.

See the region
  • 2, 3 or 4 integrals
  • Any variable names and order
  • Limits that use outer variables
4
integrals deep
12
variable names
9
ready-made examples
Iterated integral engine
Number of integrals
f =
Integrals innermost first; limits may use the variables below them
innermost
from
to
outermost
from
to
Preview
—Full solution ↓

Results

Your integral, from the inside out

The map shows the region for the two outermost variables. Its colour is what the inner integrals add up to at each point.

Interactive diagram

Region of integration

positivenegative

Multiple integral

Step-by-step solution

—

    Step by step

    How to Use the Multiple Integral Calculator

    To use the multiple integral calculator, follow these 5 steps. The value and the region update as you type.

    1. 1

      Pick how many integrals

      Choose double, triple or quadruple.

    2. 2

      Type the integrand

      For example x + y, rho^2*sin(phi) or x*y*z*w.

    3. 3

      Set each integral, innermost first

      Pick its variable and type its limits. A limit may use the variables of the integrals below it, such as 1 - x.

    4. 4

      Read the value

      See the exact value, a numeric check, the size of the region and the average of f.

    5. 5

      Follow the steps

      Each step integrates one variable and plugs in its limits.

    Try an example:

    Definition

    What Is a Multiple Integral?

    A multiple integral is the integral of a function of 2 or more variables over a region, such as ∬R f(x, y) dA or ∭E f(x, y, z) dV. It adds up f times a tiny area or volume element over every point of the region, the same way a definite integral adds up f(x) dx along an interval.

    A multiple integral is the limit of a Riemann sum over small boxes. Split the region into cells of area ΔA, multiply each cell by f at a sample point, and add: as the cells shrink, the sum approaches the integral.

    Multiple integrals are a core topic of Calculus III. They compute area, volume, mass, charge, probability and average values over regions in 2, 3 or more dimensions. In practice they are evaluated as iterated integrals: one ordinary definite integral at a time.

    Riemann box explorer: ∬ x y² dA over [0, 1] × [0, 2]
    cells—
    midpoint sum—
    exact4/3 ≈ 1.3333
    error—

    Darker cells hold larger values of f. Each cell adds f(midpoint) × ΔA; the error drops by about 4× each time the grid doubles.

    Dimensions

    Double, Triple and Quadruple Integrals

    There are 3 multiple integrals this calculator handles: the double integral over a region in the plane, the triple integral over a solid in space, and the quadruple integral over a region in 4 dimensions. Each one adds 1 integral sign and 1 differential.

    Double, triple and quadruple integrals compared
    Double integralTriple integralQuadruple integral
    Notation
    Regionarea in the xy-planesolid in xyz-spaceregion in 4D space
    ElementdA = dx dydV = dx dy dzdV₄ = dx dy dz dw
    With f = 1areavolume4D volume (hypervolume)
    Orders2! = 23! = 64! = 24
    Example
    iFor double and triple integrals with a region view, use the Double Integral Calculator and the Triple Integral Calculator. This page covers the general case: 2 to 4 integrals, any variable names and any order.

    Theory

    Iterated Integrals and Fubini's Theorem

    Fubini's theorem says a multiple integral of a continuous function over a box equals an iterated integral, taken one variable at a time, in any order. Guido Fubini proved the general version in 1907, and Leonida Tonelli extended it to nonnegative functions in 1909.

    The inner integral A(x) = ∫ f(x, y) dy is the area of a cross-section of the solid at a fixed x. The outer integral adds those cross-sections. For z = x y² over [0, 1] × [0, 2], A(x) = 8x/3 and ∫₀¹ 8x/3 dx = 4/3, the volume of the solid.

    The theorem extends to regions bounded by curves and to any function whose absolute value has a finite integral. Without that condition the 2 orders can disagree: (x² − y²)/(x² + y²)² on the unit square gives π/4 in one order and −π/4 in the other.

    Fubini slice explorer: the cross-section area A(x)
    A(x) = ∫₀² x y² dy = 8x/3—
    volume up to x = 4x²/3—

    Drag to turn the solid. The red slice is the inner integral at one x; sliding it to x = 1 sweeps the whole volume, 4/3.

    Method

    How to Evaluate a Multiple Integral From the Inside Out

    To evaluate a multiple integral, integrate the innermost variable first while every other variable stays constant, substitute its limits, and repeat outward until only a number remains. Here are the steps for eMathHelp's example ∫₂⁵ ∫₁ˣ x y² dy dx.

    01 · Read the order

    Innermost is dy

    dy dx means y first, from y = 1 to y = x; then x from 2 to 5.

    02 · Inner integral

    x is a constant

    03 · Outer integral

    One variable left

    04 · Evaluate

    A number

    Every inner result is a function of the outer variables only. The calculator prints each one, so a mistake shows up at the exact step where it happens. A triple or quadruple integral repeats step 02 once per extra variable.

    Regions

    Limits That Depend on Outer Variables

    The limits of an inner integral may depend on the variables of the integrals outside it, and the outermost limits are always constants. Variable limits describe regions that are not boxes: triangles, disks, tetrahedra and simplices.

    The rule runs one way. A limit can use only variables integrated later (further out), never its own variable or one already integrated. The calculator checks this and stops with a message such as "The upper limit for y can use x; it uses y."

    A region with variable limits needs a sketch to set up. Write the outermost variable's range first, then the next variable's range as a function of the outer one, and continue inward.

    Regions described with variable limits
    RegionLimits (inner → outer)Size
    Triangle1/2
    Quarter diskπ/4
    Tetrahedron1/6
    4D simplex1/24

    Strategy

    Choosing the Order of Integration

    Choose the order of integration whose inner integral has an elementary antiderivative and whose region needs the fewest pieces. The value is the same in every order for a continuous integrand, but the work is not.

    ∫₀¹ ∫ₓ¹ ey² dy dx cannot be done in that order: ey² has no elementary antiderivative in y, so the calculator falls back to nested numerical integration and recognizes the number afterwards. Describe the same triangle with x inside, 0 ≤ x ≤ y, and the inner integral becomes y ey², which a substitution finishes: (e − 1)/2 ≈ 0.8591.

    The calculator evaluates the order you enter. To find the best order for a 2-variable region, the Change Order of Integration Calculator rewrites the limits for you.

    The same integral in 2 orders
    dy dx (hard)dx dy (easy)
    Integral
    Inner resultno elementary form
    Methodnumericalu = y², exact
    Value0.8591409142, then recognized as (e − 1)/2

    Coordinate systems

    Multiple Integrals in Polar, Cylindrical and Spherical Coordinates

    Polar, cylindrical and spherical coordinates turn round regions into boxes, at the cost of an extra factor in the area or volume element: r for polar and cylindrical, ρ² sin φ for spherical. Type the factor into the integrand, and use r, theta, rho and phi as variable names.

    Area and volume elements in 3 coordinate systems
    SystemElementTypical regionExample
    Polar (r, θ)disk, ring, sector
    Cylindrical (r, θ, z)cylinder, cone, pipe
    Spherical (ρ, φ, θ)ball, shell, cone

    The factors are Jacobian determinants of the coordinate changes. The cylinder above, radius 1 cm and height 2 cm, holds 2π ≈ 6.283 cm³ (6.283 mL). Dedicated tools set these up for you: the Cylindrical and Spherical Coordinates Calculators and the Jacobian Calculator.

    Meaning

    What a Multiple Integral Measures

    A multiple integral measures 3 kinds of quantity, depending on the integrand: size (area, volume), totals of a density (mass, charge, probability), and higher-dimensional volume.

    01 · f = 1

    Area and volume (integrand 1)

    A multiple integral of 1 gives the size of the region: ∬R 1 dA is its area and ∭E 1 dV is its volume. The triangle 0 ≤ y ≤ x ≤ 1 has area 1/2, and the tetrahedron under x + y + z = 1 has volume 1/6. The calculator lists this size next to every result.

    02 · f = density

    Mass and average value

    A multiple integral of a density gives a total, such as mass, and dividing by the region's size gives the average value. A triangular plate 0 ≤ y ≤ x ≤ 1 m with density x + y kg/m² has mass ∬ (x + y) dA = 0.5 kg (about 1.1 lb). The average of x y² over [0, 1] × [0, 2] is (4/3)/2 = 2/3.

    03 · 4 dimensions

    Higher-dimensional volume

    A quadruple integral of 1 gives the 4-dimensional volume (hypervolume) of a region. The box [0, 4] × [0, 3] × [0, 2] × [0, 1] has 4D volume 24, and the unit simplex x + y + z + w ≤ 1 has 1/24. Probability in 4 random variables uses the same integrals.

    Volumes of simplices and unit balls by dimension
    Dimension n1234
    Unit simplex (corner of the unit box)11/21/61/24
    Unit ball2π ≈ 3.14164π/3 ≈ 4.1888π²/2 ≈ 4.9348

    Worked examples

    Worked Examples

    Here are 4 worked examples of multiple integrals: a double integral over a triangle, a triple integral for a tetrahedron, a ball in spherical coordinates and a 4D simplex. Each one integrates from the inside out.

    double

    Double integral over a triangle

    Evaluate ∬ (x + y) dA over 0 ≤ y ≤ x ≤ 1.

    1. Inner, in y:
    2. Outer, in x:

    Answer:

    triple

    Tetrahedron volume = 1/6

    1. In z:
    2. In y:
    3. In x:

    Answer: volume 1/6, a sixth of the unit cube.

    spherical

    Ball volume in spherical coordinates = 4π/3

    1. In ρ:
    2. In φ:
    3. In θ:

    Answer: ; a ball of radius R has .

    quadruple

    4D simplex = 1/24

    1. In w:
    2. In z:
    3. In y:
    4. In x:

    Answer: 1/24 = 1/4!. The unit simplex in n dimensions has volume 1/n!, the red bar in the chart.

    Questions

    Frequently Asked Questions

    What is the difference between a multiple and an iterated integral?

    A multiple integral is the integral of f over a region, ∬_R f dA, while an iterated integral is the way to compute it: one single-variable integral inside another, such as ∫ₐᵇ ∫ f dy dx. Fubini's theorem says the 2 are equal for continuous functions. The multiple integral has no order; each iterated integral has one.

    Does the order of integration matter?

    No, the order of integration does not change the value of a multiple integral of a continuous function, but it changes how hard the work is. A triple integral has 6 orders and a quadruple integral has 24. ∫₀¹ ∫ₓ¹ e^(y²) dy dx has no elementary inner antiderivative in the given order; with dx inside, it gives (e − 1)/2 exactly.

    Can a multiple integral have variable limits?

    Yes, the limits of an inner integral can be functions of the outer variables, which is how triangles, disks and tetrahedra are described. The outermost limits must be constants. The tetrahedron x + y + z ≤ 1 uses 0 ≤ z ≤ 1 − x − y, 0 ≤ y ≤ 1 − x and 0 ≤ x ≤ 1, and its volume is 1/6.

    How many integrals can a multiple integral have?

    A multiple integral can have any number of integrals, one per variable; physics and statistics use integrals over hundreds of dimensions, usually computed with Monte Carlo methods. This calculator evaluates 2, 3 or 4 integrals symbolically, one variable at a time, and checks each result with nested numerical integration.

    When do I need a Jacobian?

    You need a Jacobian when you change variables, since the area or volume element changes size. Polar coordinates use dA = r dr dθ, cylindrical coordinates dV = r dz dr dθ and spherical coordinates dV = ρ² sin φ dρ dφ dθ. Leaving the factor out gives wrong answers: a disk of radius 3 has area ∫∫ r dr dθ = 9π, but dropping r gives 6π.

    This multiple integral calculator evaluates double, triple and quadruple integrals in any order, with variable limits and every intermediate step, and reports the size of the region and the average value.