Earth’s earliest atmosphere was shaped by a series of dramatic physical and chemical events: the capture of hydrogen-rich gas from the cloud of dust and gas that formed the solar system, the catastrophic impacts of planet-building collisions, volcanic outgassing from a molten surface, and the slow cooling of a global magma ocean. Each of these processes added, removed, or transformed the gases surrounding the young planet over hundreds of millions of years.
The First Atmosphere: Captured Solar Gas
Earth’s very first atmosphere wasn’t produced by the planet itself. It was pulled in by gravity from the solar nebula, the enormous disk of gas and dust swirling around the young Sun. This captured atmosphere was almost entirely hydrogen, the most abundant element in the universe, along with simple hydrogen-based molecules like water vapor, methane, and ammonia.
This primary atmosphere didn’t last. Once the solar nebula dispersed, the lightweight hydrogen gas was no longer being replenished. Collisions between the planet-sized bodies still assembling in the inner solar system generated enough heat to push the thermal speed of hydrogen molecules above escape velocity. For bodies the size of Mars or smaller, this process could strip away an entire hydrogen atmosphere in a matter of hours. Earth, being larger, held onto its primary atmosphere somewhat longer, but the combination of intense solar radiation and giant impacts eventually removed it.
Giant Impacts and the Steam Atmosphere
The collision that formed the Moon, roughly 4.5 billion years ago, was the most transformative single event for Earth’s atmosphere. The impact was energetic enough to vaporize rock and melt most of the planet’s surface into a global magma ocean. This event effectively reset the atmosphere, replacing whatever remained of the captured nebular gas with a new one generated by the impact itself.
When rocky material from the impactor and Earth’s surface was heated to extreme temperatures, it released gases in a process called impact degassing. Studies modeling the chemistry of this process found that the resulting atmosphere contained methane, hydrogen, water vapor, nitrogen, and ammonia as major components. At higher temperatures, carbon monoxide replaced methane as the dominant carbon-bearing gas. The overall mix was strongly reducing, meaning it lacked free oxygen and was rich in hydrogen-containing molecules. This is because the raw materials, similar in composition to a class of meteorites called ordinary chondrites, contained metallic iron and iron sulfides that kept the chemistry in a reduced state.
Volcanic Outgassing Built the Secondary Atmosphere
Once the magma ocean began to cool and a solid crust started forming, volcanoes became the primary engine for building and maintaining the atmosphere. Volcanic gases supplied a large part of Earth’s early air over hundreds of millions of years during the Hadean and Archean eons (roughly 4.5 to 2.5 billion years ago).
The composition of volcanic gases depended heavily on how oxidized or reduced the mantle was at the time. Earth’s early mantle was more chemically reduced than it is today. Under those conditions, volcanoes released mostly carbon monoxide and hydrogen rather than carbon dioxide. Carbonate ions, which carry carbon in modern volcanic systems, dissolve in reduced magmas only in very limited amounts. Almost all degassed carbon took the form of CO instead of CO₂. Water vapor and hydrogen were also major volcanic emissions. As the mantle gradually became more oxidized over geological time, the volcanic output shifted toward the CO₂-rich emissions we associate with modern volcanoes.
Interestingly, early volcanic CO₂ outgassing may not have been as intense as once assumed. Modeling of a “stagnant lid” early Earth, one without modern plate tectonics, predicts median CO₂ outgassing rates of less than about 5 trillion moles per year, which is actually lower than the rates used in many studies of the early climate.
The Magma Ocean as a Chemical Filter
The global magma ocean didn’t just sit passively beneath the atmosphere. It actively exchanged gases with the air above it, acting as a massive chemical reservoir that absorbed some compounds and released others at different stages of cooling.
Carbon-bearing species made up the majority of the early atmosphere while the magma ocean was still largely molten. Water vapor, by contrast, was released primarily during later stages of cooling, as the magma crystallized and could no longer hold dissolved water. A substantial portion of atmospheric carbon was also removed during this period, pulled back down and transported within the solidifying mantle. One proposed mechanism involves massive carbonate absorption on the magma surface combined with density-driven sinking of carbon-rich material into the interior. This means the magma ocean acted as both a source and a sink for atmospheric gases, continuously reshaping the air above it as the planet cooled.
Comet and Asteroid Delivery
Not all of Earth’s atmospheric ingredients came from the planet’s own interior. Comets and asteroids bombarding the young Earth delivered significant quantities of water, carbon, and nitrogen. Comets are especially water-rich, and impacts also introduce carbon monoxide, hydrogen cyanide, ammonia, and various sulfur compounds.
Nitrogen tells a particularly interesting story. Isotopic evidence from deep within Earth’s mantle, preserved in diamonds, suggests the planet acquired its nitrogen in stages. The earliest building blocks were chemically reduced, enstatite-chondrite-like materials that carried nitrogen with a distinctive light isotopic signature. Later in the accretion process, increasingly oxidized impactors and a small amount of carbon-rich chondrite-like material added nitrogen with a heavier isotopic fingerprint. This two-stage delivery may have established the nitrogen reservoirs in both Earth’s mantle and surface atmosphere during the planet’s main formation phase, with later volcanic recycling playing only a minor role in redistributing it.
Ultraviolet Light Broke Apart Water Vapor
The young Sun was dimmer than today, producing roughly 70% of its current energy output, but it blasted the inner solar system with far more ultraviolet radiation. Without an ozone layer to block it, this UV light penetrated deep into Earth’s atmosphere and split water molecules apart.
About 21% of UV-driven reactions involving water vapor produced free oxygen atoms, while the rest generated fragments like hydroxyl radicals and lone hydrogen atoms. The lightweight hydrogen atoms could escape to space permanently, meaning each water molecule that was broken apart represented an irreversible loss of hydrogen from the planet. This process, called photodissociation, slowly dried out the upper atmosphere and left behind trace amounts of oxygen. However, this oxygen didn’t accumulate in any meaningful way. Volcanic gases like hydrogen reacted with and consumed free oxygen almost as fast as it was produced. Calculations show prebiotic oxygen levels were astonishingly low, on the order of less than one ten-trillionth of today’s levels.
A Reducing Atmosphere With No Free Oxygen
The net result of all these processes was an atmosphere fundamentally unlike the one we breathe today. For the first two billion years of Earth’s history, the air contained virtually no free oxygen. Instead, it was dominated by nitrogen, carbon dioxide (increasingly so as the mantle oxidized), water vapor, carbon monoxide, methane, and hydrogen in varying proportions depending on the era. This is what scientists call a “reducing” atmosphere, one where chemical reactions tend to strip oxygen from compounds rather than add it.
This changed dramatically between 2.4 and 2.3 billion years ago during the Great Oxidation Event, when oxygen-producing cyanobacteria had multiplied enough to overwhelm the chemical sinks that had been consuming free oxygen. The transition is recorded sharply in the rock record by the sudden disappearance of a distinctive sulfur isotope pattern that can only form in the absence of atmospheric oxygen. The Great Oxidation Event continued until roughly 2.1 to 2.0 billion years ago, by which point the atmosphere had been permanently transformed into an oxidizing one.
Xenon gas trapped in ancient rocks confirms this timeline from a different angle. Its isotopic composition grew progressively heavier through the Archean, reaching modern values around 2.1 to 2.0 billion years ago, consistent with the end of the transition. Everything before that point, the planet’s first 2.5 billion years, was shaped almost entirely by geology, chemistry, and physics rather than biology.

