A formula which tells us the number of atoms of each element in a compound eg calcium carbonate has the molecular formula CaCO3