Relative density is a ratio of the densities of two materials . The term specific gravity is similar but not same . Relative density , or specific gravity , is the ratio of the density ( mass of a unit volume ) of a substance to the density of a given reference material .