Formation and evolution of the Solar System energy from the fusion of hydrogen into helium in their cores. The Sun remains a main-sequence star today. The various planets are thought to have formed from the solar nebula, the disc-shaped cloud of gas and dust left over from the Sun's formation. The currently accepted method by which the planets formed is accretion, in which the planets began as dust grains in orbit around the central protostar. Through direct contact, these grains formed into clumps up to 200 metres in diameter, which in turn collided to form larger bodies (planetesimals) of ~10 kilometres (km) in size. These gradually increased
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