There is evidence that the formation of the Solar System began about 4.6 billion years ago with the gravitational collapse of a small part of a giant molecular cloud.
In roughly 5 billion years, the Sun will cool and expand outward to many times its current diameter (becoming a red giant), before casting off its outer layers as a planetary nebula and leaving behind a stellar remnant known as a white dwarf.
[4] The current standard theory for Solar System formation, the nebular hypothesis, has fallen into and out of favour since its formulation by Emanuel Swedenborg, Immanuel Kant, and Pierre-Simon Laplace in the 18th century.
[5] However, since the early 1980s studies of young stars have shown them to be surrounded by cool discs of dust and gas, exactly as the nebular hypothesis predicts, which has led to its re-acceptance.
Arthur Stanley Eddington's confirmation of Albert Einstein's theory of relativity led to his realisation that the Sun's energy comes from nuclear fusion reactions in its core, fusing hydrogen into helium.
[8] Fred Hoyle elaborated on this premise by arguing that evolved stars called red giants created many elements heavier than hydrogen and helium in their cores.
The oldest inclusions found in meteorites, thought to trace the first solid material to form in the presolar nebula, are 4,568.2 million years old, which is one definition of the age of the Solar System.
[19][20] Studies of the structure of the Kuiper belt and of anomalous materials within it suggest that the Sun formed within a cluster of between 1,000 and 10,000 stars with a diameter of between 6.5 and 19.5 light years and a collective mass of 3,000 M☉.
[21][22] Several simulations of our young Sun interacting with close-passing stars over the first 100 million years of its life produced anomalous orbits observed in the outer Solar System, such as detached objects.
[11] Over about 100,000 years,[9] the competing forces of gravity, gas pressure, magnetic fields, and rotation caused the contracting nebula to flatten into a spinning protoplanetary disc with a diameter of about 200 AU[11] and form a hot, dense protostar (a star in which hydrogen fusion has not yet begun) at the centre.
[31] Within 50 million years, the temperature and pressure at the core of the Sun became so great that its hydrogen began to fuse, creating an internal source of energy that countered gravitational contraction until hydrostatic equilibrium was achieved.
Because the frost line accumulated large amounts of water via evaporation from infalling icy material, it created a region of lower pressure that increased the speed of orbiting dust particles and halted their motion toward the Sun.
This excess material coalesced into a large embryo (or core) on the order of 10 ME, which began to accumulate an envelope via accretion of gas from the surrounding disc at an ever-increasing rate.
[48] After between three and ten million years,[38] the young Sun's solar wind would have cleared away all the gas and dust in the protoplanetary disc, blowing it into interstellar space, thus ending the growth of the planets.
[56][60][61] During this primary depletion period, the effects of the giant planets and planetary embryos left the asteroid belt with a total mass equivalent to less than 1% that of the Earth, composed mainly of small planetesimals.
[62] A secondary depletion period that brought the asteroid belt down close to its present mass is thought to have followed when Jupiter and Saturn entered a temporary 2:1 orbital resonance (see below).
The inner Solar System's period of giant impacts probably played a role in Earth acquiring its current water content (~6×1021 kg) from the early asteroid belt.
Uranus and Neptune (known as the "ice giants") exist in a region where the reduced density of the solar nebula and longer orbital times render their formation there highly implausible.
[47] Beyond Neptune, the Solar System continues into the Kuiper belt, the scattered disc, and the Oort cloud, three sparse populations of small icy bodies thought to be the points of origin for most observed comets.
[69][2][47] According to the Nice model, after the formation of the Solar System, the orbits of all the giant planets continued to change slowly, influenced by their interaction with the large number of remaining planetesimals.
[47] This resonance created a gravitational push against the outer planets, possibly causing Neptune to surge past Uranus and plough into the ancient Kuiper belt.
A study by Southwest Research Institute, San Antonio, Texas, published June 6, 2011 (called the Grand tack hypothesis), proposes that Jupiter had migrated inward to 1.5 AU.
[75][76][77] Gravitational disruption from the outer planets' migration would have sent large numbers of asteroids into the inner Solar System, severely depleting the original belt until it reached today's extremely low mass.
[79] If it occurred, this period of heavy bombardment lasted several hundred million years and is evident in the cratering still visible on geologically dead bodies of the inner Solar System such as the Moon and Mercury.
[97][98] Astronomers estimate that the current state of the Solar System will not change drastically until the Sun has fused almost all the hydrogen fuel in its core into helium, beginning its evolution from the main sequence of the Hertzsprung–Russell diagram and into its red-giant phase.
In 1.1 billion years, the Sun's increased radiation output will cause its circumstellar habitable zone to move outwards, making the Earth's surface too hot for liquid water to exist there naturally.
[118] Additionally, the Sun's habitable zone will move into the outer Solar System and eventually beyond the Kuiper belt at the end of the red-giant phase, causing icy bodies such as Enceladus and Pluto to thaw.
During this time, these worlds could support a water-based hydrologic cycle, but as they were too small to hold a dense atmosphere like Earth, they would experience extreme day–night temperature differences.
The ejected material will contain the helium and carbon produced by the Sun's nuclear reactions, continuing the enrichment of the interstellar medium with heavy elements for future generations of stars and planets.
However, the star's loss of mass could send the orbits of the surviving planets into chaos, causing some to collide, others to be ejected from the Solar System, and others to be torn apart by tidal interactions.