These Writing formulas of ionic compounds notes explain the idea step by step, with 4 worked examples and ten questions with solutions. After this topic you will be able to write the formula of any simple ionic compound from its ions or its name by balancing charge, use brackets correctly for polyatomic ions, and count the ions and atoms in a formula unit.
Two friends share a bill: what one owes, the other must pay, and the account closes at zero. An ionic compound works the same way. A pinch of salt does not give you an electric shock, because the solid has no net charge. The positive charge of all its cations is exactly cancelled by the negative charge of all its anions. This one fact fixes the formula. You do not memorise CaCl2 or Al2O3; you work them out from the charges of the ions learnt in Topic 1.
Charge balance
(number of cations×cation charge)+(number of anions×anion charge)=0
Use the smallest whole numbers of ions that satisfy this. Those numbers become the subscripts.
Take magnesium chloride. The ions are Mg2+ and Cl−. One Mg2+ carries +2. One Cl− cancels only half of it, so two are needed: (+2)+2(−1)=0. The formula is MgCl2. For aluminium oxide the ions are Al3+ and O2−. The smallest total that both 3 and 2 divide is 6, their LCM. Two Al3+ give +6 and three O2− give −6, so the formula is Al2O3.
Each block is as long as the charge of the ion. The formula is right when the positive row and the negative row are equally long.
Three rules of writing: the cation is written first and the anion second; the number of each ion is a subscript, and 1 is not written; the charges themselves are not shown in the finished formula.
The criss-cross method
The LCM always works, but there is a quicker way to get the same numbers. Write the two ions side by side. Take the number of the cation charge, without its sign, and make it the subscript of the anion. Take the number of the anion charge and make it the subscript of the cation. The numbers cross over.
Criss-cross. The 3 of Al3+ goes to O and the 2 of O2− goes to Al. Each subscript has the colour of the charge it came from (red from the cation, blue from the anion); the arrows show the same path.
Why does it work? With Al3+ and O2− the crossed formula has 2 cations of charge 3 and 3 anions of charge 2. The positive total is 2×3 and the negative total is 3×2. These are the same product, so they must cancel.
How to write the formula of an ionic compound
1Write the cation and the anion with their charges, cation first.
2If the two charges are equal in size (such as +2 and −2), one of each is enough. Write them together and stop.
3Otherwise cross the charge numbers over to become subscripts. Leave the signs behind.
4If the two subscripts have a common factor, divide both by it.
5If a polyatomic ion has a subscript greater than 1, put the ion in brackets and write the subscript outside.
6Check: total positive charge + total negative charge = 0.
Reducing to the simplest ratio
Criss-cross on Mg2+ and O2− gives Mg2O2. But a formula unit is the simplest ratio of ions, and 2 : 2 is the same as 1 : 1. So the formula is MgO. In the same way Sn4+ and O2− give Sn2O4, which reduces to SnO2.
Criss-cross first, then divide the subscripts by their common factor.
Common mistake
Reduce only the numbers of ions, never the inside of an ion. A few ions contain two atoms of the same element, such as peroxide O22− and mercury(I) Hg22+. So Na2O2 and Hg2Cl2 are already correct and are not cut down to NaO or HgCl. Topic 9 returns to these.
Brackets for polyatomic ions
A polyatomic ion is a bonded group of atoms that carries a charge and moves as one unit. In a formula it is treated exactly like a single ion. Topic 6 studies these ions in detail. For now, learn the six in the table.
Name
Formula
Charge
ammonium
NH4+
+1
hydroxide
OH−
−1
nitrate
NO3−
−1
carbonate
CO32−
−2
sulfate
SO42−
−2
phosphate
PO43−
−3
If the formula needs two or more of a polyatomic ion, the whole ion goes inside brackets and the number is written outside. Calcium hydroxide needs one Ca2+ and two OH−, so it is Ca(OH)2. The subscript outside multiplies everything inside. If only one such ion is needed, no brackets are used: NaOH, CaCO3. Monatomic ions never take brackets: CaCl2, not Ca(Cl)2.
Without brackets the subscript 2 acts only on H. The formula then shows the wrong atoms and the charges no longer balance.
Common mistake
Never change the subscripts inside a polyatomic ion. The 4 in SO42− is part of the ion, like the letters of a name. Aluminium sulfate is Al2(SO4)3, not Al2S3O12 and not Al2SO43.
From a name to a formula
The name of an ionic compound has two words: the cation, then the anion. In the names used in this chapter it carries no prefixes such as di- or tri-, so the name does not tell you how many of each ion there are. You find the numbers yourself by balancing charge. When the metal can have more than one charge, a Roman numeral in brackets after its name gives the charge of the cation: iron(III) means Fe3+ and copper(I) means Cu+. Topic 3 explains this Stock notation.
The four steps from a name to a formula, shown for chromium(III) sulfate.Formulas made by three cations with three anions. Check each box by balancing charge. Note CaSO4 and AlPO4: equal charges, one of each.
Counting ions and atoms in a formula unit
Questions often ask how many ions or atoms one formula unit contains. To count ions, split the formula back into its cations and anions; a polyatomic ion counts as one ion, however many atoms it has. To count atoms, multiply each subscript inside a bracket by the subscript outside.
One formula unit of aluminium sulfate: 5 ions, 17 atoms, total charge zero.
Tip
A ten-second check for any ionic formula: multiply each subscript by the charge of its ion and add. If the answer is not zero, the formula is wrong. For Ca3(PO4)2: 3(+2)+2(−3)=0.
Worked examples
Worked example 1: two simple ions
Write the formula of the compound of calcium and nitrogen (calcium nitride).
1Calcium is in Group 2: Ca2+. Nitrogen is in Group 15: 15−18=−3, so N3−.
2Cross the numbers: the 2 of calcium goes to N, the 3 of nitride goes to Ca. This gives Ca3N2.
33 and 2 have no common factor, so nothing is reduced.
4Check: 3(+2)+2(−3)=+6−6=0.
Answer: Ca3N2
Worked example 2: a formula that must be reduced
Write the formula of lead(IV) oxide.
1The Roman numeral gives the cation charge: Pb4+. Oxide is O2−.
2Criss-cross gives Pb2O4.
32 and 4 have the common factor 2. Divide both: PbO2.
4Check: (+4)+2(−2)=0.
Answer: PbO2
Worked example 3: two polyatomic ions
Write the formula of ammonium phosphate. How many ions and how many atoms are there in one formula unit?
1Ammonium is NH4+ and phosphate is PO43−.
2Balance: three NH4+ give +3, one PO43− gives −3.
3Three ammonium ions need brackets; one phosphate ion does not: (NH4)3PO4.
4Ions: 3 cations + 1 anion = 4 ions.
5Atoms: each NH4+ has 5 atoms, so 3×5=15. PO43− has 5 atoms. Total 15+5=20.
Answer: (NH4)3PO4; 4 ions and 20 atoms per formula unit.
Worked example 4: an unknown metal
A metal M forms the carbonate M2CO3. M has only one charge. Write the formulas of its phosphate and its nitride.
1Find the charge of M from the known formula. Carbonate is CO32−, charge −2.
2Two M ions must carry +2 in total, so each is M+.
3Phosphate is PO43−. Three M+ balance one phosphate: M3PO4. No brackets, because there is only one phosphate ion.
4Nitride is N3−. Three M+ balance one nitride: M3N.
5Check: 3(+1)+(−3)=0 in both.
Answer: Phosphate M3PO4; nitride M3N.
Key points
An ionic compound is neutral: total positive charge + total negative charge = 0.
Write the cation first. Subscripts give the numbers of ions; the charges are not shown in the final formula.
Criss-cross: the charge number of each ion becomes the subscript of the other ion.
Reduce the subscripts to the simplest ratio (Mg2O2 becomes MgO), but never change the inside of an ion.
Put a polyatomic ion in brackets only when the formula needs more than one of it: Ca(OH)2, but NaOH.
An ionic name has no number prefixes; a Roman numeral gives the charge of the cation, and you work out the numbers of ions by balancing.
When counting ions, a polyatomic ion counts as one. When counting atoms, multiply the inside of a bracket by the subscript outside.
Ten Writing formulas of ionic compounds questions
Try each one on paper first, then open the answer and the worked solution under it.
1Starter
What is the formula of the compound formed by barium ions, Ba2+, and nitride ions, N3−?
ABa2N3
BBaN
CBa3N2
DBaN2
Show answer and solution
Answer: C
Cross the charge numbers: the 2 of Ba2+ becomes the subscript of N and the 3 of N3− becomes the subscript of Ba. Formula: Ba3N2. Check: 3(+2)+2(−3)=0. Ba2N3 comes from keeping each number with its own ion instead of crossing; its charge is 2(+2)+3(−3)=−5. Answer: Ba3N2.
2Starter
The block picture shows one formula unit of a compound. Each block is as long as the charge of the ion. Which compound fits the picture?
ACa3N2
BAlCl3
CNa2S
DCr2S3
Show answer and solution
Answer: D
The picture has 2 cations of charge +3 and 3 anions of charge −2, so the formula is M2X3. Cr2S3 is made of two Cr3+ and three S2−: it fits. Ca3N2 has three +2 cations and two −3 anions, the picture turned upside down. AlCl3 has one +3 cation and three −1 anions. Na2S has two +1 cations and one −2 anion. Answer: Cr2S3.
3Starter
Which is the correct formula of magnesium nitrate? (Ions: Mg2+ and NO3−)
AMg(NO3)2
BMgNO32
CMg2NO3
DMgNO3
Show answer and solution
Answer: A
One Mg2+ (+2) needs two NO3− (−1 each). Two nitrate ions must go in brackets: Mg(NO3)2. MgNO32 has no brackets, so it reads as 32 oxygen atoms. Mg2NO3 puts the 2 on the wrong ion: its charge is +4−1=+3. MgNO3 has charge +2−1=+1. Answer: Mg(NO3)2.
4Starter, numerical answer
Ammonium sulfate is made of NH4+ and SO42− ions. How many ions are there in one formula unit of ammonium sulfate? Count each polyatomic ion as one ion. Give the answer as an integer.
Numerical answer.
Show answer and solution
Answer: 3
Balance the charge: two NH4+ (+2) for one SO42− (−2). The formula is (NH4)2SO4. Ions: 2 ammonium + 1 sulfate = 3. (Counting atoms instead would give 15.) Answer: 3.
5Exam level
Four students each combined a pair of ions into a formula, as shown on cards P, Q, R and S. Which card shows a correctly written formula?
AP
BQ
CR
DS
Show answer and solution
Answer: B
P: Mg2O2 is not reduced; equal charges give MgO. Q: two Al3+ (+6) and three SO42− (−6), with brackets around the sulfate: Al2(SO4)3 is correct. R: two hydroxide ions need brackets, Ca(OH)2; CaOH2 shows only one O. S: the numbers were not crossed correctly; three NH4+ balance one PO43−, giving (NH4)3PO4. Answer: Q.
6Exam level
A metal M has only one charge and forms the nitride M3N2. What is the formula of its phosphate? (Phosphate is PO43−.)
AM3(PO4)2
BMPO4
CM2(PO4)3
DM3PO4
Show answer and solution
Answer: A
Nitride is N3−. Two nitride ions carry −6, so three M ions carry +6 and each is M2+. With PO43−: cross the numbers to get three M2+ and two PO43−, M3(PO4)2. Check: 3(+2)+2(−3)=0. MPO4 would need M3+, M3PO4 would need M+, and M2(PO4)3 has the numbers uncrossed. Phosphate has the same charge as nitride, so the numbers 3 and 2 stay the same. Answer: M3(PO4)2.
7Exam level
The grid shows formulas written for four combinations of a cation (row) and an anion (column). They are labelled P, Q, R and S. Which one is wrong?
AP
BQ
CR
DS
Show answer and solution
Answer: C
P: three K+ and one PO43−, K3PO4, correct. Q: Ca2+ and SO42− have equal charges, so CaSO4 is correct. R: Al3+ and SO42− need two cations (+6) and three anions (−6), Al2(SO4)3; the formula Al(SO4)3 has charge +3−6=−3, so it is wrong. S: Al3+ and PO43− have equal charges, so AlPO4 is correct and needs no brackets. Answer: R.
8Exam level, numerical answer
Write the formula of aluminium nitrate from the ions Al3+ and NO3−. How many atoms are there in one formula unit? Give the answer as an integer.
Numerical answer.
Show answer and solution
Answer: 13
One Al3+ needs three NO3−: Al(NO3)3. Atoms: 1 Al, 3×1=3 N and 3×3=9 O. Total =1+3+9=13. Forgetting to multiply the oxygen by the outside subscript gives 1+3+3=7; counting ions gives 4. Answer: 13.
9Challenge
A metal M has only one charge. One formula unit of its sulfate contains 17 atoms in total. What is the formula of the oxide of M? (Sulfate is SO42−, oxide is O2−.)
AMO
BM2O3
CM3O2
DMO2
Show answer and solution
Answer: B
Try each possible charge of M and count atoms in the sulfate. M+: M2SO4, 2+5=7 atoms. M2+: MSO4, 1+5=6 atoms. M3+: M2(SO4)3, 2+3×5=17 atoms. M4+: M(SO4)2, 1+2×5=11 atoms. Only M3+ gives 17. For the oxide, cross M3+ with O2−: M2O3. Check: 2(+3)+3(−2)=0. M3O2 has the numbers uncrossed. Answer: M2O3.
10Challenge, numerical answer
The figure shows nine names with the formulas a student wrote. Count the formulas that are fully correct. A formula is correct only if (i) the charges balance, (ii) the numbers of ions are in the simplest ratio, and (iii) brackets are written around a polyatomic ion when the formula has more than one of it, and nowhere else (not around a single polyatomic ion, and never around a monatomic ion). Ions: Na+, K+, NH4+, Mg2+, Ca2+, Ba2+, Zn2+, Al3+; Cl−, OH−, NO3−, O2−, S2−, CO32−, N3−, PO43−. Give the answer as an integer.
Numerical answer.
Show answer and solution
Answer: 5
1. Na2CO3: 2(+1)−2=0, correct. 2. Ca(OH)2: +2−2=0, brackets needed, correct. 3. Mg2O2: not the simplest ratio; it should be MgO. Wrong. 4. Ba(Cl)2: chloride is monatomic and takes no brackets; it should be BaCl2. Wrong. 5. (NH4)2S: 2(+1)−2=0, correct. 6. K(NO3): only one nitrate, so no brackets; it should be KNO3. Wrong. 7. AlN: +3−3=0, correct. 8. ZnPO4: +2−3=−1, not balanced; it should be Zn3(PO4)2. Wrong. 9. Al(OH)3: +3−3=0, correct. Correct formulas: 1, 2, 5, 7 and 9. Answer: 5.