A chemical formula is used to show the number and types of atoms present in a molecule.
An example of the use of a chemical formula would be C6H12O6, which formulates glucose (simple sugar). In this formula, the following are present:
• 6 atoms of carbon
• 12 atoms of hydrogen
• 6 atoms of oxygen