Cube Density Calculator

Enter a cube's side length and mass to find its density (ρ = m / s³), shown in both g/cm³ and kg/m³ with a common-material comparison.

Quick Facts

Density formula
ρ = m / s³
Mass divided by volume; for a cube, volume is the side length cubed.
Unit conversion
1 g/cm³ = 1000 kg/m³
Multiply g/cm³ by 1000 to get kg/m³, since 1 m³ = 1,000,000 cm³ and 1 kg = 1000 g.
Reference point
Water ≈ 1.00 g/cm³
A cube less dense than water floats in it; denser sinks.

Your Results

Calculated
Density
-
ρ = mass ÷ volume, in g/cm³
Density
-
Same result in kg/m³
Volume
-
V = side³
Closest Common Material
-
Nearest reference density

Ready

Enter a side length and mass with their units, then press Calculate.

Formula and Method for Cube Density Calculator

Density measures how much mass is packed into a given volume: ρ = m / V, where ρ (rho) is density, m is mass, and V is volume. A cube is the simplest solid to apply this to, because its volume depends on a single measurement — the side length s — through V = s³. Combining the two gives the cube density formula this calculator uses: ρ = m / s³. Because volume grows with the cube of the side length, a small error in measuring the side has an outsized effect on the computed density.

How the calculation works

Enter the side length of the cube and choose its unit (mm, cm, m, in, or ft), then enter the cube's mass and choose its unit (g, kg, lb, or oz). The calculator converts the side length to meters and the mass to kilograms, computes volume as V = s³ in cubic meters, and divides mass by volume to get density in kg/m³. It also converts that result to g/cm³ (the most common unit for everyday materials, where water is almost exactly 1 g/cm³) and reports the raw volume for reference. Finally, it compares your density to a short table of common materials and reports the closest match, so you can sanity-check the number against something familiar.

Common mistakes

  • Using weight instead of mass: a kitchen or postal scale reads mass directly (grams, kilograms, pounds, ounces) — that's what this calculator expects. Do not enter a force in newtons or pound-force.
  • Mixing up side length with volume: entering the cube's volume where the side length is expected will cube an already-cubed number and produce a wildly wrong density.
  • Ignoring hollow or composite cubes: the formula assumes a solid, uniform cube. A hollow box or a cube made of layered materials will read as "less dense" or "more dense" than its true material, because you're measuring the average density of the whole object, not the material itself.
  • Rounding the side length too early: because volume scales as s³, rounding a 5.00 cm side to 5 cm is fine, but rounding a measured 4.6 cm side to 5 cm changes the volume — and therefore the density — by more than 15%.

Real-world applications

  • Materials identification: comparing a sample's measured density to reference values (aluminum ≈ 2.70 g/cm³, steel ≈ 7.85 g/cm³, copper ≈ 8.96 g/cm³) to identify an unknown metal or check for counterfeits.
  • Quality control and casting: verifying that a manufactured block or ingot matches the expected density for its alloy, which can reveal internal voids, porosity, or incorrect material.
  • Buoyancy and flotation: predicting whether a cube-shaped object will float or sink in water or another fluid by comparing its density to the fluid's density.
  • Shipping and packaging: estimating the mass of a batch of identical cube-shaped items (blocks, packaging foam, ice, gift boxes) from a known material density and box dimensions, or vice versa.
  • Physics and engineering coursework: a standard lab exercise for practicing unit conversion, significant figures, and the relationship between mass, volume, and density.

Frequently Asked Questions

What is the formula for cube density?
Density equals mass divided by volume: ρ = m / V. For a cube, volume is the side length cubed (V = s³), so cube density is ρ = m / s³. For example, a cube with a 5 cm side (V = 125 cm³) and a mass of 337.5 g has a density of 337.5 / 125 = 2.7 g/cm³.
How do I convert between g/cm³ and kg/m³?
Multiply a value in g/cm³ by 1000 to get kg/m³, or divide a value in kg/m³ by 1000 to get g/cm³. This works because 1 m³ equals 1,000,000 cm³ and 1 kg equals 1000 g, and those two factors combine to a net factor of 1000 between the units.
Can I use cube density to identify an unknown material?
Yes, approximately. Compare your calculated density to reference values for common materials (aluminum ≈ 2.70 g/cm³, iron/steel ≈ 7.85 g/cm³, copper ≈ 8.96 g/cm³, lead ≈ 11.34 g/cm³). A close match suggests that material, but alloys, coatings, internal voids, or trapped air can shift the result, so treat it as a strong hint rather than proof.
What if my mass and side length are measured in different unit systems?
It does not matter — enter the side length in whatever length unit you measured (mm, cm, m, in, or ft) and the mass in whatever mass unit you measured (g, kg, lb, or oz). The calculator converts both to SI base units (meters and kilograms) internally before computing density, so mixed unit systems are handled automatically.