Carbon dioxide is a colorless gas with the chemical formula CO2. Each molecule of the gas consists of one atom of carbon and two atoms of oxygen.