The formula of a covalent network or ionic compound gives the simplest ratio of atoms/ions in the substance. Sometimes the name of the compound gives information about the formula of that compound.