What does a chemical formula tell?
Chemical formulas give the kinds and numbers of elements in the compound.
For example the formula for glucose sugar. is
This shows that the compound is made of Carbon, Hydrogen and Oxygen.
It also shows the number of Carbon atoms ( 6) Hydrogen atoms (12) and Oxygen atoms ( 6) per molecule of glucose.