The chemical formula for carbon dioxide is CO₂, indicating that there is one carbon atom and two oxygen atoms in each molecule.