The chemical formula for carbon dioxide is CO2, where C represents one atom of carbon and O2 represents two atoms of oxygen. Therefore, there are a total of 1 carbon atom and 2 oxygen atoms in one molecule of carbon dioxide, making a total of 3 atoms in a single molecule of CO2.