Material properties · Guide

Using density to calculate mass and volume

Calculate mass or volume from density using a clear geometry basis. Account for hollow parts, porosity, temperature and mass-versus-weight units.

For a uniform material, mass is density multiplied by material volume:

m = ρV.

Rearranging gives V = m/ρ and ρ = m/V. The formula is simple; the difficult part is deciding what volume and density represent. A hollow housing's external envelope is not its solid-material volume, and a powder's bulk density includes void space between particles.

The DOE thermodynamics handbook distinguishes density, specific volume, mass and weight. The NIST fluid-property database shows why state conditions are also necessary when selecting a fluid density.

Choose the volume boundary

For a uniform solid block, use its geometric volume after subtracting holes and cutouts. For a closed container, distinguish the material volume from its internal capacity. For a porous solid, establish whether the source reports apparent density, skeletal density or a theoretical fully dense value.

If the density already includes a specified porosity, applying an additional void correction can count the same effect twice. A clear measurement definition is more useful than a guessed correction factor.

Original hollow-tube example

Consider a hypothetical metal tube 1 m long with outer diameter 50 mm and inner diameter 40 mm. Let its assumed density be 7,800 kg/m³.

Material cross-sectional area is:

A = π(0.050² − 0.040²)/4 = 0.0007069 m².

Material volume is 0.0007069 m³. Mass is therefore 7,800 × 0.0007069 = 5.51 kg.

Using the solid outer-cylinder volume instead would give 15.3 kg. That result would include imaginary metal in the bore. The internal capacity of the tube, a separate quantity, is approximately 1.257 L.

If the density input were 7.8 g/cm³, it would convert to the same 7,800 kg/m³. A cubic-length conversion is required; converting grams to kilograms without also converting cubic centimeters to cubic meters causes a large error.

Density is not weight density

Mass in kilograms becomes weight force through W = mg. The example tube weighs about 54.1 N when g = 9.81 m/s². Calling 5.51 kg a force obscures the unit basis.

Some references report specific weight in N/m³. Dividing that quantity by g gives mass density in kg/m³. A value in lbm/ft³ also requires distinguishing pound mass from pound force.

Include the relevant material condition

Thermal expansion changes volume and therefore density for a fixed mass. Fluids may change density strongly with pressure or temperature, and mixtures need composition information. A generic material-class value can support an early estimate, but it should remain labeled as an assumption.

For an assembly, calculate each material contribution separately and sum masses. A volume-weighted density can be formed afterward if useful; it is not generally the simple arithmetic average of constituent densities.

Use the density calculator after choosing a consistent material-volume definition. The hollow-section guide helps establish geometry, and material-data quality helps qualify the density input.

Sources & further reading