A molecular formula represents the number and type of atoms in a molecule. Unlike a structural formula, which shows the arrangement of atoms, the molecular formula simply provides the elemental composition. For example, the molecular formula for benzene is C6H6, indicating six carbon atoms and six hydrogen atoms.