A representation of the exchanges of energy between the source (the Sun), the Earth's surface, the Earth's atmosphere, and the ultimate sink outer space. The ability of the atmosphere to capture and recycle energy emitted by the Earth surface is the defining characteristic of the greenhouse effect.
Another diagram of the greenhouse effect
The greenhouse effect is a process by which thermal radiation from a planetary surface is absorbed by atmospheric greenhouse gases, and is re-radiated in all directions. Since part of this re-radiation is back towards the surface and the lower atmosphere, it results in an elevation of the average surface temperature above what it would be in the absence of the gases.
Solar radiation at the frequencies of visible light largely passes through the atmosphere to warm the planetary surface, which then emits this energy at the lower frequencies of infrared thermal radiation. Infrared radiation is absorbed by greenhouse gases, which in turn re-radiate much of the energy to the surface and lower atmosphere. The mechanism is named after the effect of solar radiation passing through glass and warming a greenhouse, but the way it retains heat is fundamentally different as a greenhouse works by reducing airflow, isolating the warm air inside the structure so that heat is not lost by convection.
If an ideal thermally conductive blackbody was the same distance from the Sun as the Earth is, it would have a temperature of about 5.3 °C. However, since the Earth reflects about 30% of the incoming sunlight, this idealized planet's effective temperature (the temperature of a blackbody that would emit the same amount of radiation) would be about −18 °C. The surface temperature of this hypothetical planet is 33 °C below Earth's actual surface temperature of approximately 14 °C. The mechanism that produces this difference between the actual surface temperature and the effective temperature is due to the atmosphere and is known as the greenhouse effect.
Earth’s natural greenhouse effect makes life as we know it possible. However, human activities, primarily the burning of fossil fuels and clearing of forests, have intensified the natural greenhouse effect, causing global warming.
In 1917 Alexander Graham Bell wrote “[The unchecked burning of fossil fuels] would have a sort of greenhouse effect”, and “The net result is the greenhouse becomes a sort of hot-house.” Bell went on to also advocate for the use of alternate energy sources, such as solar energy.
The Earth receives energy from the Sun in the form UV, visible, and near IR radiation, most of which passes through the atmosphere without being absorbed. Of the total amount of energy available at the top of the atmosphere (TOA), about 50% is absorbed at the Earth's surface. Because it is warm, the surface radiates far IR thermal radiation that consists of wavelengths that are predominantly much longer than the wavelengths that were absorbed (the overlap between the incident solar spectrum and the terrestrial thermal spectrum is small enough to be neglected for most purposes). Most of this thermal radiation is absorbed by the atmosphere and re-radiated both upwards and downwards; that radiated downwards is absorbed by the Earth's surface. This trapping of long-wavelength thermal radiation leads to a higher equilibrium temperature than if the atmosphere were absent.
This highly simplified picture of the basic mechanism needs to be qualified in a number of ways, none of which affect the fundamental process.
The solar radiation spectrum for direct light at both the top of the Earth's atmosphere and at sea level
Synthetic stick absorption spectrum of a simple gas mixture corresponding to the Earth's atmosphere composition based on HITRAN data  created using Hitran on the Web system. Green color - water vapor, red - carbon dioxide, WN - wavenumber (caution: lower wavelengths on the right, higher on the left).
The incoming radiation from the Sun is mostly in the form of visible light and nearby wavelengths, largely in the range 0.2–4 μm, corresponding to the Sun's radiative temperature of 6,000 K. Almost half the radiation is in the form of "visible" light, which our eyes are adapted to use.
About 50% of the Sun's energy is absorbed at the Earth's surface and the rest is reflected or absorbed by the atmosphere. The reflection of light back into space—largely by clouds—does not much affect the basic mechanism; this light, effectively, is lost to the system.
The absorbed energy warms the surface. Simple presentations of the greenhouse effect, such as the idealized greenhouse model, show this heat being lost as thermal radiation. The reality is more complex: the atmosphere near the surface is largely opaque to thermal radiation (with important exceptions for "window" bands), and most heat loss from the surface is by sensible heat and latent heat transport. Radiative energy losses become increasingly important higher in the atmosphere largely because of the decreasing concentration of water vapor, an important greenhouse gas. It is more realistic to think of the greenhouse effect as applying to a "surface" in the mid-troposphere, which is effectively coupled to the surface by a lapse rate.
The simple picture assumes a steady state. In the real world there is the diurnal cycle as well as seasonal cycles and weather. Solar heating only applies during daytime. During the night, the atmosphere cools somewhat, but not greatly, because its emissivity is low, and during the day the atmosphere warms. Diurnal temperature changes decrease with height in the atmosphere.
Within the region where radiative effects are important the description given by the idealized greenhouse model becomes realistic: The surface of the Earth, warmed to a temperature around 255 K, radiates long-wavelength, infrared heat in the range 4–100 μm. At these wavelengths, greenhouse gases that were largely transparent to incoming solar radiation are more absorbent. Each layer of atmosphere with greenhouses gases absorbs some of the heat being radiated upwards from lower layers. It re-radiates in all directions, both upwards and downwards; in equilibrium (by definition) the same amount as it has absorbed. This results in more warmth below. Increasing the concentration of the gases increases the amount of absorption and re-radiation, and thereby further warms the layers and ultimately the surface below.
Greenhouse gases—including most diatomic gases with two different atoms (such as carbon monoxide, CO) and all gases with three or more atoms—are able to absorb and emit infrared radiation. Though more than 99% of the dry atmosphere is IR transparent (because the main constituents—N2, O2, and Ar—are not able to directly absorb or emit infrared radiation), intermolecular collisions cause the energy absorbed and emitted by the greenhouse gases to be shared with the other, non-IR-active, gases.
Strengthening of the greenhouse effect through human activities is known as the enhanced (or anthropogenic) greenhouse effect. This increase in radiative forcing from human activity is attributable mainly to increased atmospheric carbon dioxide levels. According to the latest Assessment Report from the Intergovernmental Panel on Climate Change, "most of the observed increase in globally averaged temperatures since the mid-20th century is very likely due to the observed increase in anthropogenic greenhouse gas concentrations".
CO2 is produced by fossil fuel burning and other activities such as cement production and tropical deforestation. Measurements of CO2 from the Mauna Loa observatory show that concentrations have increased from about 313 ppm in 1960 to about 389 ppm in 2010. It reached the 400ppm milestone on May 9, 2013. The current observed amount of CO2 exceeds the geological record maxima (~300 ppm) from ice core data. The effect of combustion-produced carbon dioxide on the global climate, a special case of the greenhouse effect first described in 1896 by Svante Arrhenius, has also been called the Callendar effect.
Over the past 800,000 years,ice core data shows that carbon dioxide has varied from values as low as 180 parts per million (ppm) to the pre-industrial level of 270ppm.Paleoclimatologists consider variations in carbon dioxide concentration to be a fundamental factor influencing climate variations over this time scale.
The "greenhouse effect" of the atmosphere is named by analogy to greenhouses which get warmer in sunlight, but the mechanism by which the atmosphere retains heat is different. A greenhouse works primarily by preventing absorbed heat from leaving the structure through convection, i.e. sensible heat transport. The greenhouse effect heats the earth because greenhouse gases absorb outgoing radiative energy and re-emit some of it back towards earth.
A greenhouse is built of any material that passes sunlight, usually glass, or plastic. It mainly heats up because the Sun warms the ground inside, which then warms the air in the greenhouse. The air continues to heat because it is confined within the greenhouse, unlike the environment outside the greenhouse where warm air near the surface rises and mixes with cooler air aloft. This can be demonstrated by opening a small window near the roof of a greenhouse: the temperature will drop considerably. It has also been demonstrated experimentally (R. W. Wood, 1909) that a "greenhouse" with a cover of rock salt (which is transparent to infra red) heats up an enclosure similarly to one with a glass cover. Thus greenhouses work primarily by preventing convective cooling.
In contrast, the greenhouse effect heats the earth because rather than retaining (sensible) heat by physically preventing movement of the air, greenhouse gases act to warm the Earth by re-radiating some of the energy back towards the surface. This process may exist in real greenhouses, but is comparatively unimportant there.
Bodies other than Earth
In the Solar System, Mars, Venus, and the moon Titan also exhibit greenhouse effects; that on Venus is particularly large, due to its atmosphere, which consists mainly of dense carbon dioxide  Titan has an anti-greenhouse effect, in that its atmosphere absorbs solar radiation but is relatively transparent to infrared radiation. Pluto also exhibits behavior superficially similar to the anti-greenhouse effect.
^ abA concise description of the greenhouse effect is given in the Intergovernmental Panel on Climate Change Fourth Assessment Report, "What is the Greenhouse Effect?" FAQ 1.3 - AR4 WGI Chapter 1: Historical Overview of Climate Change Science, IIPCC Fourth Assessment Report, Chapter 1, page 115: "To balance the absorbed incoming [solar] energy, the Earth must, on average, radiate the same amount of energy back to space. Because the Earth is much colder than the Sun, it radiates at much longer wavelengths, primarily in the infrared part of the spectrum (see Figure 1). Much of this thermal radiation emitted by the land and ocean is absorbed by the atmosphere, including clouds, and reradiated back to Earth. This is called the greenhouse effect." Stephen H. Schneider, in Geosphere-biosphere Interactions and Climate, Lennart O. Bengtsson and Claus U. Hammer, eds., Cambridge University Press, 2001, ISBN 0-521-78238-4, pp. 90-91. E. Claussen, V. A. Cochran, and D. P. Davis, Climate Change: Science, Strategies, & Solutions, University of Michigan, 2001. p. 373. A. Allaby and M. Allaby, A Dictionary of Earth Sciences, Oxford University Press, 1999, ISBN 0-19-280079-5, p. 244.
^ abWood, R.W. (1909). "Note on the Theory of the Greenhouse". Philosophical Magazine17: 319–320. "When exposed to sunlight the temperature rose gradually to 65 °C., the enclosure covered with the salt plate keeping a little ahead of the other because it transmitted the longer waves from the Sun, which were stopped by the glass. In order to eliminate this action the sunlight was first passed through a glass plate." "it is clear that the rock-salt plate is capable of transmitting practically all of it, while the glass plate stops it entirely. This shows us that the loss of temperature of the ground by radiation is very small in comparison to the loss by convection, in other words that we gain very little from the circumstance that the radiation is trapped."
^ abSchroeder, Daniel V. (2000). An introduction to thermal physics. San Francisco, California: Addison-Wesley. pp. 305–7. ISBN0-321-27779-1. "... this mechanism is called the greenhouse effect, even though most greenhouses depend primarily on a different mechanism (namely, limiting convective cooling)."
^"The HITRAN Database". Atomic and Molecular Physics Division, Harvard-Smithsonian Center for Astrophysics. Retrieved August 8, 2012. "HITRAN is a compilation of spectroscopic parameters that a variety of computer codes use to predict and simulate the transmission and emission of light in the atmosphere."
^"Hitran on the Web Information System". Harvard-Smithsonian Center for Astrophysics (CFA), Cambridge, MA, USA; V.E. Zuev Insitute of Atmosperic Optics (IAO), Tomsk, Russia. Retrieved August 11, 2012.
^Oort, Abraham H.; Peixoto, José Pinto (1992). Physics of climate. New York: American Institute of Physics. ISBN0-88318-711-6. "...the name water vapor-greenhouse effect is actually a misnomer since heating in the usual greenhouse is due to the reduction of convection"