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.
Learn more on properties of giant covalent compounds in this podcast. Listen to the full series on BBC Sounds.