In every ionic compound, the total positive charge of the cations must always equal the total negative charge of the anions, so that the net charge of the complex is always zero.
Also know, what type of elements make up a binary ionic compound?
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.