A salt is an assembly of cations and anions with zero total electric charge. Its constituents can be single chemical atoms or groups joined internally by covalent bonds. Thus ionic bonding and covalent bonds can occur in the same chemical substance, at different structural levels.[ref]
Magnesium chloride is an ionic compound with two chloride anions per magnesium cation. Complete dissolution supplies one divalent magnesium ion and two monovalent chloride ions per formula unit. At analytical salt concentration , these species contribute molar ionic strength , provided additional dissolved ions are absent.
For a neutral formula unit, let count ions of type with electric charge , where is the elementary charge. The stoichiometry must satisfyFor and , the smallest positive counts are . For and , they are , giving calcium chloride : . The formula counts ions, not the number of nearest neighbours. A counterion is the oppositely charged partner needed to balance a charged species; its identity can change solubility and other properties without changing the identity of that species.[ref]
Historical formulation name; composition is identified by pharmacopoeial edition.