Triple Integral Numeric Solver

Enter f(x,y,z), set bounds for all three axes, and get a numeric approximation of the triple integral using a 3D midpoint Riemann sum.

Configure Integral

Use x, y, z as variables. Use * for multiply, ^ for power.

x bounds [a, b]

y bounds [c, d]

z bounds [e, g]

Examples

Set the function and bounds, then click Calculate.

About the method

The tool divides the box [a,b]×[c,d]×[e,g] into n³ sub-boxes of equal size. For each sub-box, it evaluates f at the midpoint (xm, ym, zm) and multiplies by the volume Δx·Δy·Δz. The total is the sum of all products — the 3D midpoint Riemann sum. For smooth functions, error decreases as O(h²) where h = max(Δx, Δy, Δz), so doubling n roughly quarters the error. Note that n=50 already evaluates 125,000 points; keep n modest for fast results on simple functions.

Copied!

Summary

Enter f(x,y,z), set bounds for all three axes, and get a numeric approximation of the triple integral using a 3D midpoint Riemann sum.

How it works

  1. Enter the function f(x,y,z) using standard notation (e.g. x*y*z, sin(x+y+z), x^2 + y^2 + z^2).
  2. Set the x lower and upper bounds (a, b).
  3. Set the y lower and upper bounds (c, d).
  4. Set the z lower and upper bounds (e, g).
  5. Choose the grid size n (sub-intervals per axis; n³ total points evaluated).
  6. Click "Calculate" to run the 3D midpoint Riemann sum and see the result.

Use cases

  • Verify triple integral results from calculus textbooks or homework.
  • Estimate volume of a solid or mass of a 3D object with known density function.
  • Compute 3D probability integrals for joint density functions of three variables.
  • Explore how box bounds affect the integral value interactively.
  • Check symbolic CAS output against a numeric approximation.
  • Demonstrate iterated integration over a box domain in a classroom setting.
  • Approximate center-of-mass integrals in physics problems.

Frequently Asked Questions

Last updated: 2026-07-26 · Reviewed by Nham Vu