Skip to content
Other

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.

Your details

Choose which quantity you want the calculator to find.
Choose how you want to specify the cube's size.
The total mass (weight) of the cube.
kg
The edge length of the cube.
m
The length of the diagonal that runs corner to corner through the interior of the cube. d = a√3.
m
The diagonal across one face of the cube. f = a√2.
m
The volume of the cube entered directly.
m³
Density
5,000

Mass divided by volume

Density unitkg/m³
Mass5
Mass unitkg
Side length0.1
Side unitm
Volume0.001
Volume unitm³
Space diagonal0.1732
Face diagonal0.1414
Surface area0.06
Dimension unitm

This cube would sink in water (density 5000.00 kg/m³).

  • At 5000.00 kg/m³, this cube is denser than water (1000 kg/m³), so it would sink.
  • Total mass of the cube: 5.0000 kg.
  • Edge length of the cube: 0.1000 m.
  • The density is closest to Titanium in the reference table below.

Next stepUse the solve-for-mass or solve-for-side modes to work backwards from a known material density and target dimensions or weight.

Formula

ρ=mV=ma3,a=mρ3,m=ρ⋅a3\rho = \dfrac{m}{V} = \dfrac{m}{a^3}, \quad a = \sqrt[3]{\dfrac{m}{\rho}}, \quad m = \rho \cdot a^3

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

MaterialDensity (kg/m³)Category
Air (at sea level)1.2gas
Cork240natural
Balsa wood120natural
Pine wood500natural
Oak wood770natural
Ice917natural
Water1000reference
Concrete2400construction
Granite2700stone
Aluminium2700metal
Glass2500construction
Titanium4500metal
Iron / cast iron7870metal
Steel7850metal
Copper8900metal
Lead11340metal
Gold19300metal

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.

Sources

Written by Grace Mbeki, MSc Data Scientist & Educator · Nairobi, Kenya

Turning everyday numbers into clear, actionable answers for the decisions that matter most.

Search 3,500+ calculators

Loading search…