Volume
V = lwh
Volume is base area lw multiplied by perpendicular height.
Enter valid dimensions to see the formula substitutions.
A rectangular prism, cuboid, or rectangular box has length l, width w, and perpendicular height h. Opposite faces are congruent rectangles.
V = lwh
Volume is base area lw multiplied by perpendicular height.
SA = 2(lw + lh + wh)
There are two faces of each size: l × w, l × h, and w × h.
d = √(l² + w² + h²)
This is the straight-line distance between opposite vertices through the prism.
LSA = 2h(l + w)
This counts the four side faces and excludes the two l × w bases.
dlw = √(l² + w²)
Similarly, dlh = √(l² + h²) and dwh = √(w² + h²).
E = 4(l + w + h)
A rectangular prism has four edges of each dimension.
The result unit is squared for areas and cubed for volume. Changing an input unit reinterprets that input’s number; it does not rewrite the number in the field.
V = 5 × 4 × 3 = 60 cm³.
SA = 2(20 + 15 + 12) = 94 cm², and d = √50 ≈ 7.071 cm.
V = 18 × 12 × 8 = 1,728 in³.
SA = 2(216 + 144 + 96) = 912 in².
2 m × 75 cm × 500 mm becomes 2 m × 0.75 m × 0.5 m.
The volume is 0.75 m³ and the surface area is 5.75 m².
Volume multiplies all three dimensions: lwh. Adding them is part of the total edge-length formula, not volume.
lw + lh + wh counts one face of each size. Multiply by two to include the opposite faces.
Convert dimensions to compatible units first. The calculator does this automatically using each input’s unit selector.
Multiply length by width by height: V = lwh. Convert the three measurements to compatible length units before multiplying.
Add the areas of all six faces: SA = 2(lw + lh + wh). Each pair of opposite rectangular faces has the same area.
The corner-to-corner space diagonal is d = √(l² + w² + h²).
When l × w is treated as the base, lateral surface area is the area of the four side faces: LSA = 2h(l + w).
Yes. Each dimension has its own metric or imperial unit selector. The calculator converts all three to the selected output unit before applying the formulas.
Yes. A rectangular prism is also commonly called a cuboid or rectangular box. All six faces are rectangles and opposite faces are congruent.
No. The calculation runs locally in your browser and does not send or save your dimensions.
Last reviewed: July 30, 2026 by the Starlight Tools editorial team.
The calculator uses standard Euclidean geometry and exact metric-to-imperial conversion factors. Unrounded values are used throughout; the decimal-place setting affects display only. Inputs outside a conservative browser-number range are rejected to prevent overflow or underflow in squared and cubed results.