Density Calculator: Relate Mass and Volume
Density describes how much mass is packed into a given volume. It is useful for identifying materials, checking fluid behavior, and converting between mass and volume when the material density is known.
The core formula is density = mass / volume. Rearranged forms are mass = density x volume and volume = mass / density.
In science classes, density is often introduced with simple solids and liquids, but the same idea is used in geology, oceanography, engineering, quality control, cooking, and shipping. If two objects have the same volume, the denser one has more mass. If two samples have the same mass, the denser one takes up less space. That comparison is why density is useful for spotting whether a metal, liquid, plastic, or mixed material is close to an expected reference value.
How to use this calculator
- Choose the value you need to solve for.
- Enter the two known values.
- Select the matching units.
- Review the converted mass, volume, and density outputs.
Unit tip
Water near room temperature is close to 1 g/mL or 1 g/cm3, which equals about 1000 kg/m3. Real density varies with temperature, pressure, purity, and mixture composition.
Common mistakes to avoid
Make sure the volume is the actual volume occupied by the material, not the container size unless the container is full. For powders, grains, foam, or porous materials, bulk density can be much lower than the density of the solid material itself because air spaces are included. For liquids, temperature can matter because warming usually expands the liquid and lowers density slightly. For gases, pressure and temperature have a much larger effect, so gas density should usually be handled with a gas-law calculator when conditions change.
Practical examples
If a 250 mL liquid sample has a mass of 200 g, its density is 0.8 g/mL, which is less dense than water. If a metal cube has a volume of 10 cm3 and a mass of 78.7 g, its density is 7.87 g/cm3, close to iron or steel. These quick checks help confirm whether measurements are plausible before using them in a larger calculation.