Formation and evolution of the Solar System timescale of their formation. At the current locations it would have taken millions of years for their cores to accrete. This means that Uranus and Neptune may have formed closer to the Sun—near or even between Jupiter and Saturn—and later migrated or were ejected outward (see Planetary migration below). Motion in the planetesimal era was not all inward toward the Sun; the "Stardust" sample return from Comet Wild 2 has suggested that materials from the early formation of the Solar System migrated from the warmer inner Solar System to the region of the Kuiper belt. After between three and ten
Stability of the Solar System essentially the distance from sun to earth). These are now known as the Kirkwood gaps. Some asteroids were later discovered to orbit in these gaps, but their orbits are unstable and they will eventually break out of the resonance due to close encounters with a major planet. Another common form of resonance in the Solar System is spin–orbit resonance, where the period of spin (the time it takes the planet or moon to rotate once about its axis) has a simple numerical relationship with its orbital period. An example is our own Moon, which is in a 1:1 spin–orbit resonance