Topic 2 of 11

Writing formulas of ionic compounds notes

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.

Why a formula must balance

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 or ; you work them out from the charges of the ions learnt in Topic 1.

Charge balance

Use the smallest whole numbers of ions that satisfy this. Those numbers become the subscripts.

Take magnesium chloride. The ions are and . One carries . One cancels only half of it, so two are needed: . The formula is . For aluminium oxide the ions are and . The smallest total that both 3 and 2 divide is 6, their LCM. Two give and three give , so the formula is .

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 goes to O and the 2 of 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 and the crossed formula has 2 cations of charge 3 and 3 anions of charge 2. The positive total is and the negative total is . These are the same product, so they must cancel.

How to write the formula of an ionic compound
  1. 1Write the cation and the anion with their charges, cation first.
  2. 2If the two charges are equal in size (such as and ), one of each is enough. Write them together and stop.
  3. 3Otherwise cross the charge numbers over to become subscripts. Leave the signs behind.
  4. 4If the two subscripts have a common factor, divide both by it.
  5. 5If a polyatomic ion has a subscript greater than 1, put the ion in brackets and write the subscript outside.
  6. 6Check: total positive charge + total negative charge = 0.

Reducing to the simplest ratio

Criss-cross on and gives . But a formula unit is the simplest ratio of ions, and 2 : 2 is the same as 1 : 1. So the formula is . In the same way and give , which reduces to .

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 and mercury(I) . So and 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.

NameFormulaCharge
ammonium
hydroxide
nitrate
carbonate
sulfate
phosphate

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 and two , so it is . The subscript outside multiplies everything inside. If only one such ion is needed, no brackets are used: , . Monatomic ions never take brackets: , not .

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 is part of the ion, like the letters of a name. Aluminium sulfate is , not and not .

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 and copper(I) means . 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 and : 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 : .

Worked examples

Worked example 1: two simple ions

Write the formula of the compound of calcium and nitrogen (calcium nitride).

  1. 1Calcium is in Group 2: . Nitrogen is in Group 15: , so .
  2. 2Cross the numbers: the 2 of calcium goes to N, the 3 of nitride goes to Ca. This gives .
  3. 33 and 2 have no common factor, so nothing is reduced.
  4. 4Check: .
Answer:
Worked example 2: a formula that must be reduced

Write the formula of lead(IV) oxide.

  1. 1The Roman numeral gives the cation charge: . Oxide is .
  2. 2Criss-cross gives .
  3. 32 and 4 have the common factor 2. Divide both: .
  4. 4Check: .
Answer:
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?

  1. 1Ammonium is and phosphate is .
  2. 2Balance: three give , one gives .
  3. 3Three ammonium ions need brackets; one phosphate ion does not: .
  4. 4Ions: 3 cations + 1 anion = 4 ions.
  5. 5Atoms: each has 5 atoms, so . has 5 atoms. Total .
Answer: ; 4 ions and 20 atoms per formula unit.
Worked example 4: an unknown metal

A metal M forms the carbonate . M has only one charge. Write the formulas of its phosphate and its nitride.

  1. 1Find the charge of M from the known formula. Carbonate is , charge .
  2. 2Two M ions must carry in total, so each is .
  3. 3Phosphate is . Three balance one phosphate: . No brackets, because there is only one phosphate ion.
  4. 4Nitride is . Three balance one nitride: .
  5. 5Check: in both.
Answer: Phosphate ; nitride .
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 ( becomes ), but never change the inside of an ion.
  • Put a polyatomic ion in brackets only when the formula needs more than one of it: , but .
  • 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, , and nitride ions, ?
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: C

Cross the charge numbers: the 2 of becomes the subscript of N and the 3 of becomes the subscript of Ba. Formula: . Check: . comes from keeping each number with its own ion instead of crossing; its charge is . Answer: .
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?
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: D

The picture has 2 cations of charge and 3 anions of charge , so the formula is . is made of two and three : it fits. has three cations and two anions, the picture turned upside down. has one cation and three anions. has two cations and one anion. Answer: .
3Starter
Which is the correct formula of magnesium nitrate? (Ions: and )
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: A

One () needs two ( each). Two nitrate ions must go in brackets: . has no brackets, so it reads as 32 oxygen atoms. puts the 2 on the wrong ion: its charge is . has charge . Answer: .
4Starter, numerical answer
Ammonium sulfate is made of and 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 () for one (). The formula is . 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?
  1. AP
  2. BQ
  3. CR
  4. DS
Show answer and solution

Answer: B

P: is not reduced; equal charges give . Q: two () and three (), with brackets around the sulfate: is correct. R: two hydroxide ions need brackets, ; shows only one O. S: the numbers were not crossed correctly; three balance one , giving . Answer: Q.
6Exam level
A metal M has only one charge and forms the nitride . What is the formula of its phosphate? (Phosphate is .)
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: A

Nitride is . Two nitride ions carry , so three M ions carry and each is . With : cross the numbers to get three and two , . Check: . would need , would need , and has the numbers uncrossed. Phosphate has the same charge as nitride, so the numbers 3 and 2 stay the same. Answer: .
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?
  1. AP
  2. BQ
  3. CR
  4. DS
Show answer and solution

Answer: C

P: three and one , , correct. Q: and have equal charges, so is correct. R: and need two cations () and three anions (), ; the formula has charge , so it is wrong. S: and have equal charges, so is correct and needs no brackets. Answer: R.
8Exam level, numerical answer
Write the formula of aluminium nitrate from the ions and . How many atoms are there in one formula unit? Give the answer as an integer.

Numerical answer.

Show answer and solution

Answer: 13

One needs three : . Atoms: 1 Al, N and O. Total . Forgetting to multiply the oxygen by the outside subscript gives ; 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 , oxide is .)
  1. A
  2. B
  3. C
  4. D
Show answer and solution

Answer: B

Try each possible charge of M and count atoms in the sulfate. : , atoms. : , atoms. : , atoms. : , atoms. Only gives 17. For the oxide, cross with : . Check: . has the numbers uncrossed. Answer: .
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: , , , , , , , ; , , , , , , , . Give the answer as an integer.

Numerical answer.

Show answer and solution

Answer: 5

1. : , correct. 2. : , brackets needed, correct. 3. : not the simplest ratio; it should be . Wrong. 4. : chloride is monatomic and takes no brackets; it should be . Wrong. 5. : , correct. 6. : only one nitrate, so no brackets; it should be . Wrong. 7. : , correct. 8. : , not balanced; it should be . Wrong. 9. : , correct. Correct formulas: 1, 2, 5, 7 and 9. Answer: 5.