In chemistry, an ionic compound is a chemical compound composed of ions held together by electrostatic forces termed ionic bonding. The compound is neutral overall, but consists of positively charged ions called cations and negatively charged ions called anions. These can be simple ions such as the sodium (Na+) and chloride (Cl−) in sodium chloride, or polyatomic species such as the ammonium (NH4+) and carbonate (CO32−) ions in ammonium carbonate. Individual ions within an ionic compound usually have multiple nearest neighbours, so are not considered to be part of molecules, but instead part of a continuous three-dimensional network. Ionic compounds usually form crystalline structures when solid.
Ionic compounds containing basic ions hydroxide (OH−) or oxide (O2−) are classified as bases. Ionic compounds without these ions are also known as salts and can be formed by acid–base reactions. Ionic compounds can also be produced from their constituent ions by evaporation of their solvent, precipitation, freezing, a solid-state reaction, or the electron transfer reaction of reactive metals with reactive non-metals, such as halogen gases.
Ionic compounds typically have high melting and boiling points, and are hard and brittle. As solids they are almost always electrically insulating, but when melted or dissolved they become highly conductive, because the ions are mobilized.
The word ion is the Greek ἰόν, ion, "going", the present participle of ἰέναι, ienai, "to go". This term was introduced by physicist and chemist Michael Faraday in 1834 for the then-unknown species that goes from one electrode to the other through an aqueous medium.
In 1913 the crystal structure of sodium chloride was determined by William Henry Bragg and William Lawrence Bragg. This revealed that there were six equidistant nearest-neighbours for each atom, demonstrating that the constituents were not arranged in molecules or finite aggregates, but instead as a network with long-range crystalline order. Many other inorganic compounds were also found to have similar structural features.