What does this calculator do?
A rectangular prism — a box — is described by its length, width and height. From those three values the calculator returns the volume, the total surface area (all six faces), the lateral area (the four side faces), the base area and the space diagonal, which follows from applying the Pythagorean theorem twice. Use any length unit — areas come out in that unit squared, the volume in that unit cubed.
Formula
Products of the dimensions, plus a 3D Pythagorean theorem for the diagonal:
V = l × w × h S = 2(lw + lh + wh) S_lateral = 2(l + w)h d = √(l² + w² + h²)
How to use it
Enter the three dimensions in the same unit. Which side you call length, width or height does not change the volume, total surface or diagonal — only the base/lateral split, which treats l × w as the base.
Worked example
A 4 × 3 × 2 box: volume = 24, surface = 2(12 + 8 + 6) = 52, space diagonal = √(16 + 9 + 4) = √29 = 5.3852, base area = 12, lateral area = 28.
Frequently asked questions
What fits along the space diagonal?
The space diagonal is the longest straight segment inside the box — the length of the longest thin rod that fits. For a 4 × 3 × 2 box that is about 5.39, noticeably longer than any edge.
Is a cube a rectangular prism?
Yes — the special case l = w = h. The dedicated Cube Calculator additionally solves backwards from volume, surface or diagonal.
What does lateral area mean?
The four vertical faces only — total surface minus the top and bottom (the two l × w faces). It is what you paint if you skip the floor and ceiling.
Sources
- Standard solid geometry (volume, surface area, diagonals and slant heights of cubes, rectangular prisms, cylinders, cones, spheres and right square pyramids). Results are mathematically calculated from the supplied values, subject to input and display precision; π is used at full floating-point precision internally.
- OpenStax — Contemporary Mathematics (chapter on volume and surface area)
- Khan Academy — Volume and surface area (accessible explainer, not the primary source)
- Reviewed: 2026-07-31
Related calculators
Last updated: 2026-07-31 · v1.0.0 · Report an error