work out how many atoms of each element are in the chemical formula add together the A r values for all the atoms of each element ...
if you know the relative mass formula (M r) of the compound. Add up the atomic masses of the atoms in the empirical formula. The empirical formula of a hydrocarbon is CH 2 and its M r is 42.