Question: how to tell the difference between ionic and covalent formulas?
Answer: Covalent or molecular compounds form when elements share electrons in a covalent bond to form molecules. Molecular compounds are electrically neutral. Ionic compounds are (usually) formed when a metal reacts with a nonmetal (or a polyatomic ion). Covalent compounds are formed when two nonmetals react with each other.