A cuboid is the shape of a box, a room, a brick or a fish tank, and four or five numbers describe it fully. This cuboid calculator takes the length, the width and the height to give the volume, the capacity in gallons, the total surface area, the lateral surface area, the space diagonal and the sum of the edges.
How the calculation works
- Volume = length × width × height.
- Total surface area = 2 × (length × width + length × height + width × height), the area of the six rectangular faces.
- Lateral surface area = 2 × height × (length + width), the four side faces without the top and bottom.
- Space diagonal = √(length² + width² + height²), the longest straight line from one corner to the opposite corner. It comes from the Pythagorean theorem used twice.
- Sum of the 12 edges = 4 × (length + width + height). The capacity converts the volume to US gallons, at 231 cubic inches per gallon.
Example
A box of 12 × 8 × 6 in has a volume of 12 × 8 × 6 = 576 in³, or about 2.49 gallons. The surface area is 2 × (96 + 72 + 48) = 432 in² and the lateral area is 2 × 6 × 20 = 240 in². The space diagonal is √(144 + 64 + 36) = √244 ≈ 15.62 in, and the edges add up to 4 × 26 = 104 in.
Why it matters
Volume tells you how much a box holds, surface area how much material or paint it takes and the diagonal whether a long object fits inside. The formulas come up in packaging, shipping, construction, aquariums and geometry homework.
Good to know
Use the same unit for the three sides, or let the calculator convert them for you. For capacity, measure the inside of the container and not the outside, since the walls take space. The surface area counts the outside faces once, so a box with an open top has a smaller area, which is the total minus the top. All results scale with the cube of the size for volume and with the square for area.
Related tools
The volume calculator covers other solids, the regular prism calculator handles prisms with a polygon base and the rectangle diagonal calculator works in two dimensions.