Size:
* Accretion: Planets form from the accretion of smaller bodies called planetesimals. In the inner solar system, where the sun's gravity is stronger and the temperature is higher, the early planetesimals were mostly composed of rock and metal. These materials are denser than the icy materials found farther out. This means that planets closer to the sun have a higher density of material to accrete, leading to larger overall sizes.
* Solar Wind: The sun emits a constant stream of charged particles known as the solar wind. This wind is stronger closer to the sun, and it can push lighter elements like hydrogen and helium away from the forming planets. This effect is more pronounced in the inner solar system, further limiting the size of planets there.
* Ice Line: There is a critical distance from the sun called the "ice line" (or "frost line"). Beyond this line, temperatures are low enough for volatile compounds like water, ammonia, and methane to freeze. This abundance of ices provides a greater amount of material for planetesimals to accrete, leading to larger gas giants like Jupiter and Saturn.
Composition:
* Volatiles: As mentioned above, the distance from the sun determines whether volatile compounds like water, ammonia, and methane can remain frozen. These volatiles are essential for forming icy planets and moons.
* Rock and Metal: Closer to the sun, the heat vaporizes volatiles, leaving behind rock and metal. Therefore, the inner planets are primarily composed of these materials.
* Gas Giants: Beyond the ice line, the presence of abundant volatiles allows for the formation of gas giants. These planets are primarily composed of hydrogen and helium, which can be captured by their strong gravitational fields.
Exceptions:
* Mercury: While Mercury is the closest planet to the sun, it is relatively small. This may be due to its proximity to the sun, which caused a significant loss of material during the formation process.
* Mars: Mars, despite being farther out, is smaller than Earth. This is likely due to its relatively small initial mass, which hindered its ability to accrete more material.
In Summary:
The distance from the sun significantly influences the size and composition of a planet. Closer to the sun, planets are smaller and composed primarily of rock and metal. Further out, the abundance of ices allows for larger gas giants to form. The solar wind and the presence of volatile compounds play important roles in this process.