A cube and cuboid calculator finds the volume, the surface area, the diagonals and the edge length of a cube or a rectangular box. For a cube you can start from the side, the volume, the surface area or the space diagonal. For a cuboid you enter the length, the width and the height. It uses the formulas on Wikipedia's page on the cube, and the same rules for the box, and it runs in your browser. It covers the cube volume, surface area and diagonal calculation, and the cuboid.
How to use the cube and cuboid calculator
- Choose cube or cuboid.
- For a cube, choose what you know, the side, volume, surface area or space diagonal, and enter its value.
- For a cuboid, enter the length, width and height.
- Press Work out the box.
The cube
The Wikipedia page on the cube gives the volume as a cubed and the surface area as 6 times a squared, where a is the side. The face diagonal is a times the square root of 2 and the space diagonal, which runs from one corner to the opposite corner through the inside, is a times the square root of 3. For a cube with a side of 2, the volume is 8, the surface area is 24, the face diagonal is about 2.828 and the space diagonal is about 3.464. A cube has 12 edges, so the total edge length is 12 times the side, which is 24 here.
Working backwards for a cube
The calculator can also start from the other values. The side is the cube root of the volume, the square root of the surface area divided by 6, or the space diagonal divided by the square root of 3. A cube with a volume of 27 has a side of 3. A cube with a surface area of 54 also has a side of 3, and a cube with a space diagonal of about 8.66 has a side of 5. This is useful when you know the capacity of a box and need its size.
The cuboid
A cuboid, or rectangular box, has six rectangular faces. The Wikipedia page on the cuboid describes the shape but gives no formulas, so the relations here are the standard ones. The volume is the length times the width times the height. The surface area is 2 times the sum of length times width, length times height and width times height. The space diagonal is the square root of the sum of the three squares, which is the three-dimensional Pythagorean theorem. The total edge length is 4 times the sum of the length, the width and the height.
A cuboid example
Take a box of 2 by 3 by 6. The volume is 36. The surface area is 2 times 6 plus 12 plus 18, which is 72. The space diagonal is the square root of 4 plus 9 plus 36, which is exactly 7, and the edges add up to 44. The three face diagonals are the square roots of 13, 40 and 45. Such a box is a standard example, since its diagonal is a whole number. The calculator shows all of these values.
Uses
The longest object that fits inside a box is its space diagonal, which is the answer to questions such as whether a rod of a given length fits in a crate. The surface area tells you how much cardboard or paint you need, and the volume tells you the capacity. For a box with a lid, the surface area is the total area of the six faces.
Cubes in daily life
Many everyday objects are close to a cube or a cuboid: boxes, rooms, bricks, tanks, dice, books and shipping containers. A room with a floor of 4 by 5 meters and a height of 2.5 meters has a volume of 50 cubic meters, and the longest straight line in it is about 7.2 meters. For tanks that are round, use the cylinder calculator on this site.
Examples with units
A shipping box is 40 centimeters by 30 centimeters by 20 centimeters. Its volume is 24,000 cubic centimeters, which is 24 liters, and its surface area is 5,200 square centimeters. The longest rod that fits inside has a length of about 53.85 centimeters. A cube-shaped tank with a side of 1 meter holds 1 cubic meter, which is 1,000 liters, and has a surface of 6 square meters.
Packing and fitting
To check whether an object fits in a box, compare its dimensions with those of the box, and for a long object, compare its length with the space diagonal. Remember that the object must also fit through the opening. The face diagonals are useful for objects that lie flat in the box on one of its faces. If you ship a package, the volume often decides the price, together with the weight.
Cube roots and volume
If you need a cube with a given volume, take the cube root of the volume to get the side. A cube of 1,000 cubic centimeters has a side of 10 centimeters. A cube of 2 liters has a side of about 12.6 centimeters, which the calculator finds when you choose the volume option with units that you convert beforehand.
Common mistakes
- Mixing up the face diagonal and the space diagonal. The space diagonal goes through the inside.
- Forgetting that volume is cubed. A side in meters gives cubic meters.
- Using different units. Convert all lengths first.
- Leaving out a face. A box has six faces.
What next
Use this often? Add Cuboid to your Home screen.
Frequently asked questions
What is a cuboid calculator?
A tool that finds the volume, surface area, diagonals and edge length of a rectangular box, and of a cube.
What is the volume of a cube?
V = a³. For a side of 2 the volume is 8.
What is the space diagonal of a cube?
d = a × √3. For a side of 2 the space diagonal is about 3.464.
How do you find the diagonal of a cuboid?
d = √(l² + w² + h²). For a box of 2 by 3 by 6 the diagonal is exactly 7.
How do you find the side of a cube from its volume?
Take the cube root. A volume of 27 gives a side of 3.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.