Chemistry 2e · Atoms, Molecules, and Ions

Ionic and Molecular Compounds

7 min read
Want it in plain words first? Jump to Eli explains — the same idea, no jargon.
On this page 9 sections
  1. In 30 seconds
  2. Why this matters
  3. The college version
  4. Eli explains
  5. Worked example
  6. Key takeaway
  7. Check yourself
  8. Study tools
  9. Sources & references

In 30 seconds

Almost every compound in the everyday world belongs to one of two great classes. Ionic compounds form when a metal transfers electrons to a nonmetal, producing oppositely charged ions that lock together in a crystal lattice — table salt (NaCl) is the classic example. Molecular compounds form when nonmetals share electrons in discrete molecules — water (H₂O), carbon dioxide (CO₂), and sugar are examples.

Why this matters

Electrolytes such as sodium, potassium, and chloride ions carry nerve signals and control fluid balance, and the salts supplying them are ionic compounds. Oxygen and the organic molecules of life (water, glucose, proteins) are molecular. Knowing a substance's class lets you predict whether it will dissolve and conduct in water, how high its melting point is, and whether it exists as discrete molecules — predictions that matter when reading a label or handling a chemical safely. This topic also builds the vocabulary (cations, anions, polyatomic ions) needed for the naming rules in the next topic and for bonding theory in Chapter 7.

The college version

Core Concepts

Ionic compounds: electron transfer and the octet rule

Atoms react to reach stable configurations, and the is a useful guide: atoms tend to gain, lose, or share electrons so their valence shell resembles a noble gas — eight electrons (two for hydrogen and helium). A metal on the left has few valence electrons and loses them easily; sodium (1 valence electron) becomes Na⁺. A nonmetal on the right has nearly a full shell and gains electrons; chlorine (7 valence electrons) becomes Cl⁻. The electrostatic attraction between the ions is the . Ionic compounds do not exist as individual molecules: a shows only the ratio of ions, packed into an extended three-dimensional crystal lattice. That lattice explains their properties: high melting points (NaCl melts at 801 °C), hardness and brittleness, and conduction of electricity when molten or dissolved in water — but not when solid.

Molecular compounds: shared electrons

When nonmetals combine, neither atom readily gives up electrons; instead they share pairs, forming covalent bonds. The resulting particle — a group of atoms held together by covalent bonds — is a . Water (H₂O), methane (CH₄), ammonia (NH₃), carbon dioxide (CO₂), and oxygen (O₂) are molecular compounds. Molecular substances tend to have low melting and boiling points, are often gases or volatile liquids, and generally do not conduct electricity.

Polyatomic ions

Some ions are groups of atoms carrying a net charge; these are polyatomic ions. The atoms within are held by covalent bonds, but the group behaves as a single charged unit in formulas and reactions. Common examples: ammonium (NH₄⁺), hydroxide (OH⁻), nitrate (NO₃⁻), carbonate (CO₃²⁻), sulfate (SO₄²⁻), phosphate (PO₄³⁻). Polyatomic ions let compounds of only nonmetals be ionic: ammonium chloride (NH₄Cl) contains no metal, yet it is an ionic compound of NH₄⁺ and Cl⁻.

Predicting ion charges from the periodic table

For main-group elements the charge is predictable from the group number: groups 1, 2, and 13 form 1+, 2+, and 3+ cations; groups 15, 16, and 17 form 3−, 2−, and 1− anions. Transition metals are the exception — most have more than one common charge (Fe²⁺/Fe³⁺, Cu⁺/Cu²⁺, Sn²⁺/Sn⁴⁺) — which is why their names carry Roman numerals in the next topic.

Writing formulas by charge balance

The guiding rule: in a neutral ionic compound, total positive charge equals total negative charge. Write the cation first, then the anion, and choose subscripts that make the charges cancel. The criss-cross method swaps charge magnitudes as subscripts (Ca²⁺ with Cl⁻ gives CaCl₂; Al³⁺ with O²⁻ gives Al₂O₃), then reduces to simplest whole numbers (Mg²⁺ with O²⁻ gives MgO, not Mg₂O₂). When a is used more than once, enclose it in parentheses: Ca(OH)₂, Mg₃(PO₄)₂. Two cautions: the metal–nonmetal rule is a strong guideline rather than an absolute law — compounds like AlCl₃ and BeCl₂ are largely covalent — and a formula gives the ratio of ions, not the mass (the subject of Chapter 3).

How It Works / Step-by-Step Process

  1. Identify the elements: metal + nonmetal (or polyatomic ion) → ionic; nonmetal + nonmetal → molecular.
  2. Determine charges: main-group charges from group number; polyatomic charges from memory; transition metals from context or Roman numerals.
  3. Ionic: balance total positive and negative charge, reduce to simplest ratio, use parentheses for repeated polyatomic ions.
  4. Molecular: write symbols and subscripts from the given name or atom counts.
  5. Predict properties (melting point, conductivity) from the class, and check the formula's charge balance.

Common Confusions

