An atmosphere (from Greek ατμός - atmos, 'vapor' + σφαίρα - sphaira, 'sphere') is a layer of gases that may surround a material body of sufficient mass, by the gravity of the body, and are retained for a longer duration if gravity is high and the atmosphere's temperature is low. Some planets consist mainly of various gases, but only their outer layer is their atmosphere (see gas giants).
The term stellar atmosphere describes the outer region of a star, and typically includes the portion starting from the opaque photosphere outwards. Relatively low-temperature stars may form compound molecules in their outer atmosphere. Earth's atmosphere, which contains oxygen used by most organisms for respiration and carbon dioxide used by plants, algae and cyanobacteria for photosynthesis, also protects living organisms from genetic damage by solar ultraviolet radiation. Its current composition is the product of billions of years of biochemical modification of the paleoatmosphere by living organisms.
Atmospheric pressure is the force per unit area that is applied perpendicularly to a surface by the surrounding gas. It is determined by a planet's gravitational force in combination with the total mass of a column of air above a location. Units of air pressure are based on the internationally-recognized standard atmosphere (atm), which is defined as 101,325 Pa (or 1,013,250 dynes per cm²).
The pressure of an atmospheric gas decreases with altitude due to the diminishing mass of gas above each location. The height at which the pressure from an atmosphere declines by a factor of e (an irrational number with a value of 2.71828..) is called the scale height and is denoted by H. For an atmosphere with a uniform temperature, the scale height is proportional to the temperature and inversely proportional to the mean molecular mass of dry air times the planet's gravitational acceleration. For such a model atmosphere, the pressure declines exponentially with increasing altitude. However, atmospheres are not uniform in temperature, so the exact determination of the atmospheric pressure at any particular altitude is more complex.
Surface gravity, the force that holds down an atmosphere, differs significantly among the planets. For example, the large gravitational force of the giant planet Jupiter is able to retain light gases such as hydrogen and helium that escape from lower gravity objects. Second, the distance from the sun determines the energy available to heat atmospheric gas to the point where its molecules' thermal motion exceed the planet's escape velocity, the speed at which gas molecules overcome a planet's gravitational grasp. Thus, the distant and cold Titan, Triton, and Pluto are able to retain their atmospheres despite relatively low gravities. Interstellar planets, theoretically, may also retain thick atmospheres.
Since a gas at any particular temperature will have molecules moving at a wide range of velocities, there will almost always be some slow leakage of gas into space. Lighter molecules move faster than heavier ones with the same thermal kinetic energy, and so gases of low molecular weight are lost more rapidly than those of high molecular weight. It is thought that Venus and Mars may have both lost much of their water when, after being photodissociated into hydrogen and oxygen by solar ultraviolet, the hydrogen escaped. Earth's magnetic field helps to prevent this, as, normally, the solar wind would greatly enhance the escape of hydrogen. However, over the past 3 billion years the Earth may have lost gases through the magnetic polar regions due to auroral activity, including a net 2% of its atmospheric oxygen.
Other mechanisms that can cause atmosphere depletion are solar wind-induced sputtering, impact erosion, weathering, and sequestration — sometimes referred to as "freezing out" — into the regolith and polar caps.
Initial atmospheric makeup is generally related to the chemistry and temperature of the local solar nebula during planetary formation and the subsequent escape of interior gases. These original atmospheres underwent much evolution over time, with the varying properties of each planet resulting in very different outcomes.
The atmospheric composition on Earth is largely governed by the by-products of the very life that it sustains. Earth's atmosphere contains roughly (by molar content/volume) 78.08% nitrogen, 20.95% oxygen, a variable amount (average around 0.247%, National Center for Atmospheric Research) water vapor, 0.93% argon, 0.038% carbon dioxide, and traces of hydrogen, helium, and other "noble" gases (and of volatile pollutants).
The low temperatures and higher gravity of the gas giants — Jupiter, Saturn, Uranus and Neptune — allows them to more readily retain gases with low molecular masses. These planets have hydrogen-helium atmospheres, with trace amounts of more complex compounds.
Two satellites of the outer planets possess non-negligible atmospheres: Titan, a moon of Saturn, and Triton, a moon of Neptune, which are mainly nitrogen. Pluto, in the nearer part of its orbit, has an atmosphere of nitrogen and methane similar to Triton's, but these gases are frozen when farther from the Sun.
Other bodies within the Solar System have extremely thin atmospheres not in equilibrium. These include the Moon (sodium gas), Mercury (sodium gas), Europa (oxygen), Io (sulfur), and Enceladus (water vapor).
The atmospheric composition of an extra-solar planet was first determined using the Hubble Space Telescope. Planet HD 209458b is a gas giant with a close orbit around a star in the constellation Pegasus. The atmosphere is heated to temperatures over 1,000 K, and is steadily escaping into space. Hydrogen, oxygen, carbon and sulfur have been detected in the planet's inflated atmosphere.
The Earth's atmosphere consists, from the ground up, of the troposphere (which includes the planetary boundary layer or peplosphere as lowest layer), stratosphere, mesosphere, thermosphere (which contains the ionosphere and exosphere) and also the magnetosphere. Each of the layers has a different lapse rate, defining the rate of change in temperature with height.
Three quarters of the atmosphere lies within the troposphere, and the depth of this layer varies between 17 km at the equator and 7 km at the poles. The ozone layer, which absorbs ultraviolet energy from the Sun, is located primarily in the stratosphere, at altitudes of 15 to 35 km. The Kármán line, located within the thermosphere at an altitude of 100 km, is commonly used to define the boundary between the Earth's atmosphere and outer space. However, the exosphere can extend from 500 up to 10,000 km above the surface, where it interacts with the planet's magnetosphere.