Rectangular Prism Calculator
Enter the length, width and height of a box-shaped object to get its volume, total surface area and the longest diagonal.
| Volume | 480 cubic units |
|---|---|
| Surface area | 392 sq units |
| Space diagonal | 15.2643 |
Link to this calculation – copied!
Formula
A = 2(lw + lh + wh)
d = √(l2 + w2 + h2)
| Symbol | Meaning |
|---|---|
| l, w, h | Length, width and height |
| V | Volume |
| A | Total surface area of all six faces |
| d | Space diagonal, corner to opposite corner |
How to Use This Calculator
- Enter the Length (l).
- Enter the Width (w).
- Enter the Height (h).
- Press Calculate. Results also update automatically as you type.
Worked Example
Using the values pre-filled in the calculator above:
| Length (l) | 12 |
|---|---|
| Width (w) | 8 |
| Height (h) | 5 |
| Volume | 480 cubic units |
|---|---|
| Surface area | 392 sq units |
| Space diagonal | 15.2643 |
About This Calculation
A rectangular prism — also called a cuboid or simply a box — has six rectangular faces meeting at right angles. Its volume is length times width times height, the number of unit cubes that would fill it. A cube is the special case where all three dimensions are equal. The surface area adds up the three pairs of opposite faces, and the space diagonal is the longest straight line that fits inside, from one corner to the diagonally opposite one.
All three measurements must be in the same unit before multiplying. Mixing feet and inches is the most common error: a 12 ft × 8 ft room with 60-inch-deep fill must be 12 × 8 × 5 ft, not 12 × 8 × 60. Also note that volume scales with the cube of size — doubling every dimension makes the box eight times bigger — while surface area only quadruples, which is why large containers use material more efficiently.
Use this calculator to find the capacity of aquariums, planters, raised beds and shipping boxes, the cubic yards of concrete for a slab or footing, the volume of a room for heating, ventilation and air-conditioning sizing, or the wrapping and paint needed (surface area). The space diagonal tells you the longest pole that fits in a box or the longest item that can go in a car boot. Convert units with the volume converter.
Frequently Asked Questions
- How do I calculate cubic yards of concrete?
- Measure in feet, multiply length × width × thickness to get cubic feet, then divide by 27. A 12 × 8 ft slab 4 inches (0.333 ft) thick needs about 32 ft³, or 1.19 yd³ — order a little extra for waste.
- How do I find the volume of an aquarium in gallons?
- Measure the inside dimensions in inches, multiply them, and divide by 231 to get US gallons (or measure in centimeters and divide by 1,000 for liters).