The density of a substance is the ratio of its mass to its volume. It is always necessary to state the units of density because it may be expressed in a number of different mass and volume units.