Assume the mass is . So, there is carbon, hydrogen, nitrogen, and oxygen can be calculated as follow.
The molar mass of carbon is .
The molar mass of hydrogen is role="math" localid="1663680274716" .
The molar mass of nitrogen is .
The molar mass of oxygen is .
Hence, the moles of carbon, hydrogen, nitrogen and oxygen can be calculated as follow.
Moles of oxygen has the smallest value. Now divided moles of and by moles of oxygen to get the empirical formula.
Hence, the empirical formula of urea is .