What density tells you
Density is how much mass sits in a given volume. Lead feels heavy and foam feels light because lead packs far more mass into the same space. The quantity decides whether an object floats, how much a shipment weighs, how stiff or heavy a structure of a given size will be, and how a material can be identified. This page computes it directly from one measured mass and one measured volume. The SI unit is kilograms per cubic meter. The definition comes from the NIST guide to SI derived units, where density appears among the quantities expressed in terms of base units, and the page applies it to a single sample.
Dividing mass in kilograms by volume in cubic meters
Density equals mass divided by volume, rho = m / V. Mass goes in as kilograms and volume as cubic meters, and the answer is in kg/m³. Doubling the mass at a fixed volume doubles the density. Doubling the volume at a fixed mass halves it. Volume must be greater than zero. The relation is the same whether the sample is a solid block, a liquid or a gas, although the way you measure volume differs. For a mixture or a porous solid, the result is a bulk density, an average over the whole sample including any voids, and it will be lower than the density of the solid material itself.
Ten kilograms in five cubic meters
The page starts with 10 kg in a volume of 5 m³, which gives a density of 2 kg/m³. That is an unusually light material, somewhat denser than air at room temperature, which is close to 1.2 kg/m³, and far below water. The point of the numbers is clarity, not realism. A more typical entry would be 1,000 kg of water in 1 m³, or 2.7 kg in a volume of 0.001 m³. Whenever you get a result, compare it with density values you know, such as 1,000 kg/m³ for fresh water, to see whether the order of magnitude is plausible before you rely on it.
Metals and everyday materials
An aluminum block of 5.4 kg that occupies 0.002 m³ has a density of 2,700 kg/m³, a typical value for aluminum. A steel plate of 78.5 kg and 0.01 m³ comes out at 7,850 kg/m³, near the figure often quoted for carbon steel. A gold bar of 1.93 kg in a volume of 0.0001 m³ gives 19,300 kg/m³, which is why gold is so heavy for its size. Air in a 100 m³ room weighing 120 kg gives 1.2 kg/m³. These examples show the range from air to gold, a ratio of about sixteen thousand. Published values vary with alloy, temperature and purity, so treat them as typical.
Getting the volume
Volume is the harder measurement. For a regular solid, multiply the dimensions: a box of 0.2 by 0.1 by 0.05 m has a volume of 0.001 m³. For a cylinder, use pi times radius squared times height. Irregular objects can be measured by water displacement: the volume of liquid pushed aside equals the volume of the object, as Archimedes recognized. Liquids can be measured in a graduated vessel, where 1 liter is 0.001 m³ and 1 milliliter is 0.000001 m³. A poor volume measurement is the main source of error, since a 5 percent error in volume produces about a 5 percent error in density.
Converting grams per cubic centimeter to kg/m³
Density in grams per cubic centimeter converts to kg/m³ by multiplying by 1,000, so 2.7 g/cm³ is 2,700 kg/m³. Kilograms per liter also multiply by 1,000. In US customary units, 1 lb/ft³ equals 16.0185 kg/m³, and 1 lb/gal is about 119.83 kg/m³ for US gallons. Enter the mass and volume in kilograms and cubic meters, convert them yourself and then apply the conversion in reverse if you want your answer in another unit. A mass in grams must be divided by 1,000 and a volume in cubic centimeters must be divided by 1,000,000 before entering them.
Bulk density and moisture
Granular materials such as sand, gravel, grain and soil have a bulk density that includes the spaces between particles. 800 kg of dry sand filling 0.5 m³ gives 1,600 kg/m³, which is lower than the density of the quartz grains themselves, near 2,650 kg/m³. Bulk density changes with compaction and moisture, so a sample must be described with its conditions. Construction takeoffs, shipping loads and soil reports all depend on stating which density is meant. The page computes the ratio of the numbers you give it and does not know which kind of density it is.
Temperature, pressure and phase
Density depends on conditions. Water expands when heated and contracts when cooled, and it is densest at about 4 °C. Gases are far more sensitive and change density in proportion to pressure and inversely with absolute temperature. When you compare or look up values, record the temperature and, for gases, the pressure. A measured mass and volume from one sample describe it only as measured, and the result should not be applied to the same material in different conditions without adjustment. This is why reference tables always list the temperature next to the density. Specific gravity, the ratio of a density to that of water, is a related number without units. Aluminum at 2,700 kg/m³ has a specific gravity of about 2.7 against water at 1,000 kg/m³, and the numbers match the g/cm³ value because water is close to 1 g/cm³.
Checking plausibility with floating and sinking
A computed density gives an immediate prediction about floating. Anything below about 1,000 kg/m³ floats in fresh water and anything above sinks, if it is solid and not hollow. A 0.5 kg piece of wood occupying 0.001 m³ comes out at 500 kg/m³ and floats about half submerged. Ice, near 917 kg/m³, floats with roughly 92 percent of its volume below the surface. Seawater near 1,025 kg/m³ lifts slightly more. A hollow steel ship works because its overall bulk density, including the air inside, is below that of water, even though the steel is nearly eight times denser.The calculation needs the mass and the volume of the same sample. Combining a mass from one object with a volume from another does not establish a density. The inputs must be nonnegative and the volume positive. It is an idealized scalar relationship, so it says nothing about composition, purity or structural suitability, and no project-specific design or safety approval is implied. For engineering use, rely on tested material data, a standard test method and a qualified professional.