To calculate the density of an object, the mass of the object and volume of the object must be known. Density is measured in kilograms per cubic meter (kg/m³).