Cube Density Calculator
Enter the mass and any one dimension of a cube to find its density instantly. You can also work in reverse: enter density and volume to find the mass, or enter mass and density to find the required side length. Three volume pathways are supported: side length, space diagonal and face diagonal. Switch between metric and imperial units at any time.
Formula
Worked example
A steel cube with a side length of 0.1 m: volume = 0.1³ = 0.001 m³. Steel density is 7850 kg/m³, so mass = 7850 × 0.001 = 7.85 kg. Conversely, if you know the mass (7.85 kg) and density (7850 kg/m³), the side length is the cube root of (7.85 / 7850) = cube root of 0.001 = 0.1 m.
What is cube density and why does it matter?
Density is the ratio of mass to volume. For a perfect cube, it is the mass divided by the edge length raised to the third power. It tells you how tightly matter is packed into the shape. A cube of aluminium and a cube of lead with the same side length look identical in size, yet the lead cube is about four times heavier. Density is used to identify unknown materials, predict buoyancy, estimate shipping weights, design load-bearing structures, and select the right material for engineering applications. Any time you know two of the three quantities - mass, density, and side length (or volume) - this calculator finds the third.
Three ways to enter cube size: side, diagonal, and volume
Not every measurement is the most convenient one to take. This calculator supports four volume pathways so you can use whatever measurement you have. Side length (a) is the most direct: volume is simply a cubed. Space diagonal (d) runs from one corner of the cube to the opposite corner through the interior, and equals a times the square root of 3 - so the side is d divided by 1.7321. Face diagonal (f) runs corner to corner across one flat face, and equals a times the square root of 2 - so the side is f divided by 1.4142. You can also enter volume directly in cubic metres or cubic feet.
Solving for mass or side length (reverse modes)
Most density tools only calculate density. This calculator also runs in reverse. If you know the material (and therefore its density from the reference table below) and the cube dimensions, switch to "Mass" mode to find how heavy the cube would be. If you know the mass and the material density but need to size the cube to hit that weight, switch to "Side length" mode: the calculator computes the volume from mass divided by density and then takes the cube root to give the edge length. Both modes work in metric and imperial units.
Metric and imperial unit support
Scientists and engineers typically work in SI units (kilograms and metres, giving density in kg/m³), while many American industries use pounds and feet (lb/ft³). The conversion factor between the two density scales is 1 lb/ft³ = 16.018 kg/m³. Select your preferred unit system at the top of the calculator and all inputs, outputs, and worked steps update automatically. Water at room temperature has a density of 1000 kg/m³ or 62.4 lb/ft³, which is the conventional reference for floating versus sinking.
Common material densities
| Material | Density (kg/m³) | Category |
|---|---|---|
| Air (at sea level) | 1.2 | gas |
| Cork | 240 | natural |
| Balsa wood | 120 | natural |
| Pine wood | 500 | natural |
| Oak wood | 770 | natural |
| Ice | 917 | natural |
| Water | 1000 | reference |
| Concrete | 2400 | construction |
| Granite | 2700 | stone |
| Aluminium | 2700 | metal |
| Glass | 2500 | construction |
| Titanium | 4500 | metal |
| Iron / cast iron | 7870 | metal |
| Steel | 7850 | metal |
| Copper | 8900 | metal |
| Lead | 11340 | metal |
| Gold | 19300 | metal |
Approximate densities at room temperature and standard pressure. Values in kg/m³.
Frequently asked questions
What is the formula for the density of a cube?
Density equals mass divided by volume: ρ = m / V. For a cube, volume is the edge length cubed (V = a³), so the full formula is ρ = m / a³. In reverse, mass is density times volume (m = ρ × a³), and side length is the cube root of mass divided by density (a = ∛(m / ρ)).
How do I find the density of a cube if I only have the diagonal?
Measure either the space diagonal (corner to corner through the cube interior) or the face diagonal (corner to corner across one face). The space diagonal d relates to the side by d = a √3, so a = d / 1.7321. The face diagonal f relates to the side by f = a √2, so a = f / 1.4142. Once you have the side length, cube it to get volume, then divide mass by volume to get density. This calculator does all of those steps for you automatically.
Does this calculator work in imperial units (pounds and feet)?
Yes. Select "Imperial (lb, ft, lb/ft³)" from the Units dropdown and all inputs and outputs switch to pounds, feet, and lb/ft³. Internally the calculator converts to SI to do the arithmetic and converts back, so the accuracy is identical in both unit systems.
What is the density of water and why does it matter?
Pure water at room temperature has a density of 1000 kg/m³ (or 62.4 lb/ft³). Objects with a density below this float; objects above it sink. This is why a steel cube sinks (steel is about 7850 kg/m³) while a pine wood cube floats (pine is about 500 kg/m³). The insight panel in this calculator automatically compares the calculated density to water and tells you whether the cube would float or sink.
How do I find the side length of a cube from its mass and density?
Rearrange the density formula to find volume first: V = m / ρ. For a cube, volume equals side length cubed, so the side length is the cube root of the volume: a = ∛V = ∛(m / ρ). Select "Side length" from the Solve for dropdown, enter the mass and density, and the calculator returns the edge length plus all the related geometry.