Empirical formula is define as simple formula for a compound. it's give ratio of elements presant in a compound not actual number of atoms.
molecular formula of glucose is C₆H₁₂O₆. if you simple it then it contains 2 moles of hydrogen and 1 mole of carbon and oxygen. and so empirical formula is CH₂O
some time empirical formula and molecular formula are same.