Methane is a compound composed of carbon and hydrogen atoms. It has one carbon atom and four hydrogen atoms. The empirical formula of a compound represents the simplest whole number ratio of the elements present in the compound. In the case of methane, the empirical formula is CH₄, which indicates that for every one carbon atom, there are four hydrogen atoms.