A chemical formula is a group of chemical symbols that represents a compound. A chemical formula indicates the elements that make up a compound and the relative proportions of those elements. For example, the chemical formula for water is H2O, which means that water is made up of two atoms of hydrogen and one atom of oxygen.