Rectangular Prism Calculator

Enter a rectangular prism's length, width, and height to get its volume (V = lwh), surface area (SA = 2(lw + lh + wh)), and space diagonal (d = √(l² + w² + h²)), plus an optional material cost estimate.

Quick Facts

Volume formula
V = l × w × h
Multiply all three dimensions together to get cubic units.
Surface area formula
SA = 2(lw + lh + wh)
Sum of all six rectangular faces, which come in three matching pairs.
Space diagonal formula
d = √(l² + w² + h²)
The 3D extension of the Pythagorean theorem, corner to corner.

Your Results

Calculated
Volume
-
V = l × w × h
Surface Area
-
SA = 2(lw + lh + wh)
Space Diagonal
-
d = √(l² + w² + h²)
Estimated Material Cost
-
Volume × cost per cubic unit

Ready

Enter length, width, and height, then press Calculate.

Formula and Method for the Rectangular Prism

A rectangular prism (also called a cuboid or rectangular box) is a six-faced solid where every face is a rectangle and every interior angle is 90°. It is defined by three dimensions — length (l), width (w), and height (h) — which need not be equal. This calculator uses those three measurements to compute the prism's volume, total surface area, and space diagonal, plus an optional material cost estimate from the volume.

How the calculation works

Enter the length, width, and height in the same unit, then choose that unit. Volume is the product of all three dimensions: V = l × w × h (in cubic units, such as ft³ or m³) — this is how much space the prism occupies or how much it can hold. Surface area adds up the six rectangular faces, which come in three congruent pairs (top/bottom, front/back, left/right): SA = 2(lw + lh + wh) (in square units). The space diagonal — the straight line from one corner of the box through its interior to the opposite corner — is d = √(l² + w² + h²), which extends the Pythagorean theorem into three dimensions (first find the diagonal across the base, √(l² + w²), then combine it with the height). If you enter a cost per cubic unit, the tool multiplies it by the volume to estimate total material cost.

Common mistakes

  • Confusing volume with surface area: a 10 × 6 × 4 ft box has a volume of 240 ft³ but a surface area of 248 ft² — very different numbers measuring very different things.
  • Mixing units: keep length, width, and height in one consistent unit — convert inches to feet, or centimeters to meters, before entering values.
  • Face diagonal vs. space diagonal: the diagonal of a single face (e.g., √(l² + w²)) is shorter than the space diagonal that cuts through the box's interior corner to corner — don't mix them up.

Real-world applications

  • Shipping, packaging, and moving use volume to determine box capacity and how many items or how much liquid a container can hold.
  • Construction and manufacturing use surface area to estimate paint, laminate, cardboard, or sheet metal needed to cover a box-shaped object.
  • Furniture and appliance delivery use the space diagonal to check whether an item can pass through a doorway or stairwell when tilted.
  • Storage, warehousing, and freight pricing combine volume with a cost or rate per cubic unit to estimate material or shipping costs.

Frequently Asked Questions

What is the formula for the volume of a rectangular prism?
Volume equals length times width times height: V = l × w × h. A box that is 10 ft long, 6 ft wide, and 4 ft tall has a volume of 10 × 6 × 4 = 240 ft³.
How do you find the surface area of a rectangular prism?
Add the areas of all six rectangular faces: SA = 2(lw + lh + wh), since the top and bottom, front and back, and left and right faces each come in matching pairs. For the 10 × 6 × 4 ft box, SA = 2(60 + 40 + 24) = 248 ft².
How is the space diagonal of a rectangular prism calculated?
The space diagonal (corner-to-corner through the interior) is d = √(l² + w² + h²), an extension of the Pythagorean theorem to three dimensions. For the 10 × 6 × 4 ft box, d = √(100 + 36 + 16) = √152 ≈ 12.33 ft.
What is the difference between a rectangular prism and a cube?
A cube is a special rectangular prism where length, width, and height are all equal, so its volume simplifies to s³ and its surface area to 6s². A rectangular prism (also called a cuboid) allows the three dimensions to differ.