Jupiter and liquid matter. It is the largest of the four giant planets in the Solar System and hence its largest planet. It has a diameter of at its equator. The average density of Jupiter, 1.326 g/cm, is the second highest of the giant planets, but lower than those of the four terrestrial planets. Jupiter's upper atmosphere is about 88–92% hydrogen and 8–12% helium by percent volume of gas molecules. A helium atom has about four times as much mass as a hydrogen atom, so the composition changes when described as the proportion of mass contributed by different atoms. Thus, Jupiter's
Ice giant the terrestrial and gas giants is relatively straightforward and uncontroversial. The terrestrial planets of the Solar System are widely understood to have formed through collisional accumulation of planetesimals within the protoplanetary disc. The gas giants—Jupiter, Saturn, and their extrasolar counterpart planets—are thought to have formed after solid cores around 10 Earth masses () formed through the same process, while accreting gaseous envelopes from the surrounding solar nebula over the course of a few to several million years (Ma), although alternative models of core formation based on pebble accretion have recently been proposed. Some extrasolar giant planets may instead have formed