1 A planet's density is related to its composition. 2  The four inner terrestrial planets are dense compared to the four outer planets. 3  The inner planets are made up mainly of dense, solid rock. 4  The outer planets are composed primarily of gas, so their overall density is lower.