The formula of a chemical compound states how many atoms of each element are in a fundamental unit of the compound. The fundamental unit is called a formula.