Water is a compound and a compound forms whenever two or more atoms atoms form chemical bonds with each other. The chemical formula for water is H2O which means each molecule of water consists of one oxygen atom chemically bonded to two hydrogen atoms.