Cuboid Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the length, width and height of a rectangular box (cuboid) 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²) (length units)
- Total length of the 12 edges, 4(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 (length units): 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), Space diagonal √(l² + w² + h²) (length units) and Total length of the 12 edges, 4(l + w + h).
How this calculator works
A cuboid (rectangular prism) with length l, width w and height h has volume V = l·w·h and total surface area A = 2(lw + lh + wh), the six rectangular faces in three equal pairs. The four side faces alone give the lateral area 2h(l + w).
The space diagonal from one corner to the opposite corner is √(l² + w² + h²) (the Pythagorean theorem used twice), and the 12 edges add up to 4(l + w + h).
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Length l | length units | |
| Width w | same unit | |
| Height h | same unit | |
| Volume l × w × h | cubic units |
Worked example
| Length l (length units) | 3 |
|---|---|
| Width w (same unit) | 4 |
| Height h (same unit) | 5 |
| Total surface area 2(lw + lh + wh) (square units) | 94 |
|---|---|
| Lateral area 2h(l + w), without top and bottom (square units) | 70 |
| Space diagonal √(l² + w² + h²) (length units) | 7.0711 |
| Total length of the 12 edges, 4(l + w + h) | 48 |
Volume l × w × h (cubic units) 60
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What are the volume and surface area of a 3 × 4 × 5 box?
Volume 60 cubic units and surface area 2(12 + 15 + 20) = 94 square units; the diagonal is about 7.0711.
Is a cube a cuboid?
Yes, a cube is a cuboid whose length, width and height are equal.