In Earth's atmosphere, carbon dioxide is a trace gas that plays an integral part in the greenhouse effect, carbon cycle, photosynthesis and oceanic carbon cycle. It is one of several greenhouse gases in the atmosphere of Earth. The current global average concentration of carbon dioxide (CO) in the atmosphere is 421 ppm as of May 2022 (0.04%). This is an increase of 50% since the start of the Industrial Revolution, up from 280 ppm during the 10,000 years prior to the mid-18th century.  The increase is due to human activity. Burning fossil fuels is the main cause of these increased CO concentrations and also the main cause of climate change. Other large sources of CO from human activities include cement production, deforestation, and biomass burning.
Carbon dioxide is a greenhouse gas. It absorbs and emits infrared radiation at its two infrared-active vibrational frequencies. The two wavelengths are 4.26 μm (2,347 cm) (asymmetric stretching vibrational mode) and 14.99 μm (667 cm) (bending vibrational mode). CO plays a significant role in influencing Earths surface temperature through the greenhouse effect. Light emission from the Earths surface is most intense in the infrared region between 200 and 2500 cm, as opposed to light emission from the much hotter Sun which is most intense in the visible region. Absorption of infrared light at the vibrational frequencies of atmospheric  traps energy near the surface, warming the surface of Earth and its lower atmosphere. Less energy reaches the upper atmosphere, which is therefore cooler because of this absorption.
The increase in atmospheric concentrations of  and other long-lived greenhouse gases such as methane increase the absorption and emission of infrared radiation by the atmosphere. This has led to a rise in average global temperature and ocean acidification. Another direct effect is the CO fertilization effect. The increase in atmospheric concentrations of  causes a range of further effects of climate change on the environment and human living conditions. 
The present atmospheric concentration of  is the highest for 14 million years. Concentrations of  in the atmosphere were as high as 4,000 ppm during the Cambrian period about 500 million years ago, and as low as 180 ppm during the Quaternary glaciation of the last two million years. Reconstructed temperature records for the last 420 million years indicate that atmospheric  concentrations peaked at approximately 2,000 ppm. This peak happened during the Devonian period (400 million years ago). Another peak occurred in the Triassic period (220–200 million years ago).