For example, the chemical formula for water is H2O, which means that water contains two atoms of hydrogen for every one atom of oxygen.