Do not confuseWithDifference
"Ionic compounds are made of molecules"Formula units in a latticeA formula unit is a ratio, not a discrete molecule; "a molecule of NaCl" is incorrect.
"Every metal–nonmetal compound is ionic"Largely covalent exceptionsAlCl₃ and BeCl₂ are largely covalent; bond type depends on how evenly electrons are shared.
"Ionic compounds never conduct"They conduct when molten or dissolvedSolid ionic compounds do not conduct; free-moving ions do.
"The subscripts are fixed forever"Simplest neutral ratioThe same ions form different compounds (FeCl₂ vs FeCl₃).
"Polyatomic ions are rare"They are common and must be memorizedNH₄⁺, OH⁻, NO₃⁻, CO₃²⁻, SO₄²⁻, PO₄³⁻ appear constantly in formulas and names.
Eli, the EliExplains learning guide

Eli explains

The same idea, in plain words

Explain it like I’m 10

Some atoms want to give away their loose electrons and some want to collect them, like kids trading marbles until everyone has a full set. When one atom gives a marble to another, they stick together because they are now oppositely charged — that's an ionic compound, and table salt is made this way. When two atoms both want the same marbles, they hold the same marbles together — that's a molecular compound, and water is made this way. Giving makes crystals; sharing makes separate little molecules.

Worked example

Example 1: Writing the formula of calcium chloride

Calcium (group 2) forms Ca²⁺; chlorine (group 17) forms Cl⁻. To cancel charges, total positive charge must equal total negative charge:

(+2) + 2(-1) = 0

so two chloride ions are needed per calcium ion: CaCl₂. (Criss-cross: swap the 2 and the 1 to get Ca₁Cl₂, then drop the implied 1.)

Example 2: Writing the formula of aluminum oxide

Aluminum (group 13) forms Al³⁺; oxygen (group 16) forms O²⁻. The smallest neutral combination satisfies:

2(+3) + 3(-2) = 0

so the formula is Al₂O₃. Criss-cross gives this directly — but always reduce when possible: Mg²⁺ with O²⁻ gives Mg₂O₂, which must be reduced to MgO.

Example 3: Classifying compounds

Classify each: NaCl, CO₂, NH₄NO₃, CH₄, MgO.

NaCl: metal + nonmetal → ionic. CO₂: two nonmetals → molecular. NH₄NO₃: ammonium and nitrate are polyatomic ions → ionic, though it contains only nonmetals. CH₄: nonmetals → molecular. MgO: metal + nonmetal → ionic.

Example 4: Predicting a property

Which has the higher melting point, NaCl or CH₄, and why?

NaCl, because its ions are locked in a strong electrostatic lattice that requires a large energy input to break apart (it melts near 801 °C). Methane molecules are held together only by weak intermolecular forces, so solid CH₄ melts at a very low temperature.

Key takeaways

  • Ionic: metal + nonmetal (or polyatomic ion), electron transfer, formula units in a crystal lattice, high melting points, conducts when molten or dissolved.
  • Molecular: nonmetals only, shared electron pairs, discrete molecules, low melting/boiling points, generally nonconducting.
  • Octet rule: atoms seek noble-gas configurations (8 valence electrons; 2 for H and He) — a guide, not an absolute law.
  • Ion charges from group numbers: 1+ / 2+ / 3+ on the left; 3− / 2− / 1− on the right; transition metals vary.
  • Formula rule: total positive charge = total negative charge; reduce subscripts; parentheses around repeated polyatomic ions.
  • Safety: never taste or touch unknown substances — many metal salts (lead, mercury, chromium compounds) are toxic; treat all lab chemicals as hazardous and follow your instructor's safety rules.

Check yourself

6 review questions from the chapter. Try each one, then open the answer.

  1. What is the fundamental difference between ionic and covalent bonding at the electron level?

    Show answer

    Ionic: electrons are transferred from metal to nonmetal, forming ions held by electrostatic attraction. Covalent: nonmetals share electron pairs.

  2. Write the formula of magnesium nitride (Mg²⁺ and N³⁻).

    Show answer

    Mg₃N₂: three Mg²⁺ (total +6) balance two N³⁻ (total −6).

  3. Why does solid NaCl not conduct electricity, while molten NaCl does?

    Show answer

    In the solid, ions are locked in the lattice and cannot move; when molten, the lattice breaks and ions migrate to the electrodes.

  4. Which compound is molecular: K₂O or SO₂?

    Show answer

    SO₂ — both elements are nonmetals, so it is molecular; K₂O is ionic (metal + nonmetal).

  5. What is the charge of the sulfate ion?

    Show answer

    2− (SO₄²⁻).

  6. Write the formula of aluminum sulfide (Al³⁺ and S²⁻).

    Show answer

    Al₂S₃: 2(+3) + 3(−2) = 0.

Keep learning

Ready to build on this? Continue to the next lesson.

Study tools & related lessonsKey vocabulary · Related

Key vocabulary

ionic bond
Attraction between oppositely charged ions formed by electron transfer.
covalent bond
A bond formed by sharing a pair of electrons between atoms.
cation / anion
A positively charged ion (cation) or negatively charged ion (anion).
octet rule
Atoms tend to gain, lose, or share electrons to reach 8 valence electrons (2 for H, He).
formula unit
The simplest ratio of ions in an ionic compound.
molecule
A discrete group of atoms held together by covalent bonds.
polyatomic ion
A charged group of covalently bonded atoms acting as one unit.
electrolyte
A substance that produces ions in solution and conducts electricity.

Sources & references

  1. openstax.org — Chemistry 2e

This lesson was adapted from the open educational references above; their licenses and attributions are preserved. See Copyright & Licensing.

Educational content only. It is not medical, legal or professional advice. Found an error? Tell us.