Rectangular Prism Calculator

Rectangular Prism Calculator | Volume, Surface Area, Diagonal

Rectangular Prism Calculator

Calculate volume, surface area, lateral area, and space diagonal of any rectangular prism (cuboid). Enter any 3 values and solve for all unknowns.

Rectangular Prism (Cuboid) Calculator
l w h
PropertyValue

Rectangular Prism Formulas

Rectangular prism formulas relate volume, surface area, and diagonal through the three dimensions: length (l), width (w), and height (h).

Volume: V = l × w × h

Total Surface Area: S = 2(lw + lh + wh)

Lateral Surface Area: Slat = 2h(l + w)

Top/Bottom Area: Stop = Sbot = lw

Space Diagonal: d = √(l² + w² + h²)

Known ValuesSolve For Height
l, w, hDirectly given
Surface Area S, l, wh = (S − 2lw) ÷ (2l + 2w)
Volume V, l, wh = V ÷ (l × w)
Diagonal d, l, wh = √(d² − l² − w²)

Volume and Surface Area Explained

Volume and surface area of a rectangular prism measure fundamentally different things and are used in different practical contexts.

Volume of a Rectangular Prism

Volume measures the three-dimensional space inside the prism, expressed in cubic units. It tells you how much a box can hold. The formula V = lwh multiplies all three dimensions together. Doubling any one dimension doubles the volume; doubling all three increases volume eightfold.

Total Surface Area

Total surface area is the combined area of all six faces. It is used to determine how much material is needed to wrap or coat a box. The formula S = 2(lw + lh + wh) accounts for three pairs of identical rectangular faces.

Lateral Surface Area

Lateral surface area includes only the four side faces, excluding the top and bottom. It equals 2h(l + w). This is useful when only the sides of a container need to be covered, such as painting the walls of a room without the floor or ceiling.

Space Diagonal of a Rectangular Prism

The space diagonal connects two opposite corners and passes through the interior. It extends Pythagoras into three dimensions: d = √(l² + w² + h²). This calculation is used in packaging to determine whether a long item fits diagonally inside a box.

Frequently Asked Questions

The volume of a rectangular prism equals length times width times height (V = l × w × h). For a box 5 cm long, 3 cm wide, and 2 cm tall, the volume is 5 × 3 × 2 = 30 cubic centimeters.
The total surface area of a rectangular prism is S = 2(lw + lh + wh). For a box 5 cm × 3 cm × 2 cm, the surface area is 2(15 + 10 + 6) = 2 × 31 = 62 square centimeters.
The space diagonal of a rectangular prism is d = √(l² + w² + h²). For a box 5 × 3 × 2, the diagonal is √(25 + 9 + 4) = √38 which is approximately 6.164.
A rectangular prism and a cuboid are two names for the same three-dimensional shape: a box with six rectangular faces where all angles are right angles. A cube is a special case where all three dimensions are equal (l = w = h).
If you know the volume (V), length (l), and width (w), find the height using h = V ÷ (l × w). For example, if volume is 60, length is 5, and width is 4, then height is 60 ÷ 20 = 3.