The Earth is surrounded by air—a mixture of various gases that reaches up to a height of many kilometers. This envelope of air makes up our atmosphere. It is held in place by the Earth’s gravity. Almost all the atmosphere (97 percent) lies within 30 km (19 mi) of the Earth’s surface. The upper limit of the atmosphere is at a height of approximately 10,000 km (about 6000 mi) above the Earth’s surface—a distance that is nearly as large as Earth’s diameter. The proportion of gases in dry air is highly uniform up to an altitude of about 80 km (50 mi).
About 99 percent of pure, dry air is nitrogen (about 78 percent by volume) and oxygen (about 21 percent). These two main component gases of the lower atmosphere are perfectly mixed, so pure, dry air behaves as if it is a single gas with very definite physical properties. Nitrogen gas is a molecule consisting of two nitrogen atoms (N2). It does not easily react with other substances. Soil bacteria do take up very small amounts of nitrogen, which can be used by plants, but otherwise nitrogen is largely “filler,” adding inert bulk to the atmosphere. In contrast, oxygen gas (O2) is chemically very active, combining readily with other elements in the process of oxidation. Fuel combustion is a rapid form of oxidation, while certain types of rock decay (weathering) are very slow forms of oxidation. Living tissues require oxygen to convert foods into energy. The remaining 1 percent of dry air is mostly argon, an inactive gas of little importance in natural processes, with a very small amount of carbon dioxide (CO2), amounting to about 0.0385 percent.
Although the amount of CO2 is small, it is a very important atmospheric gas because it absorbs much of the incoming shortwave radiation from the Sun and outgoing long wave radiation from the Earth. The greenhouse effect is caused when long wave radiation is absorbed by CO2 molecules in the lower atmosphere, which reradiate some of that heat