The simplest solid

A cube is the three-dimensional square: every edge has the same length and every face is a square. That symmetry makes its volume a one-variable calculation. You measure one edge, multiply it by itself twice more, and the result is the space the cube encloses. This page does exactly that. The input is the side length, with whatever unit you chose, and the output is the volume labeled in the cube of that unit. Typical uses include sizing a storage box, finding how much water a cubic tank holds, estimating the capacity of a cubic shipping crate and checking homework. The one condition is that the solid is a true cube, with all edges equal. If the edges differ, you have a rectangular box, and the volume is length times width times height, which needs three inputs.

The default and a few quick checks

The default side length is 2, so the volume is 2 times 2 times 2, which is 8 cubic units. A cube with a side of 1 has a volume of 1, and a cube with a side of 3 has 27. A side of 0.5 gives 0.125, and a side of 1.5 gives 3.375. These small examples are worth memorizing because they let you sense when an answer is wrong. The cubes of 1 through 10 are 1, 8, 27, 64, 125, 216, 343, 512, 729 and 1,000. Growth is fast. Doubling the side multiplies the volume by 8, tripling it multiplies it by 27, and increasing the side by only 10 percent increases the volume by 33.1 percent, since 1.1 cubed is 1.331. This is the reason why a box that looks only slightly larger can hold a lot more.

Carrying the unit through to the volume

The unit of the answer is the unit of the edge, cubed. An edge in centimeters gives cubic centimeters, and an edge in feet gives cubic feet. Converting afterward needs the cube of the length conversion factor, not the factor itself. One foot is 12 inches, so a cubic foot is 12 cubed, or 1,728 cubic inches. One inch is exactly 2.54 centimeters, so one cubic inch is 2.54 cubed, or 16.387064 cubic centimeters. A cube with an edge of 10 centimeters has a volume of 1,000 cubic centimeters, which is exactly 1 liter. A cube with an edge of 1 meter has a volume of 1 cubic meter, which is 1,000 liters. If you are unsure, convert the edge to the final unit first, and then cube it. That way you only have to remember the linear conversion factor, which is much easier to recall.

A worked packing example

Suppose you need a cubic storage bin that holds at least 50 liters. Work backward from the volume: 50 liters is 50,000 cubic centimeters, and the cube root of 50,000 is about 36.8 cm. A cube with a 37 cm edge has a volume of 50,653 cubic cm, or about 50.65 liters. The calculator performs the forward direction, so you can try 36, 37 and 38 and read the volumes: 46,656, 50,653 and 54,872 cubic centimeters. The 37 cm cube is the smallest whole-centimeter size that holds 50 liters. Real containers have wall thickness, so the inside edge is shorter than the outside, and you need to measure the inner dimension. A bin with outer edge 40 cm and 1.5 cm walls has an inner edge of 37 cm, so the usable volume is that of the inner cube.

Going from volume to side length

When you know the volume and need the edge, take the cube root. A cube that holds 27 cubic meters has an edge of 3 meters, and 64 cubic feet gives 4 feet. For volumes that are not perfect cubes, a scientific calculator or a spreadsheet can raise the number to the power of one third. For 100 cubic units the edge is about 4.6416. You can check the answer by entering it in this page, which should return a volume close to 100. This reverse approach is useful in design: given the quantity of material you must store or pour, you can see the size of the cubic form it fills. For example, 1 cubic yard of mulch is 27 cubic feet, so it fills a cube with a 3-foot edge.

Related measurements of a cube

Although this page returns volume only, several other cube measurements follow from the side length. Each face has an area of s squared, and the total surface area is 6 times s squared. For the default cube, one face is 4 square units and the surface is 24. The diagonal across a face is s times the square root of 2, and the space diagonal that runs through the cube from one corner to the opposite corner is s times the square root of 3. A cube with a 2 unit edge has a space diagonal of about 3.464. These are handy when you ask whether a long object, such as a rod, fits inside a box. The longest straight rod that fits in a 1 meter cube is about 1.732 meters. The volume itself answers the capacity question, and these lengths answer the fitting question.

Shipping and dimensional weight

Carriers often charge by the larger of actual weight and a weight derived from volume, called dimensional weight. The calculation divides the package volume by a divisor set by the carrier, and the divisor and the units differ by carrier and service, so you must check their published rules. A cubic box with a 30 cm edge has a volume of 27,000 cubic centimeters. Whatever the divisor is, you compute the volume first, which makes this calculator a useful first step. Another use is checking whether items fit in a cube-shaped container. If you have 125 small cubic blocks with 2 cm edges, their total volume is 1,000 cubic centimeters, so they could fill a cube with an edge of 10 cm if packed perfectly. Cubes pack with no gaps, which most other shapes cannot do.

Why the cube matters in science and measurement

The cube is the shape that defines the unit of volume. The liter is the volume of a cube with a 10 centimeter edge, so the relationship is exact: 1 liter equals 1,000 cubic centimeters and 1 milliliter is 1 cubic centimeter. The cubic meter is the SI coherent unit for volume, as listed in the NIST Guide to the SI. In chemistry, the unit cell of many crystals is cubic, and its volume is the cube of the lattice constant. The scaling law also explains why large organisms and structures behave differently from small ones: if you double every length, the volume and the mass increase eightfold, but the surface area increases only fourfold. These square-cube relationships underlie many questions in engineering and biology.

Input rules and mistakes

The side length must be a positive, finite number. A negative edge has no physical meaning, and a very large one can overflow the calculation, which the page rejects. Check that you have entered the edge, not the face area, the volume or the diagonal. If you were given the face diagonal d, the edge is d divided by the square root of 2. If you were given the surface area A, the edge is the square root of (A divided by 6). Then enter that edge. Another common mistake is to forget that the answer is in cubic units while the input is linear, which leads people to compare the volume figure to a length. The sources for this relationship are standard geometry references such as MathWorld's entry on the cube. The results are exact for ideal cubes, and real boxes carry tolerances.

Cubes in everyday and engineering contexts

Cube-shaped containers are common because they use space efficiently and stack well. A shipping crate with a 1.2 meter edge holds 1.728 cubic meters, and a cooler with an inner edge of 0.4 meters holds 0.064 cubic meters, which is 64 liters. Ice cubes with a 2.5 cm edge hold 15.625 cubic centimeters, which is 15.625 milliliters of ice by volume, though ice is less dense than water, so the mass is about 14 grams at a density near 0.92 grams per cubic centimeter. Dice, sugar cubes and building blocks all follow the same arithmetic. In computing graphics, a voxel is a small cube, and a grid of 100 by 100 by 100 voxels contains 1,000,000 of them. Each of these uses the same relationship, and all that changes is the unit and the scale of the edge.

Estimating error from a measured edge

Measurement error is amplified by the cube. If you measure the edge of a cube as 20.0 cm with an uncertainty of 0.5 cm, the volume is 8,000 cubic centimeters, but the true edge could lie anywhere from 19.5 to 20.5 cm. The volume then ranges from 7,414.875 to 8,615.125 cubic centimeters, a spread of about plus or minus 7.5 percent. The rule of thumb is that the relative error in the volume is roughly three times the relative error in the edge, here 3 times 2.5 percent. If you need the volume to within 1 percent, you must know the edge to about 0.33 percent, which for a 20 cm edge means 0.07 cm, better than a typical tape measure gives. Use calipers for small cubes, and measure all twelve edges, since a block that looks cubic is often slightly off.