The empirical formula is
The empirical formula is the smallest integer ratio of the atoms in the compound. It may or may not be the same as the molecular formula.
Pretend that we have 100 g of the unknown compound. The % amount of nitrogen and oxygen adds up to 100%, so there are no other elements present in the compound.
First, take the ratio of masses of each element:
Now convert this to moles by dividing each mass by the elements' respective molar mass, because that tells us the ratio of how many particles of each atom we have:
Next, we need to simplify this ratio to whole numbers. To do this, divide both numbers by the smallest number:
Finally, these numbers must be whole numbers (because we can't have a fraction of an atom) so multiply everything in the ratio by the lowest possible integer to make everything a whole number:
So, the empirical formula is