the solar system[a] is the gravitationally bound system comprising the sun and the objects that orbit it, either directly or indirectly.[b] of those objects that orbit the sun directly, the largest eight are the planets,[c] with the remainder being significantly smaller objects, such as dwarf planets and small solar system bodies. of the objects that orbit the sun indirectly, the moons, two are larger than the smallest planet, mercury.[d]
the solar system formed 4.6 billion years ago from the gravitational collapse of a giant interstellar molecular cloud. the vast majority of the system's mass is in the sun, with most of the remaining mass contained in jupiter. the four smaller inner planets, mercury, venus, earth and mars, are terrestrial planets, being primarily composed of rock and metal. the four outer planets are giant planets, being substantially more massive than the terrestrials. the two largest, jupiter and saturn, are gas giants, being composed mainly of hydrogen and helium; the two outermost planets, uranus and neptune, are ice giants, being composed mostly of substances with relatively high melting points compared with hydrogen and helium, called ices, such as water, ammonia and methane. all planets have almost circular orbits that lie within a nearly flat disc called the ecliptic.
the solar system also contains smaller objects.[e] the asteroid belt, which lies between the orbits of mars and jupiter, mostly contains objects composed, like the terrestrial planets, of rock and metal. beyond neptune's orbit lie the kuiper belt and scattered disc, which are populations of trans-neptunian objects composed mostly of ices, and beyond them a newly discovered population of sednoids. within these populations are several dozen to possibly tens of thousands of objects large enough that they have been rounded by their own gravity. such objects are categorized as dwarf planets. ıdentified dwarf planets include the asteroid ceres and the trans-neptunian objects pluto and eris.[e] ın addition to these two regions, various other small-body populations, including comets, centaurs and interplanetary dust, freely travel between regions. six of the planets, at least four of the dwarf planets, and many of the smaller bodies are orbited by natural satellites,[f] usually termed "moons" after the moon. each of the outer planets is encircled by planetary rings of dust and other small objects.
the solar wind, a stream of charged particles flowing outwards from the sun, creates a bubble-like region in the interstellar medium known as the heliosphere. the heliopause is the point at which pressure from the solar wind is equal to the opposing pressure of interstellar wind; it extends out to the edge of the scattered disc. the oort cloud, which is thought to be the source for long-period comets, may also exist at a distance roughly a thousand times further than the heliosphere. the solar system is located in the orion arm, 26,000 light-years from the center of the milky way.