Density is the ratio of the mass of a substance to the volume occupied by the object: Density = mass volume The units of density varies, depending upon the substance measured. Density is grams per cubic centimeter (g/cm3) for solids, grams per milliliter (g/mL) for liquids, and grams per liter (g/L) for gases. The density of