A planet's volatile inventory (water, CO₂, N₂, etc.) is set by its initial composition and modified by outgassing and escape over time. The interplay between volcanic outgassing, photochemical loss, thermal escape, and ion pickup loss determines whether a planet retains or loses its atmosphere, fundamentally controlling habitability and long-term climate evolution.
From your study of atmospheric escape mechanisms, you know the physics of how individual gas molecules can be lost to space — thermal (Jeans) escape, hydrodynamic blow-off, sputtering, and ion pickup by the solar wind. And from planetary differentiation, you know that when a planet forms and separates into layers, volatile elements partition between the interior, the surface, and the atmosphere. Volatile inventory evolution brings these ideas together by asking the big-picture question: over billions of years, how does the balance between sources adding gas to the atmosphere and sinks removing it determine what kind of atmosphere a planet ends up with?
The primary source replenishing a planet's atmosphere is volcanic outgassing. As mantle rock melts and rises, dissolved gases — primarily water vapor, carbon dioxide, sulfur dioxide, and nitrogen — are released at the surface. A volcanically active planet continuously pumps new gas into its atmosphere from its interior reservoir. Early in a planet's history, when radioactive heating is strongest and the mantle is hottest, outgassing rates are highest. Over time, as the interior cools and volatile reservoirs in the mantle deplete, this source weakens. The total amount of volatiles a planet can ever outgas depends on how much was incorporated during formation — which is set by where in the protoplanetary disk the planet accreted and what material it captured.
On the loss side, the escape mechanisms you already know operate at different rates for different gases and under different planetary conditions. Thermal escape preferentially removes light molecules (hydrogen, helium) from small, warm planets with weak gravity. This is why the Moon and Mercury have essentially no atmospheres — their low gravity and high dayside temperatures allow virtually all gases to escape. Mars, intermediate in size, has lost most of its original atmosphere over 4 billion years: its moderate gravity retains heavy CO₂ but has allowed lighter molecules and much of its water (via photodissociation into hydrogen, which then escapes) to be stripped away. Solar wind stripping and ion pickup are especially effective on planets lacking a global magnetic field, because the solar wind can interact directly with the upper atmosphere. Mars's lack of a strong magnetic field has accelerated its atmospheric loss, as measured directly by NASA's MAVEN orbiter.
The comparative planetology of Earth, Venus, and Mars illustrates how volatile inventory evolution produces radically different outcomes from similar starting materials. All three likely began with comparable volatile endowments. Earth retained a thick atmosphere and surface oceans because its size provides sufficient gravity, its magnetic field shields against solar wind stripping, and the carbonate-silicate cycle regulates CO₂ over geological time. Venus may have started with surface water, but proximity to the Sun drove a runaway greenhouse that vaporized the oceans; water vapor in the upper atmosphere was then photodissociated and the hydrogen escaped, leaving Venus permanently desiccated with a massive CO₂ atmosphere. Mars lost most of its atmosphere through a combination of low gravity, absent magnetic field, and declining volcanic activity. Understanding these divergent histories — why one planet keeps its volatiles while another loses them — is central to assessing whether any given world can sustain liquid water and, potentially, life.