Ionic compounds form when one atom transfers electrons to another, creating oppositely charged particles (ions) that lock together through electrical attraction. This process typically happens between metals on the left side of the periodic table and nonmetals on the right. The result is a sturdy, crystalline substance held together not by shared electrons, but by the pull between positive and negative charges.
Why Atoms Transfer Electrons
Atoms are most stable when their outermost energy level is full, which for most elements means holding eight electrons. This principle, called the octet rule, is the driving force behind ionic bond formation. Metals have just one, two, or three electrons in their outer shell, and it’s far easier for them to shed those few electrons than to gain five, six, or seven more. Nonmetals, on the other hand, are only a few electrons short of a full set, so gaining electrons is the easier path for them.
When sodium reacts with chlorine, for example, the sodium atom has one outer electron and chlorine has seven. Sodium gives up its single electron, becoming a positively charged ion (Na⁺) with the same electron arrangement as the noble gas neon. Chlorine picks up that electron, becoming a negatively charged ion (Cl⁻) with the same arrangement as argon. Both ions now have stable, full outer shells, and the opposite charges pull them together.
How the Electron Transfer Works
The number of electrons lost always equals the number gained. In sodium chloride, it’s a clean one-for-one trade. But when the math doesn’t work out so neatly, atoms team up in different ratios.
Magnesium has two outer electrons and oxygen needs two, so one magnesium atom transfers both electrons to one oxygen atom. The result is MgO, with Mg²⁺ and O²⁻ ions. When sodium reacts with oxygen, though, each sodium can only donate one electron while oxygen needs two. That means two sodium atoms are required for every oxygen atom, producing Na₂O. Calcium and chlorine follow a similar logic: calcium has two electrons to give, but each chlorine atom only needs one, so one calcium pairs with two chlorines to form CaCl₂.
The pattern is straightforward. Figure out how many electrons each atom needs to lose or gain, then balance the numbers so every electron that leaves one atom lands on another.
What Makes a Bond Ionic
Not every pair of elements forms an ionic bond. The key factor is electronegativity, which measures how strongly an atom attracts electrons. When two atoms have a large difference in electronegativity, the more electronegative atom effectively takes the electron rather than sharing it. On the Pauling scale, a difference greater than about 1.7 generally produces an ionic bond. Below that threshold, the atoms share electrons to varying degrees, forming polar covalent bonds instead.
This is why ionic compounds almost always involve a metal paired with a nonmetal. Metals have low electronegativity (they hold their outer electrons loosely), while nonmetals have high electronegativity (they pull hard on electrons). The mismatch is large enough for a full transfer. Two nonmetals bonding together, like hydrogen and oxygen in water, have a smaller gap, so they share electrons instead.
It’s worth noting that no bond is perfectly ionic. Even in sodium chloride, there’s a tiny amount of electron sharing. Small, highly charged ions (like lithium or aluminum) pull on the electron cloud of their partner more aggressively, introducing some covalent character into the bond. This effect increases as the positive ion gets smaller or carries a higher charge.
How Ions Arrange Into Crystals
Once formed, ions don’t just pair off one by one. Each positive ion attracts every nearby negative ion, and vice versa. The result is a repeating three-dimensional grid called a crystal lattice, where each ion is surrounded by ions of the opposite charge. In sodium chloride, every sodium ion sits next to six chloride ions, and every chloride ion sits next to six sodium ions. This isn’t a molecule in the traditional sense. It’s a vast, orderly network of alternating charges.
The specific geometry of the lattice depends on the relative sizes and charges of the ions. Cesium chloride, for instance, has larger cesium ions, so each one is surrounded by eight chloride ions instead of six. Calcium fluoride arranges itself so each calcium ion is surrounded by eight fluoride ions, but because there are twice as many fluoride ions as calcium ions, every other slot in the lattice stays empty. These structural differences affect the compound’s density, hardness, and how it fractures.
What Determines Bond Strength
The strength of the attraction between ions follows a simple rule from physics: higher charges and smaller distances produce stronger bonds. Magnesium oxide, where Mg²⁺ and O²⁻ each carry double charges, has far stronger ionic bonds than sodium chloride, where Na⁺ and Cl⁻ carry single charges. You can see this directly in their melting points. Sodium chloride melts at 801°C, while magnesium oxide holds together until 2,825°C.
Ion size matters too. Smaller ions can get closer together, which strengthens the attraction. Sodium fluoride melts at 993°C, nearly 200 degrees higher than sodium chloride, partly because fluoride ions are smaller than chloride ions, allowing the lattice to pack more tightly. So when comparing ionic compounds, look at two things: the charge on the ions and how big they are. Bigger charges and smaller sizes mean stronger bonds.
Physical Properties of Ionic Compounds
The crystal lattice structure explains most of the physical properties you’ll notice in ionic compounds. They tend to be hard, brittle solids at room temperature with high melting points, because breaking apart that lattice requires overcoming enormous numbers of electrostatic attractions at once. Table salt doesn’t melt on your stovetop for the same reason a chain-link fence is harder to pull apart than a single link.
Electrical conductivity is another defining trait. Solid ionic compounds do not conduct electricity, even though they’re made entirely of charged particles. The ions are locked in fixed positions within the lattice and can’t move toward an electrode. Melt the compound or dissolve it in water, however, and the story changes completely. The lattice breaks apart, the ions become free to move, and the substance conducts electricity readily. This is why molten salt and saltwater both conduct current, but a dry salt crystal does not.
When ionic compounds dissolve in water, something specific happens at the molecular level. Water molecules are polar, meaning they have a slightly positive end and a slightly negative end. The positive ends of water molecules cluster around negative ions, and the negative ends cluster around positive ions, gradually pulling them free from the lattice. This process, called hydration, releases energy. Whether a compound actually dissolves depends on whether the energy released by hydration is enough to compensate for the energy needed to break the lattice apart.
How Ionic Compounds Are Named
Naming ionic compounds follows a consistent pattern. The metal (positive ion) is written first, keeping its element name. The nonmetal (negative ion) comes second, with its ending changed to “-ide.” Sodium and chlorine become sodium chloride. Magnesium and oxygen become magnesium oxide. Calcium and fluorine become calcium fluoride.
You never use prefixes like “di-” or “mono-” for ionic compounds the way you would for molecular ones. Na₂O is simply “sodium oxide,” not “disodium oxide.” The ratio of ions is understood from the charges. For transition metals that can form ions with different charges, Roman numerals clarify which one you mean: iron(II) chloride for FeCl₂ versus iron(III) chloride for FeCl₃.

