Formula and method
Sum each element’s atom count multiplied by its standard atomic weight. Group multipliers and hydrate coefficients expand the atom counts first.
Worked example
H₂O contains two hydrogen atoms and one oxygen atom: 2 × 1.008 + 15.999 = 18.015 g/mol.