In a molecular formula, a subscript that indicates the number of atoms of a particular element appears after the element symbol. For example, in the molecular formula H2O, the subscript 2 indicates that there are two hydrogen atoms in a water molecule.