Safe Mustafa
Library
© 2026 Safe Mustafa LLCContact
← General Chemistry I

4. Ionic and Covalent Compounds

Why does table salt exist, and why is it a crystal?

Name compounds, write formulas, and tell ionic from covalent by their properties.

ExperimentsIs salt really made of ions?Test what carries a current, and what does not.
Experiment 1 · Faraday, 1830s

Does it carry a current?

Table salt is said to be made of ions. How could you tell?

In the 1830s Michael Faraday asked why some liquids carry an electric current and others do not. He gave the ones that do the name electrolytes, and the charged particles that carry the current through them the name ions, from the Greek for travellers. He had no proof that salt was made of ions, only the pattern in the current. Repeat his reasoning with a bulb, a battery and nine samples: what carries a current, what does not, and what does that say about what the sample is made of?
Sample:
Predict the bulb for salt crystals:
Step 1 of 4 · Salt crystalsChoose the salt crystals. Salt is the textbook ionic compound. Will the bulb light? Predict, then lower the electrodes.
SampleSalt crystals
Bulbnot tested
Charge carriersions, locked
The maths
An electric current is moving charge. For something to conduct, it needs charged particles that are free to move.
NaCl(s): NaCl, solid. Na⁺ and Cl⁻ are there, but locked in the crystal: nothing is free to move.
Questions you might have (4)
Why does dissolving in water free the ions?

Water molecules are polar: each has a slightly negative oxygen end and slightly positive hydrogen ends. They crowd round the ions at the surface of the crystal, and the pull of many water molecules is enough to pry them away one at a time. Each ion is then surrounded by water and moves independently. This is the subject of the Aqueous Reactions unit.

Sugar dissolves too. Why does it not give ions?

Sugar is held together by covalent bonds, which are not broken by water. The molecules separate from each other and spread out through the water, but each stays whole and neutral. Dissolving and ionizing are different things.

Hydrochloric acid is made of molecules, yet it conducts. Why?

HCl is a covalent molecule, but a very polar one, and water is able to pull it apart into H⁺ and Cl⁻. So it is a molecular compound that becomes ionic when it dissolves. Pure HCl gas does not conduct; the solution does. The weaker acetic acid in vinegar splits only a little, so it conducts only a little.

Copper conducts. Does that mean it is ionic?

No. Metals conduct because their outer electrons are free to move through the whole piece, not because of ions moving. A metal conducts when solid, which ionic compounds do not. That is one of the ways to tell the two kinds apart.

Run the experiment to see what it showed.
TheoryWhich ions, and how many?A compound has no net charge. The formula is the recipe that makes it so.
Theory 1 · Berzelius, 1813

Balancing the charges

How do you know that magnesium chloride is MgCl₂, and aluminum oxide Al₂O₃?

Salt carries a current because it is made of ions. But a lump of salt has no net charge, so the ions must come in a ratio that cancels. In 1813 Jöns Jacob Berzelius introduced the notation chemists still use: letters for elements, subscripts for numbers. A formula for an ionic compound is a statement of balance. Choose ions and add them until the charges cancel, and the rule for writing formulas appears.
Cation (positive)
Anion (negative)
1Na⁺ ×
Na⁺
1Cl⁻ ×
Cl⁻
Net charge
0
Balanced, and this is the smallest set that cancels, so it is the formula.
Step 1 of 5 · Sodium chlorideChoose Na⁺ and Cl⁻. One of each: the +1 and −1 cancel.NaCl: sodium chloride.
Net charge0
Ratio so far1 : 1
Smallest ratio1 : 1
FormulaNaCl
The maths
A compound is neutral: (number of cations × charge) + (number of anions × charge) = 0
1 × (+1) + 1 × (-1) = 1 + (-1) = 0
Smallest whole-number ratio for Na⁺ and Cl⁻: 1 : 1. The "criss-cross" shortcut: each ion's charge becomes the other's count.
Formula: NaCl Name: sodium chloride
Questions you might have (4)
Why is there no molecule called NaCl?

In a crystal of salt each Na⁺ is surrounded by six Cl⁻ and each Cl⁻ by six Na⁺, repeating in every direction. There is no pair to point to. The formula NaCl is a formula unit: the ratio of ions in the crystal.

How do I know the charge of an ion?

For the main groups, it comes from the nearest noble-gas configuration, which you saw in the last unit: group 1 gives 1+, group 2 gives 2+, group 13 gives 3+, group 17 gives 1−, group 16 gives 2−, and group 15 gives 3−. Transition metals vary, which is why their names carry a Roman numeral.

Why brackets for Ca(NO₃)₂ but not for CaSO₄?

