The molecular formula of methane is CH4 and because it contains only one carbon atom, that is also its empirical formula.