The density of an object or quantity of matter is its mass divided by its volume. ... Non-standard conditions can result in a change of volume, affecting the density of the materials. Also, certain temperatures and pressures can result in a change the state of the matter, which also affects the density.