Cuboid Calculator

Solve a cuboid (rectangular box) from length, width, and height: volume, surface area, space diagonal, face diagonals, and total edge length.

Volume

A cuboid is the most ordinary shape in the room: a box. Six rectangular faces, twelve edges, eight corners, with a length, a width, and a height that can all differ. Cardboard cartons, bricks, fish tanks, shipping containers, and most rooms are cuboids. When the three dimensions happen to be equal you have a cube, which is just the special case.

From those three measurements every other property follows. Volume is length times width times height, the space inside, measured in cubic units. Surface area is 2(lw + lh + wh), the total skin of all six faces, which is what you need for wrapping, painting, or working out material. The space diagonal, the straight line from one corner to the opposite corner through the middle, is the square root of (l squared plus w squared plus h squared). That one tells you the longest straight object that can fit inside, which is why it matters when you are packing a box.

There are smaller numbers worth having too. The three face diagonals are the diagonals across each pair of faces. The total edge length, 4(l + w + h), is how much framing or trim you would need to outline the box, useful for everything from aquarium bracing to picture-frame style builds.

Enter the length, width, and height in the same unit and the calculator returns all of these at once. Keep the units consistent: feed it centimetres and you get cubic centimetres of volume and square centimetres of surface area. Mixing inches and centimetres is the one mistake that quietly wrecks the answer.


How we build and check this calculator

This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.

SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.


Embed This Calculator

Copy the code below and paste it into your website or blog.
The calculator will work directly on your page.