My understanding is that the stars are primarily made up of hydrogen and helium. Why do those elements end up in stars and other heavier elements make up the planets?

  • 11
    $\begingroup$ Fun fact: hydrogen and helium are such a large majority of a star's combination that all other elements are collectively called metals, and variation among stars in their (low) total abundance is an important aspect to how stars differ. $\endgroup$
    – J.G.
    Commented Aug 25, 2023 at 23:22
  • 2
    $\begingroup$ Related: physics.stackexchange.com/questions/418550/… $\endgroup$ Commented Aug 27, 2023 at 13:35
  • 1
    $\begingroup$ Also see: en.wikipedia.org/wiki/Stellar_nucleosynthesis $\endgroup$ Commented Aug 27, 2023 at 13:39
  • $\begingroup$ Could you change the Question, to Ask how the natures of other elements are different? Else, how is the Question really different from how roads are different from cars? $\endgroup$ Commented Aug 29, 2023 at 20:21

6 Answers 6


Most of the planetary mass in our Solar System is also in the form of hydrogen and helium - locked up in Jupiter. So I think your question is just confined to the inner, rocky planetary objects, Mercury, Venus, Earth and Mars, which are indeed very poor in hydrogen and helium compared with the Sun.

The gas from which the Solar System formed was 99% by mass hydrogen and helium. The heavier elements are trace contaminants. The measured elemental abundances of the Sun are pretty much representative of this initial composition (bar lithium).

The reasons that H/He are dominant are the limited window of time in which primordial nucleosynthesis can occur after the big bang; that elements heavier than helium are not produced (there are trace quantities of Li) by primordial nucleosynthesis, only in stars; and that most primordial gas has never been incorporated into stars. See Why didn't the Big Bang create heavy elements? and Why is hydrogen the most abundant element in the Universe? for details.

The sequence of events that leads to the inner planets being "rocky" is that they are formed from solids that were able to condense at the high temperatures close to the Sun. Most of these solids would have been things like metal oxides or even solid metal grains that did not incorporate either hydrogen and helium (with a few exceptions). The vast majority of hydrogen and helium would have remained in the gaseous phase. The solids then initially stick together by being... sticky! Subsequently, once the protoplanets get massive enough, gravity takes over and the bodies can begin to accumulate matter and become even bigger.

It is a relatively straightforward calculation to then show that objects the size of Earth and at the temperature of the Earth are not able to retain gaseous hydrogen and helium - the typical speeds of the atoms/molecules is big enough that the gas can escape from an Earth-like planet. Thus, unlike the gas giants which are both more massive and in a colder part of the Solar System, the inner planets end up with very little hydrogen and helium; and what there is exists bound up in molecules with heavier elements (e.g. water).


It is not that the heavier elements prefer the rocky planets instead of the star. It is H and He that escape easier from celestial bodies with lower gravitational potential, as is the case of that planets.

The Sun for example has only about $1$% of other elements besides H and He. But that small fraction is still 1000 times the mass of the all the inner planets together.

  • $\begingroup$ How are the gravitational potential of He and He is lower than others? Because they have different radii? Though the gravitational effect for such small distances should be negligible? Thanks. $\endgroup$ Commented Aug 26, 2023 at 12:15
  • 15
    $\begingroup$ Gravitational potential of the planets not of the molecules. For the same kinetic energy, the velocity of H2 and He2 molecules is bigger than N2 or O2, due to their smaller masses. So the probability that they reach the escape velocity is greater. $\endgroup$ Commented Aug 26, 2023 at 14:47

The universe is almost all hydrogen and helium (about 98%), so of course the stars are too. You can get smaller clumps of heavier elements because they can stick together and form solids, but, as The_Sympathizer said, there's no natural way to separate out enough oxygen or whatever to put together a star.

The fact that hydrogen can escape lower mass planets isn't really the reason, I would argue. That's just the reason that such planets don't have hydrogen atmospheres.

Finally, don't get the impression that other elements are somehow excluded from the stars. The sun is 0.014% iron, but that works out to 46.6 planet earths made entirely of iron.


Stars are not made of other elements simply because they are rare and not concentrated enough naturally to make them.

There is nothing impossible about, say, collapsing a cloud of carbon to make a star that burns carbon in its core. Problem is that free clouds of pure carbon with enough mass to do that just don't exist. Instead, we have free clouds of almost entirely hydrogen and some helium. Heavier elements are mixed with those things, and thus as a result, they don't get a chance to collapse into large stars without also collapsing in way more hydrogen and helium.

