Relative density, or specific gravity, is the ratio of the density of a substance to the density of a given reference material. Specific gravity for liquids is nearly always measured with respect to water at its densest; for gases, the reference is air at room temperature.