The acceleration due to gravity at the surface of the planet is directly proportional to its density.