And with planets, once you get past a certain mass, it starts accruing more of the hydrogen/helium dominant components of the stellar birthing nebula or, more accurately, the disk of such material around the star, so it either becomes a gas giant, or else gets so big it becomes another star in its own right made with the usual composition, i.e. a binary or multi-star system with a small companion star next to, and orbiting, a large one.

Hence, if one found a star made of some such exotic composition, it might be a good indicator of aliens having done it artificially!


This is somewhat a separate line of consideration than the "planets' gravity keeps heavier elements" aspect the other answers provided, but note that stars are limited in what elements are provided in the primordial cloud that forms the star as well as the elements they produce via stellar nucleosynthesis.

So, to some degree, stars contain primarily hydrogen and helium because that is primarily what is found in regions of star formation. Then when enough hydrogen turns into helium (or carbon, oxygen & nitrogen), the star begins helium fusion which forms to make carbon and so on down the line. Eventually, for the heavier stars, we get to silicon fusing to create iron, which unfortunately coincides with the end of that star's life (cf. this Physics.SE Q&A). For the smaller stars, however, I believe a helium core is all you can expect and the star basically lives its very long life really only burning those two.

The end of the star's life is a fantastic explosion (supernova), which means that the material that was the star is now flying (at some fraction of the speed of light!) out into space and isn't (strictly) localized to the star. It is during the supernova process, we begin the fun neutron capture processes that give us the remaining elements we see in planets, comets, etc via either the rapid process or the slow process (see also supernova nucleosynthesis).

So it is a bit of a feed back loop at this point: the (predominantly) hydrogen cloud collapses into a star, the star produces heavier elements & explodes, the supernova produces some even heavier elements while also pushing the outer hydrogen layer back into the cloud to later create a new star.

  • 2
    $\begingroup$ Every speed is some fraction of the speed of light. Most are very small fractions, though. $\endgroup$
    – Barmar
    Commented Aug 26, 2023 at 16:56
  • 2
    $\begingroup$ "It is during the supernova process we begin...". A supernova is unlikely to be the dominant site of neutron capture and the s-process begins in the red giant phase. physics.stackexchange.com/a/141180/43351 $\endgroup$
    – ProfRob
    Commented Aug 27, 2023 at 8:31
  • 3
    $\begingroup$ Your 3rd paragraph seems to imply that all stars end their life in a supernova. But supernova only happens to very large stars (the ones big enough to burn silicon), and to sufficiently large stars in binary systems (type Ia supernova). $\endgroup$
    – PM 2Ring
    Commented Aug 27, 2023 at 8:36
  • 2
    $\begingroup$ Sorry, I wasn't trying to be condescending. I didn't think that you were claiming that all stars end in a supernova, but I do think that some readers may get that impression. $\endgroup$
    – PM 2Ring
    Commented Aug 27, 2023 at 19:05
  • 2
    $\begingroup$ "The end of the star's life is a fantastic explosion (supernova)" That is confusing as written / doesn't apply to all stars. $\endgroup$
    – MikeB
    Commented Aug 28, 2023 at 10:33

It is an interplay of several factors:

  1. Big bang nucleosynthesis produced almost only hydrogen and helium (3/1).
  2. Under Gravitational contraction in the early universe clouds of these gases concentrated. What we define as a star is a collapse of a gas cloud under its own gravity that simultaneously is so much concentrated and hot that increases its internal temperature to a degree that fusion begins and outwards pressure equates gravity.
  3. Onion like structure of burning elements begins, rate is determined by the mass of the star. Burn stops at Fe, the heavier elements are constructed more rapidly when stars terminate their life abruptly. Their concentrations are pretty low though since every heavy element needs its predecessor in the periodic table, roughly speaking, in order to form. Hence can’t have heavy concentration of an element that is not abundantly produced

Long story short, that’s the reason for stars chemical composition.

Now for planets, can’t have rocky planets made of gases by definition. More seriously, light elements evade easier planets weak gravity. However planets made of gases exist. Most are failed stars, their gravity was not enough to start nuclear fusion and they end up like the gas giants in our solar system.

  • 2
    $\begingroup$ And of course, those gas giants are quite rocky themselves - Jupiter is estimated to have somewhere between 7 and 25 Earth masses of heavy elements (and of course, the Sun has much more than that). It's just that its growing mass eventually allowed it to start capturing the hydrogen and helium too, and there was a lot more hydrogen and helium in the solar nebula than heavy elements. $\endgroup$
    – Luaan
    Commented Aug 28, 2023 at 5:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.