A chemical formula or molecular formula is a way of expressing information about the atoms that constitute a particular chemical compound.
The chemical formula identifies each constituent element by its chemical symbol and indicates the number of atoms of each element found in each discrete molecule of that compound. If a molecule contains more than one atom of a particular element, this quantity is indicated using a subscript after the chemical symbol (although 18th-century books often used superscripts) and also can be combined by more chemical elements. For example, methane, a small molecule consisting of one carbon atom and four hydrogen atoms, has the chemical formula CH4. The sugar molecule glucose has six carbon atoms, twelve hydrogen atoms and six oxygen atoms, so its chemical formula is C6H12O6. Read more on – Wikipedia
Video on Chemical Formula
Credit Khan Academy