The chemical formula of water is H2O, and the chemical formula of carbon dioxide is CO2. This means that water has 2 atoms of hydrogen and 1 atom of oxygen, which carbon dioxide has 1 atom of carbon and 2 atoms of oxygen. The only similar atom that the two molecules have in common is oxygen. CO2 has one more atom of oxygen than H2O. Hope this helps!