The empirical formula of a compound is determined by converting the percentage composition of each element to moles, then simplifying the ratio to the smallest whole numbers. Here are the steps to calculate the empirical formula for a compound with 40% carbon, 6.7% hydrogen, and 53.3% oxygen.