The bracket is only needed when you want more than one of a polyatomic ion, so that the subscript applies to the whole ion. CaSO₄ has one sulfate; Ca(NO₃)₂ has two nitrates. Writing CaNO₃₂ would mean something different.

What about ammonium compounds?

NH₄⁺ is a polyatomic cation with a charge of 1+. It behaves like sodium in a formula. Try it with sulfate: (NH₄)₂SO₄, two ammonium for one sulfate.

Work through it to see what it shows.
ExperimentsHow strongly are the ions held?Heat a crystal until it gives way.
Experiment 2 · Measured today

How hot does it have to get?

If salt is held together by strong forces between ions, how does the temperature at which it melts compare with sugar-like, molecular solids?

Table salt needs a furnace to melt, and candle wax melts over a stove. Anyone with a thermometer and a crucible could collect melting points, and the numbers are the plainest evidence there is of how strongly the particles of a solid hold on to each other. The conductivity test showed salt is made of ions locked in a crystal. How tightly are they locked? Heat a row of solids, ionic and molecular, and see which ones give way first.
-200010050010001500200025003000Temperature, °C (the scale stretches the cold end up to 100 °C so the molecular solids can be told apart)● molecular● ionic
20 °Cdrag the white marker, or press the arrow keys
CH₄
liquid · melts at -182.456 °C
C₂H₅OH
liquid · melts at -114.14 °C
NH₃
liquid · melts at -77.73 °C
CCl₄
liquid · melts at -22.92 °C
H₂O
liquid · melts at 0 °C
C₁₀H₈
solid · melts at 80.22 °C
CsCl
solid · melts at 646 °C
KCl
solid · melts at 770 °C
NaCl
solid · melts at 800.7 °C
LiF
solid · melts at 845 °C
NaF
solid · melts at 993 °C
CaO
solid · melts at 2613 °C
MgO
solid · melts at 2852 °C
Step 1 of 3 · Up to the boiling point of waterDrag the marker along the temperature axis up to 100 °C. Which solids melt before the water would boil?
Temperature20 °C
Molecular melted5 / 6
Ionic melted0 / 7
The maths
Melting needs enough heat to pull the particles of the solid apart from their places. The hotter it must get, the stronger the forces between the particles.
At 20 °C (293 K): 5 of 6 molecular solids and 0 of 7 ionic solids have melted.
Questions you might have (4)
Doesn't melting water break its bonds?

No. Melting separates molecules from each other, and the bonds inside each molecule stay put: it is still H₂O afterwards. The forces between neutral molecules are much weaker than those between ions, which is why molecular solids melt so readily. These forces are the subject of the last unit.

Why is water at 0 °C solid but methane at −182 °C?

Water molecules are polar and pull on each other more strongly than methane's nonpolar molecules do. Even between molecules the strength varies a lot. But the whole molecular range, from −182 to +80 °C here, is small beside the ionic range.

Why do MgO and CaO melt so much higher?

Coulomb's law says the force between charges grows with the product of the charges. A 2+ and a 2− attract four times harder than a 1+ and a 1− at the same distance. The experiment after next makes this quantitative with a lattice energy.

Where do these numbers come from?

They are read by a script from Wikipedia's data for each compound, which cites the CRC Handbook of Chemistry and Physics and other references. Sodium chloride is 800.7 °C there, for example.

Run the experiment to see what it showed.
Experiment 3 · Madelung, 1918

Why a crystal?

A lone Na⁺ and Cl⁻ attract each other. What changes when you add more ions?

A sodium ion and a chloride ion attract each other, but salt does not exist as pairs. It exists as a crystal with billions of ions. In 1918 Erwin Madelung asked what the electrostatic energy of such a crystal is, adding up the attraction and repulsion of every ion for every other, and found that the sum settles to a constant that depends only on the structure. Add ions to a growing crystal and count the energy yourself, to see whether there is something to gain from being big.
2 ions (one pair)
● Na⁺ ● Cl⁻ · drag to turn the crystal
Energy per ion pair (kJ/mol)-500-600-700-800-861 (a huge crystal)pair2³3³4³5³6³7³8³Size of the crystal
Step 1 of 3 · Start with a pairOne Na⁺ and one Cl⁻. Press Add a layer to grow it into a 2 × 2 × 2 cube of eight ions, then keep going. The plot shows the energy per ion pair.
Ions2
Energy per ion pair-493 kJ/mol
Compared with one pair× 1.00
Limit for a huge crystal× 1.7476
The maths
Coulomb's law: the energy of two charges is E = k q₁ q₂ / r (negative when the charges are opposite).
One Na⁺ and one Cl⁻ at r = 282 pm: E = −138,935 / 282 = -493 kJ/mol of pairs.
2 ions (1 pair): adding up every pair gives -493 kJ/mol of ion pairs.
Questions you might have (4)
Why does the energy level off?

