Carbon dioxide (chemical formula CO2) is a naturally occurring chemical compound composed of two oxygen atoms covalently bonded to a single carbon atom. It is a gas at standard temperature and pressure and exists in Earth's atmosphere in this state, as a trace gas at a concentration of 0.039% by volume.
As part of the carbon cycle known as photosynthesis, plants, algae, and cyanobacteria absorb carbon dioxide, light, and water to produce carbohydrate energy for themselves and oxygen as a waste product. But in darkness photosynthesis cannot occur, and during the resultant respiration small amounts of carbon dioxide are produced. Carbon dioxide also is a by-product of combustion; is emitted from volcanoes, hot springs, and geysers; and is freed from carbonate rocks by dissolution.