A chemical formula is a symbolic representation of the composition of a chemical compound, indicating the types and numbers of atoms present. It provides essential information for understanding chemical reactions, properties, and structures of substances.