Ions on the surface of the crystal have fewer neighbours than ions inside. In a small crystal most ions are on the surface, so the average is low. As the crystal grows, the fraction on the surface shrinks, and the average approaches the value for an ion in the middle of an endless crystal: 1.7476 pairs-worth.

Why is the sum 'tricky'?

Round one ion there are 6 opposite charges at distance 1, 12 like charges at distance √2, 8 opposite at √3, and so on, alternating. The terms get smaller only slowly, so the running total swings above and below the answer before settling. Evjen's trick of counting ions on the edge of the block as a fraction makes it converge quickly: the test suite checks it reaches 1.7476.

Where does 282 pm come from?

It is half the length of the edge of the NaCl unit cell, 564 pm, from a table of unit-cell sizes in Wikipedia's article on ionic radius. It is the centre-to-centre distance between neighbouring Na⁺ and Cl⁻ ions.

Is this the lattice energy?

It is nearly all of it. The lattice energy is the energy released when gaseous ions form the crystal, and this Coulomb sum is the main part. A small correction (the ions push back when pressed too close, the Born repulsion) trims about 12%: that gives −753 kJ/mol for NaCl, within 4% of the value from experiment, −786.

Run the experiment to see what it showed.
Experiment 4 · Why a hammer shatters salt

Why salt shatters

Salt is held together by strong forces, yet a tap with a hammer splits it. A metal takes the same blow and only dents. Why?

A grain of salt is a tiny cube because crystals of salt cleave along flat planes. Anyone who has crushed rock salt knows it shatters rather than bends, while a copper coin dents. That is odd: strong forces between particles should make a tough material. So what does the arrangement of charges in a crystal do when you try to slide one layer over another?
Material:
Drag the top two layers →Energy of the top block0123ions slid along
Step 1 of 3 · A small slipDrag the top two rows of the salt crystal sideways, about half an ion's width. The meter shows the energy compared with the intact crystal.
Layers slid0.00 ions
Energy change+0.00 units
Stateintact
The maths
Energy of the top block against the bottom block, in units of e²/(4πε₀r₀), where r₀ is the spacing between ions. Negative means the blocks attract.
Slid by 0.00 spacings: E = -1.19 (intact: -1.19, change: +0.00)
Questions you might have (3)
Why does the crystal split along a flat surface?

The planes of the lattice that line up when you slide by one ion are the planes where like charges meet. Real crystals of salt cleave along flat faces, which is why a grain of salt is a tiny cube.

Does that mean ionic compounds are weak?

No. They are hard and have high melting points because it is very hard to pull ions apart or push them together. Brittle describes only what happens when they are sheared. A crystal can be strong and brittle at once.

How was the energy found?

By adding up Coulomb's law for every pair of one ion from the top block and one from the bottom, for blocks two ions deep and nine wide. The meter shows the sum, and the numbers, like those in the previous experiment, are a model, in units of e²/(4πε₀r₀).

Run the experiment to see what it showed.
TheoryWhere does the energy come from?Add up the costs and the gains, step by step, for one mole of salt.
Theory 2 · Born, Haber and Fajans, 1919

Where the energy comes from

It costs energy to make Na⁺ and Cl⁻ from sodium and chlorine. Why does salt form at all?

A textbook says sodium “wants” to lose an electron. But losing an electron costs energy, and gaining one often returns only part of it, so the ions are less stable than the atoms. Why then does salt form? In 1919 Max Born and Fritz Haber, and independently Kasimir Fajans, saw how to account for it: go round a loop of steps you can measure, and the one step you cannot measure, the energy of the crystal, drops out. Do the accounting yourself, step by step, for one mole of salt.
Salt:
-1000-5000500Energy, kJ/molthe elements
Na(s) → Na(g) · costs 108 kJ/mol
Step 1 of 4 · Make the gas ionsPress the first button and keep pressing. Each step is a measured energy, from the table of elements or from NIST. Watch the staircase: the running total is the energy needed to make separate Na⁺ and Cl⁻ ions.
Lattice energies of twelve compounds (kJ/mol, literature)
TiO2
-12150charges ×8
MgO
-3795charges ×4
CaO
-3414charges ×4
SrO
-3217charges ×4
MgF2
-2922charges ×2
LiF
-1030charges ×1
NaCl
-786charges ×1
NaBr
-747charges ×1
NaI
-704charges ×1
CsCl
-657charges ×1
CsBr
-632charges ×1
CsI
-600charges ×1
Teal: 1+ with 1−. Violet: MgF₂. Orange: 2+ with 2− (MgO, CaO, SrO). TiO₂ (4+ and 2−) is off the scale at −12,150.
SaltNaCl
Cost of the gas ions…
Lattice energy U…
Formation ΔH_f…
The maths
Hess's law: the energy of a reaction is the same by any route. ΔH_f = ΔH_atom(M) + IE(M) + ΔH_atom(X) − EA(X) + U
Questions you might have (4)
Why can't the lattice energy be measured directly?

