From a volume you can measure to a mass you need
Volume is often the easy quantity: a tank of known size, a trench of known dimensions, a room, a casting pattern. Mass is the number you need for shipping, lifting or structural loads. This page connects the two with a density. Enter the density in kilograms per cubic meter and the volume in cubic meters, and it returns the mass in kilograms. It suits quick estimates of the weight of a concrete slab, the water in a tank, the steel in a plate or the air in a room, as long as you have a density that describes the actual material in the actual condition.
The relationship
Density is mass per unit volume, so mass equals density times volume. The NIST guide to SI units lists kilogram per cubic meter as the coherent SI unit of density, which is why this page asks for those units and returns kilograms with no conversion factor. If you have density in g/cm³, multiply by 1,000 to get kg/m³, so 7.85 g/cm³ becomes 7,850 kg/m³. A liter is 0.001 m³ exactly, and a milliliter is 10^-6 m³. The relation is linear, so doubling the volume doubles the mass at fixed density, and a material twice as dense has twice the mass in the same volume.
A density of 2 and a volume of 5
The page begins with a density of 2 kg/m³ and a volume of 5 m³, giving 10 kg. These values are chosen for easy checking, not to represent a particular substance, although 2 kg/m³ is on the order of a light gas such as helium at elevated pressure. You can read the example as saying that every cubic meter holds 2 kg, so five cubic meters hold ten. Changing the density to 1,000 kg/m³, close to liquid water, would make the same volume weigh 5,000 kg, which shows how much the density value controls the answer. Keeping the volume fixed and varying density across materials is a good way to build intuition: the same 5 m³ is 6 kg of air, 5,000 kg of water and 39,250 kg of steel.
Steel, concrete, water and air
Structural steel has a density of about 7,850 kg/m³, so a plate with a volume of 0.002 m³ (for instance 1 m by 0.5 m by 4 mm) has a mass of 15.7 kg. Normal-weight concrete is commonly taken as about 2,400 kg/m³, so a slab 5 m by 2 m by 50 mm thick, a volume of 0.5 m³, weighs about 1,200 kg. Fresh water at about 4 °C has a density of 1,000 kg/m³, so a 20 L jug (0.02 m³) holds 20 kg of water. Air at roughly room temperature and sea-level pressure is about 1.2 kg/m³, so a 5 m by 4 m by 3 m room, 60 m³, contains about 72 kg of it.
Net density versus bulk density
Many materials are not solid. Gravel, sand, grain, wood chips and soil contain gaps filled with air, so their bulk density is lower than the density of the solid grains. Loose gravel may have a bulk density near 1,600 kg/m³, and 3.5 m³ of it weighs about 5,600 kg, while the mineral itself is closer to 2,600 kg/m³. Using the solid-material density for a heap overstates the mass by a large margin. Match the density to how the material is actually packed, and note that compaction, moisture and settling all change the figure, so recheck it when conditions change. Contractors often order by volume and receive by weight, so the bulk density quoted by the supplier is the number to ask for. Wet sand can weigh noticeably more than dry sand per cubic meter, because water fills part of the gaps between grains.
Temperature, pressure and moisture
Density is not a fixed property. Water changes by a few tenths of a percent between 4 °C and 60 °C, fuels expand noticeably as they warm, and gases change in proportion to absolute pressure and inversely to absolute temperature. Wood density depends heavily on moisture content, and concrete density depends on the aggregate. A tabulated value comes with a reference temperature or condition, and it should be the one that applies to your sample. For precise work, such as custody transfer of liquids, standard correction tables exist, but this page uses whatever density you enter.
Getting the volume right
The volume must be in cubic meters, and it must be the volume of material, not of the container if the container is not full. For a rectangular tank, multiply length by width by filled depth. For a cylinder, use pi times radius squared times height. For irregular objects, displacement in water gives a volume. Converting from other units: one cubic foot is about 0.0283168 m³, one US gallon is about 0.00378541 m³, and one cubic yard is about 0.764555 m³. A frequent slip is entering a volume in liters as if it were cubic meters, which inflates the mass a thousandfold.
Using the mass in the next step
Mass in kilograms feeds many follow-up calculations. Multiplying by standard gravity, 9.80665 m/s², gives the weight force in newtons, so the 1,200 kg slab exerts about 11,768 N on whatever supports it, since 1,200 × 9.80665 = 11,767.98. Mass also drives transport planning, crane selection and freight cost. When estimating the mass of a finished part with holes or cavities, subtract the void volume first or use an average density for the assembly. The page returns one number and carries no information about how the mass is distributed or supported.
What the result does not establish
This is an idealized scalar relationship that assumes a uniform density throughout the volume. It does not account for non-uniform composition, entrained air, layered materials or measurement uncertainty in the volume. Inputs must be nonnegative, and the page offers no design, structural or safety approval. For lifting, load-bearing or transport decisions, weigh the actual item or have a qualified person check the figures against the relevant rules. Reinforcing steel inside concrete, for example, raises the density of reinforced concrete to around 2,500 kg/m³, so a handbook value for plain concrete can understate a heavily reinforced section. Rounding the density early also compounds, so keep a few extra digits until the final mass. Hollow items need the wall volume, not the outer volume.