Molecular/empirical formula


NH2NH2 (hydrazine)

NH3 (ammonia)
 
Some compounds exist as molecules which are groups of covalently-bonded atoms.  Two examples of molecular substances are shown.

In traditional experiments to determine the formula for a substance, scientists measure the mass of each elementpresent in a sample of the compound. From these masses and their knowledge of relative atomic masses, they determine the relative numbers of each type of atoms present in the compound.  

Such an analysis of the molecular compound
 
N2H4 would show that there for each nitrogen atom, there are two hydrogens (empirical formula: NH2).
NH3 would show that for each nitrogen atom there are three hydrogens (empirical formula: NH3). 

The empirical formula is the simplest whole-number ratio of the atoms in a compound.
 
It can be seen from the examples that the empirical formula does not necessarily show how many of each type of atom are present in a molecule of the compound.
 
The molecular formula (N2H4 and NH3 above) shows all atoms present in a molecule of the substance.
 
Comparing the molecular formula (N2H4) and the empirical formula (NH2) shows that the molecular formula is a multiple of the empirical formula.

Thus the empirical formula for a compound is different to the molecular formula if all subscripts in the molecular formula are divisible by a common factor (2, for example).

The factor by which the subscripts in the empirical formula are multiplied in the molecular formula can be determined if the relative molecular mass of the compound is known.