You cannot gather gaseous ions and watch them fall into a crystal. So chemists measure everything else in the cycle (the enthalpy of formation, the energies to make atoms, ionization energy and electron affinity) and use Hess's law to find the one missing piece. That is the Born–Haber cycle, from 1919.

Where do the numbers come from?

Ionization energies and electron affinities are from the table of elements used throughout this course. The energies to make gaseous atoms from the elements in their standard states, and the enthalpies of formation of the salts, were read by a script from the NIST Chemistry WebBook (the Cox, Wagman et al. CODATA values). The twelve lattice energies are from Wikipedia's lattice-energy article, citing Shriver and Atkins.

Why is electron affinity so small compared with ionization energy?

Chlorine releases 349 kJ/mol when it gains an electron, but removing an electron from sodium costs 496 kJ/mol. Each step alone is not in the salt's favour. It is the lattice, with +1 and −1 charges strongly attracted at short range, that tips the balance.

Is Na₂Cl or NaCl₂ possible? What about Mg⁺?

Every compound has its own accounting. A hypothetical MgCl would cost less to make (one fewer electron) but its lattice would be much weaker than MgCl₂, where Mg²⁺ pays a larger ionization cost and gets back a much bigger lattice energy. Real compounds are the ones where the net energy comes out lowest.

Work through it to see what it shows.
TheoryThe other kind of compoundShare electrons instead of passing them, and a different set of names.
Theory 3 · Lavoisier and colleagues, 1787

Naming the molecules

If a compound is not made of ions, how do you tell, and how do you name it?

Chemistry used to be full of names that told you nothing: oil of vitriol, butter of antimony, flowers of zinc. In 1787 Antoine Lavoisier, with Louis-Bernard Guyton de Morveau, Claude-Louis Berthollet and Antoine Fourcroy, proposed that a name should say what a substance is made of. Their system survives as the endings and Greek prefixes you will use here. Not everything is an ionic crystal, though: water, carbon dioxide and sugar are made of molecules, and they are named by different rules.
NaCl
CO₂
MgO
H₂O
CCl₄
KBr
NH₃
CaF₂
Step 1 of 3 · Ionic or molecular?Choose Ionic or Molecular for each formula, using the elements. A wrong answer will not be counted: check whether each element is a metal.
Sorted0 / 8
Molecules named0 / 5
Acids made0 / 4
The maths
Rule of thumb: a metal with a non-metal makes ions (an ionic compound). Non-metals together share electrons (a molecular compound).
NaCl: Na is a metal, Cl is a non-metal; ΔEN = |0.93 − 3.16| = 2.23; ionic character ≈ 71 %
Questions you might have (4)
Why do molecular compounds need prefixes when ionic compounds don't?

Sodium and chlorine can only make NaCl, because the ion charges fix the ratio. Carbon and oxygen can share electrons in different numbers, so they make both CO and CO₂, and nitrogen and oxygen make N₂O, NO, NO₂, N₂O₄ and N₂O₅. The prefix says which.

What about common names like water and ammonia?

A few molecules kept their old names: H₂O is water, NH₃ is ammonia, CH₄ is methane. They are not formed by the rules, so learn them as exceptions. By the rules H₂O would be "dihydrogen monoxide".

Why do the chlorine acids have four names?

Chlorine makes four oxyanions with different amounts of oxygen: ClO⁻ hypochlorite, ClO₂⁻ chlorite, ClO₃⁻ chlorate, ClO₄⁻ perchlorate. The acids are hypochlorous, chlorous, chloric and perchloric acid. The name tracks the number of oxygens, in that order.

Is HCl an acid when it's a gas?

As a gas it is a molecule and is named hydrogen chloride. Dissolved in water it releases H⁺ and is called hydrochloric acid. The name changes with the state, which is why the conductivity of HCl in water was so different from pure HCl.

Work through it to see what it shows.
PracticeProblemsNumbers from this unit, in the style of a college problem set.
Practice

Practice

Numbers from the experiments, in the style of a college problem set. Every problem has a hint and a worked solution.

Ionic formulas0 right of 0 · streak 0

How many ions are there in one formula unit of calcium chlorate?

← Previous unit3. Periodic Trends of the ElementsNext unit →5. Representing Molecules