Rectangular Prism Calculator

Volume, surface areas and space diagonal of a box from its three dimensions.

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²)
Rectangular prism diagramAn isometric box with length l, width w and height h.lwh
Diagram not to scale.

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.

Formula version1.0.0
FormulaV = l × w × h S = 2(lw + lh + wh) S_lateral = 2(l + w)h d = √(l² + w² + h²)
Precision4 decimals

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

Related calculators

Last updated: 2026-07-31 · v1.0.0 · Report an error