Rectangular Prism Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the length, width and height of the box in the same unit.
Result
Volume l × w × h (cubic units)
Total surface area 2(lw + lh + wh) (square units)
- Lateral area 2h(l + w), without top and bottom (square units)
- Space diagonal √(l² + w² + h²)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Length l (any unit): enter 0 or more.
- Width w (same unit): enter 0 or more.
- Height h (same unit): enter 0 or more.
- Read the result: Volume l × w × h (cubic units); the panel also shows Total surface area 2(lw + lh + wh) (square units), Lateral area 2h(l + w), without top and bottom (square units) and Space diagonal √(l² + w² + h²).
How this calculator works
A rectangular prism (cuboid) has six rectangular faces. Volume V = lwh. Surface area S = 2(lw + lh + wh), the sum of three pairs of equal faces; the lateral area 2h(l + w) leaves out the top and bottom.
The space diagonal, from one corner to the opposite corner through the inside, is √(l² + w² + h²), the Pythagorean theorem applied twice.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Length l | any unit | |
| Width w | same unit | |
| Height h | same unit | |
| Volume l × w × h | cubic units |
Worked example
| Length l (any unit) | 4 |
|---|---|
| Width w (same unit) | 3 |
| Height h (same unit) | 2 |
| Total surface area 2(lw + lh + wh) (square units) | 52 |
|---|---|
| Lateral area 2h(l + w), without top and bottom (square units) | 28 |
| Space diagonal √(l² + w² + h²) | 5.3852 |
Volume l × w × h (cubic units) 24
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the volume of a 4 × 3 × 2 box?
24 cubic units; its surface area is 2(12 + 8 + 6) = 52 square units.
How much wrapping paper covers a box?
At least its total surface area; add overlap for folds.