The chemical formula provides insight into the chemical composition of a compound. It also employed to represent ions. The chemical formula of a compound is important while representing it in a chemical equation.