Ionic vs Molecular Compounds
Every compound you will meet in first-year chemistry falls into one of two great families: ionic or molecular. Telling them apart takes only one question. Are the atoms involved metals and nonmetals, or nonmetals paired with nonmetals? That single check is rooted in Metals, Nonmetals, and Metalloids and Ions and Ionic Charge. It predicts whether a substance forms a crystal lattice of charged particles. Or it forms a collection of discrete, neutral molecules instead. This distinction is not cosmetic. It controls melting point, electrical conductivity, solubility behavior. It even affects how you write and name the formula. A stoichiometry problem that treats table salt like a molecule of "NaCl" gaseous units will give wrong answers. This is especially true for melting point trends. One that treats water as an extended ionic lattice will mispredict its volatility. Learning to sort compounds correctly is a small skill. But it carries large downstream consequences. The classification rests entirely on where the elements sit in the periodic table. That is why it belongs so close to the introduction of metals, nonmetals, and ions. Once you can sort a formula on sight, you are ready for Chemical Formulas. You are also ready for two separate naming systems built specifically around this divide: Naming Ionic Compounds and Naming Molecular Compounds.
- Ionic compounds form between metals and nonmetals (or a metal and a polyatomic ion); molecular compounds form between two or more nonmetals.
- Ionic compounds are held together by electrostatic attraction between cations and anions; molecular compounds are held together by shared electron pairs (covalent bonds).
- Ionic compounds exist as extended lattices with no discrete "molecule"; their formulas are empirical ratios. Molecular compounds exist as discrete units with a fixed, exact molecular formula.
- Ionic compounds tend to have high melting points and conduct electricity when molten or dissolved; molecular compounds tend to have low melting points and do not conduct as pure liquids.
- A simple checklist — metal + nonmetal → ionic; nonmetal + nonmetal → molecular; ammonium and other polyatomic-ion compounds → ionic — resolves almost every formula you will encounter this year.
- Key idea: classify by the identity of the elements (metal vs nonmetal) first; the bonding type and all physical behavior follow from that single decision.
Look at the periodic table position of every element in the formula. Metal with nonmetal (or a polyatomic ion present) means ionic bonding and a lattice; nonmetal with nonmetal means covalent bonding and a discrete molecule.
The physical picture
Picture two very different ways of packing matter together. In the first, positively charged and negatively charged particles alternate in a rigid three-dimensional pattern, each cation surrounded by anions and each anion surrounded by cations, extending outward with no natural stopping point. This is the ionic picture: there is no single "unit" of sodium chloride sitting on its own — the formula NaCl is a ratio, the smallest whole-number ratio of Na⁺ to Cl⁻ ions in the crystal, called a formula unit. In the second picture, a fixed, small number of atoms share electron pairs to complete their valence shells, forming an independent, self-contained particle with a definite size and shape. Add more of the substance and you simply add more identical, separate particles — you do not extend a lattice. This is the molecular picture: a sample of water is an enormous collection of individual H₂O molecules, weakly attracted to each other but each one chemically complete on its own. The reason the two pictures arise from different combinations of elements traces back to electronegativity and ionization energy. Metals hold their valence electrons loosely (low ionization energy) and nonmetals attract electrons strongly (high electronegativity), so when a metal meets a nonmetal, the more efficient outcome is full electron transfer — production of a cation and an anion, as introduced in Ions and Ionic Charge. Two nonmetals, by contrast, both attract electrons strongly, so neither can strip electrons fully from the other. Instead they compromise by sharing electron pairs, producing a covalent bond.
The core relations
The classification rule can be written as a simple decision function applied to the elements present in a formula.
where:
- "metal" and "nonmetal" refer to periodic table position (left/center-left block vs. upper-right block, with metalloids treated case-by-case), as established in Metals, Nonmetals, and Metalloids;
- a "polyatomic ion" is a covalently bonded group carrying an overall charge (e.g., NH₄⁺, SO₄²⁻, NO₃⁻) that behaves as a single ionic unit even though internal bonds within the group are covalent.
For ionic compounds, electrical neutrality of the overall formula unit fixes the ratio of cations to anions:
where:
- , are the number of cations and anions in the formula unit;
- , are their signed charges (e.g., for Ca²⁺, for Cl⁻).
For molecular compounds, no such charge-balance condition applies; instead the formula reports the exact atom count in one discrete molecule, and the whole-compound composition follows the ordinary mass relations used throughout stoichiometry:
where:
- is the number of atoms of element X per formula unit or per molecule;
- is that element's molar mass (g/mol);
- is the molar mass of the whole formula unit or molecule.
Goal. Given the charges of a cation and an anion, derive the subscripts in the neutral formula unit, using calcium and phosphate as an asymmetric, non-trivial example.
Step 1. Identify the ions and their charges. Calcium is a metal in Group 2, so it forms Ca²⁺ (). Phosphate is the polyatomic ion PO₄³⁻ (). These come directly from the periodic-group reasoning in Ions and Ionic Charge.
Step 2. Impose electrical neutrality.
Step 3. Solve for the smallest whole-number ratio. The magnitudes of the charges must cross-multiply into the subscripts:
Step 4. Check neutrality explicitly.
The formula unit is Ca₃(PO₄)₂ — three Ca²⁺ ions for every two PO₄³⁻ ions, written with parentheses because phosphate is polyatomic and there is more than one of it.
Step 5. Confirm this is already the lowest ratio. Since 3 and 2 share no common factor, 3:2 cannot be reduced further, so Ca₃(PO₄)₂ is the correct empirical formula unit — not a multiple of it such as Ca₆(PO₄)₄.
Worked examples
Example 1 — Classifying and formula-checking magnesium nitride. Magnesium is found in Group 2 (a metal); nitrogen is in Group 15 (a nonmetal). Metal + nonmetal ⇒ ionic compound. Magnesium loses two electrons to reach a noble-gas configuration, so (Mg²⁺). Nitrogen gains three electrons to complete its octet, so (N³⁻). Apply the neutrality condition:
Formula unit: Mg₃N₂. Check:
Because this is an ionic solid, Mg₃N₂ has no single "molecule" — a sample is an extended lattice of Mg²⁺ and N³⁻ ions in a 3:2 ratio, consistent with the physical picture above and setting up the naming rules in Naming Ionic Compounds.
Example 2 — Classifying and computing mass percent for phosphorus trichloride. Phosphorus (Group 15) and chlorine (Group 17) are both nonmetals. Nonmetal + nonmetal ⇒ molecular compound, so its formula, PCl₃, reports an exact, discrete molecule rather than a reduced ratio. Molar masses (using standard atomic weights): , . Molecular molar mass:
Mass percent of chlorine:
Mass percent of phosphorus, as a check, should make up the rest:
Unlike Mg₃N₂, this "3" in PCl₃ is not adjustable by a charge-balance rule — it is simply the fixed number of chlorine atoms covalently bonded to one phosphorus atom in a single, real molecule, which is the entire point of the molecular/ionic distinction.
Limiting cases & common traps
| Situation | Correct classification | Why |
|---|---|---|
| Metal + nonmetal (e.g., KBr, Al₂O₃) | Ionic | Large electronegativity gap ⇒ electron transfer |
| Nonmetal + nonmetal (e.g., CO₂, SF₆) | Molecular | Both attract electrons; electrons are shared |
| Metal + polyatomic ion (e.g., NaNO₃) | Ionic | Polyatomic ion carries a net charge; overall lattice is ionic |
| Ammonium compounds without any metal (e.g., NH₄Cl) | Ionic | NH₄⁺ is a cation even though N and H are both nonmetals |
| Metalloid + nonmetal (e.g., SiO₂, BF₃) | Usually molecular | Metalloids generally form covalent networks/molecules with nonmetals; treat case-by-case |
| Two different nonmetal elements but written with charge-looking subscripts (e.g., "N₂O₅") | Still molecular | Subscripts here are fixed atom counts of one molecule, not a reduced charge ratio |
An important limiting case makes the whole classification testable: consider a hypothetical compound of two identical nonmetal atoms, such as O₂ or Cl₂. Here there is no electronegativity difference at all (), so no ionic character can form — bonding must be purely covalent, confirming that "nonmetal + nonmetal" collapses smoothly into the molecular category even at the extreme of zero electronegativity difference. At the opposite extreme, an active metal (very low ionization energy, e.g., Cs) paired with a highly electronegative nonmetal (e.g., F) gives the largest possible , and correspondingly the most clearly ionic behavior (CsF has one of the highest melting points among simple binary salts) — the classification rule scales continuously with the size of the electronegativity gap, with metal/nonmetal pairing as the reliable shorthand test.
The chemist behind it
The formal separation of "ionic" from "molecular" substances only became possible once chemists could measure how compounds behave in solution — specifically, whether they conduct electricity. Melted or dissolved ionic solids conduct because mobile charged particles carry current; molecular liquids like pure water or sugar solutions barely conduct at all, because there are no free ions to move. This electrical test long predates modern bonding theory and gave the first hard evidence that some compounds are built from charged particles while others are built from neutral units.
Origins · 1 minSvante Arrhenius and how this was discovered
Arrhenius proposed, in his 1884 doctoral thesis, that certain compounds dissociate into charged particles ("ions") when dissolved in water, explaining why their solutions conduct electricity while solutions of substances like sugar do not. The idea was initially received with skepticism — his examiners nearly failed the thesis — but it was later vindicated and earned him the Nobel Prize in Chemistry in 1903. His work supplied the experimental backbone for exactly the ionic/molecular split taught here: the compounds that dissociate into freely moving ions are the ionic ones, and the compounds that dissolve intact as neutral particles are the molecular ones.
Ask the tutor: Why does phosphorus form both PCl₃ and PCl₅ with the same nonmetal, while ionic compounds almost never show this kind of formula flexibility?
Can a compound contain both ionic and covalent bonds?
Yes. Many ionic compounds contain a polyatomic ion, and the bonds within that ion (such as the N–O bonds in NO₃⁻) are covalent, while the bond between the polyatomic ion and its counter-ion is ionic. Sodium nitrate, NaNO₃, is a everyday example: covalent bonding holds the nitrate group together, and ionic attraction holds Na⁺ and NO₃⁻ together in the lattice.
Do metalloids always form molecular compounds?
Not universally, but most compounds of metalloids with nonmetals behave as covalent network or molecular substances (silicon dioxide, boron trifluoride) rather than simple ionic salts, because the electronegativity difference is usually too small to drive full electron transfer. Metalloids paired with active metals, however, can show ionic character, so this case is judged individually rather than by a fixed rule.
Why do ionic compounds have much higher melting points than molecular compounds, on average?
Melting an ionic solid requires breaking the strong electrostatic attraction between many closely packed, oppositely charged ions throughout the entire lattice. Melting a molecular solid only requires overcoming weak intermolecular forces between whole, already-neutral molecules, leaving the strong covalent bonds inside each molecule untouched. That difference in what actually has to break is why table salt melts near 801 °C while ice melts at 0 °C.
Is water, H₂O, ever considered ionic?
No — water is molecular. Oxygen and hydrogen are both nonmetals, and the O–H bonds are covalent (shared electron pairs), forming a discrete, bent triatomic molecule. Pure water conducts electricity extremely poorly, consistent with the molecular classification; the small conductivity it does show comes from a tiny degree of self-ionization, not from being built as a lattice of ions.
What happens when a metalloid or nonmetal forms a compound with hydrogen — is that ionic?
Almost never for typical nonmetal-hydrogen pairs like HCl, NH₃, or CH₄: hydrogen here behaves as a nonmetal partner and the bonding is covalent, giving molecular compounds. The exception is when hydrogen bonds to a very active metal (e.g., NaH), where hydrogen instead accepts an electron to become the hydride ion H⁻, and the compound is ionic.