For example, the formula H 2 O shows that a water molecule contains two hydrogen atoms and one oxygen atom.