Ma · Mathematics

How to Find the Volume of a Cuboid Using a Triple Integral

Published By the 9to5Science editorial team

At a glance

  1. 1. Write the bounds

    Represent an axis-aligned cuboid by lower and upper limits for x, y, and z.

  2. 2. Integrate one

    Set the integrand to 1, since volume counts each point in the region equally.

  3. 3. Evaluate the limits

    Integrate successively in any order; the result is the product of the three side lengths.

  4. 4. Check the units

    The answer should have cubic units and agree with length times width times height.

A triple integral finds volume by adding up tiny pieces of space throughout a solid. For a cuboid whose faces are parallel to the coordinate planes, the integrand is simply 1: each small piece contributes its own volume, with no extra weighting.

If the cuboid extends from x=ax=a to x=bx=b, from y=cy=c to y=dy=d, and from z=ez=e to z=fz=f, then its volume is

V=∫ab∫cd∫ef1 dz dy dx.V=\int_a^b\int_c^d\int_e^f 1\,dz\,dy\,dx.

Evaluating the integral gives (b−a)(d−c)(f−e)(b-a)(d-c)(f-e), the product of the three side lengths.

Why the integrand is 1

A triple integral of a function g(x,y,z)g(x,y,z) over a region adds the values of gg throughout that region. When g=1g=1, each small volume element contributes its full volume. In Cartesian coordinates, that element is dV=dx dy dzdV=dx\,dy\,dz, so

V=∭R1 dV.V=\iiint_R 1\,dV.

This is the volume analogue of finding the area of a region by integrating 1 over it. If the integrand were instead a density, the integral would give total mass rather than volume.

Evaluate the integral step by step

For the cuboid

R={(x,y,z):a≤x≤b, c≤y≤d, e≤z≤f},R=\{(x,y,z):a\le x\le b,\ c\le y\le d,\ e\le z\le f\},

one possible integration order is dz dy dxdz\,dy\,dx. The bounds are constant because the faces are parallel to the coordinate planes. Integrate from the inside out:

V=∫ab∫cd∫ef1 dz dy dx=∫ab∫cd(f−e) dy dx=∫ab(f−e)(d−c) dx=(f−e)(d−c)(b−a).\begin{aligned} V&=\int_a^b\int_c^d\int_e^f 1\,dz\,dy\,dx\\ &=\int_a^b\int_c^d (f-e)\,dy\,dx\\ &=\int_a^b (f-e)(d-c)\,dx\\ &=(f-e)(d-c)(b-a). \end{aligned}

The lengths are b−ab-a in the xx-direction, d−cd-c in the yy-direction, and f−ef-e in the zz-direction. Thus the triple integral reproduces length times width times height.

Worked example

Find the volume of the cuboid defined by

−1≤x≤2,2≤y≤6,0≤z≤5.-1\le x\le 2,\qquad 2\le y\le 6,\qquad 0\le z\le 5.

Set up the integral using these bounds:

V=∫−12∫26∫051 dz dy dx=∫−12∫265 dy dx=∫−1220 dx=60.\begin{aligned} V&=\int_{-1}^{2}\int_{2}^{6}\int_0^5 1\,dz\,dy\,dx\\ &=\int_{-1}^{2}\int_{2}^{6}5\,dy\,dx\\ &=\int_{-1}^{2}20\,dx\\ &=60. \end{aligned}

The side lengths are 2−(−1)=32-(-1)=3, 6−2=46-2=4, and 5−0=55-0=5, so the ordinary formula also gives 3⋅4⋅5=603\cdot4\cdot5=60 cubic units. The coordinates of the lower corner do not affect the volume; only the lengths of the intervals matter.

Choosing the order of integration

For an axis-aligned cuboid, you can integrate in any order. For example, integrating first with respect to xx gives

∫05∫26∫−121 dx dy dz=(3)(4)(5)=60.\int_0^5\int_2^6\int_{-1}^2 1\,dx\,dy\,dz =(3)(4)(5)=60.

The differential order and the order of the matching bounds must agree: in dz dy dxdz\,dy\,dx, integrate in zz first, then yy, then xx. Changing the order is harmless here because each coordinate has independent constant bounds. For other solids, changing the order may require rewriting bounds that depend on the other coordinates.

Common mistakes

  • Integrating the wrong function: For volume, use 1. Integrating a density or another function calculates a different quantity.
  • Using coordinates instead of side lengths: A cuboid from x=−1x=-1 to x=2x=2 has length 3, not 2. Subtract the lower endpoint from the upper endpoint.
  • Mismatching bounds and differentials: The innermost differential corresponds to the innermost integral and its limits.
  • Forgetting units: If the side lengths are measured in centimeters, the volume is in cubic centimeters.
  • Assuming every cuboid has simple Cartesian bounds: A rotated rectangular box may not have faces parallel to the coordinate planes. Its volume is still the product of its edge lengths, but describing it in the original coordinates can require a coordinate transformation or different bounds.

References

  1. OpenStax, Calculus Volume 3, Multiple Integration

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.