Similar to the formation of other planets in the solar system, Jupiter was formed through the core accretion method. Jupiter likely formed after the sun took its place at the center of the early solar system. Jupiter was one of the first planets to form in the solar system and likely created the path and formation of other planets by deflecting small planets either into orbit or into the sun.
Jupiter is almost entirely comprised of hydrogen and 10 percent helium. The planet's entire atmosphere is held together by these two elements. The planet's great distance away from the sun at its formation helped it form into the gas giant it is known as today. The solar winds of the formation of the solar system had a lesser impact the farther away the winds traveled from the sun. As a result, gases concentrated to form a gaseous planet like Jupiter as opposed to a rocky, terrestrial planet closer to the sun like Earth. In order to properly form into a planet, the gases had to quickly react together before the solar winds dispersed the gases. Rocky material that was ten times the size of Earth combined to form Jupiter's core, allowing the planet to collect the gases and evolve into a gas planet.