A planets density is determined by its composition as well as its size: Gravity compresses the material a planet is made of, increasing the planets density. Uncompressed density adjusts for the effect of gravity and can reveal how the composition of various planets compare.