Explanation:
Molecular formula is the chemical formula which depicts the actual number of atoms of each element present in the compound.
Empirical formula is the simplest chemical formula which depicts the whole number of atoms of each element present in the compound.
In both the formulas, the nature of atoms remains the same but the number differs.
For Example: The molecular formula of oxalic acid is [tex]C_2H_2H_4[/tex] but the empirical formula of oxalic acid is [tex]CHO_2[/tex]
To calculate the molecular formula, we need to find the valency which is multiplied by each element to get the molecular formula.
The equation used to calculate the valency is:
[tex]n=\frac{\text{Molecular mass}}{\text{Empirical mass}}[/tex]
The empirical mass can be calculated from empirical formula and molar mass must be known.