TExcelTAD
Home › Atomic Structure, Bonding & Stoichiometry › Writing Formulas from Ions

Writing Chemical Formulas

A question to start

The label on a tube of toothpaste lists sodium fluoride, a bottle of antacid lists calcium carbonate and aluminium hydroxide. Why is it NaF\ce{NaF} but CaCOX3\ce{CaCO3} and Al(OH)X3\ce{Al(OH)3}? Can you write the formula of any ionic compound just from its name?

The idea

An ionic compound has no overall charge: the total positive charge of the cations equals the total negative charge of the anions. A chemical formula (công thức hóa học) gives the simplest whole-number ratio of ions.

Quantity Symbol Unit
charge of the cation, anion +a+a, −b-b elementary charges
number of cations, anions in the formula xx, yy none
x×a=y×b(total positive charge = total negative charge)x \times a = y \times b \qquad \text{(total positive charge = total negative charge)}

Common ions

Cations Anions
NaX+\ce{Na+}, KX+\ce{K+}, AgX+\ce{Ag+} +1+1 ClX−\ce{Cl-}, BrX−\ce{Br-}, FX−\ce{F-} −1-1
NHX4X+\ce{NH4+} (ammonium) +1+1 OHX−\ce{OH-} (hydroxide), NOX3X−\ce{NO3-} (nitrate) −1-1
MgX2+\ce{Mg^2+}, CaX2+\ce{Ca^2+}, BaX2+\ce{Ba^2+}, ZnX2+\ce{Zn^2+} +2+2 OX2−\ce{O^2-}, SX2−\ce{S^2-} −2-2
FeX2+\ce{Fe^2+} iron(II), CuX2+\ce{Cu^2+} copper(II) +2+2 SOX4X2−\ce{SO4^2-} (sulfate), COX3X2−\ce{CO3^2-} (carbonate) −2-2
AlX3+\ce{Al^3+}, FeX3+\ce{Fe^3+} iron(III) +3+3 POX4X3−\ce{PO4^3-} (phosphate) −3-3

Groups of atoms with a charge, such as SOX4X2−\ce{SO4^2-}, are polyatomic ions (ion đa nguyên tử). They stay together; put them in brackets when more than one is needed: Al(OH)X3\ce{Al(OH)3}, not AlOX3HX3\ce{AlO3H3}.

The criss-cross method

Write the ions, then let the size of each charge become the other ion's subscript. Reduce to the simplest ratio.

Al3+O2-Al2O32(+3) + 3(-2) = 0Ca2+PO43-Ca3(PO4)23(+2) + 2(-3) = 0

Worked examples

Example 1: aluminium oxide. Write the formula and check the charges.

  • Given: AlX3+\ce{Al^3+} and OX2−\ce{O^2-}.
  • Find: xx and yy.
  • Formula: x×3=y×2x \times 3 = y \times 2.
  • Solve: criss-cross: x=2x = 2, y=3y = 3.
  • Answer: AlX2OX3\ce{Al2O3}.
  • Check: 2×(+3)+3×(−2)=+6−6=02 \times (+3) + 3 \times (-2) = +6 - 6 = 0.

Example 2: calcium carbonate. Write the formula of calcium carbonate and count its atoms.

  • Given: CaX2+\ce{Ca^2+}, COX3X2−\ce{CO3^2-}.
  • Solve: criss-cross gives CaX2(COX3)X2\ce{Ca2(CO3)2}; reduce 2:22 : 2 to 1:11 : 1.
  • Answer: CaCOX3\ce{CaCO3}: 11 Ca, 11 C, 33 O, 55 atoms per formula unit; Mr=40+12+3×16=100M_r = 40 + 12 + 3 \times 16 = 100.
  • Check: the simulation counts the same atoms and the same Mr=100M_r = 100.
CaCO3calcium carbonate (ionic compound)2−Ca2+COO−O−11123calciumcarbonoxygenatomcount× ArmassCa1× 4040C1× 1212O3× 1648atoms5Mr100Mr = sum of (count × Ar)

Example 3: brackets. Write calcium phosphate and ammonium sulfate.

  • Solve: CaX2+\ce{Ca^2+} and POX4X3−\ce{PO4^3-}: 3×(+2)=2×(−3)3 \times (+2) = 2 \times (-3) in size, so CaX3(POX4)X2\ce{Ca3(PO4)2}. NHX4X+\ce{NH4+} and SOX4X2−\ce{SO4^2-}: (NHX4)X2SOX4\ce{(NH4)2SO4}.
  • Answer: CaX3(POX4)X2\ce{Ca3(PO4)2} (1313 atoms), (NHX4)X2SOX4\ce{(NH4)2SO4} (1515 atoms).
  • Check: CaX3(POX4)X2\ce{Ca3(PO4)2}: 3×2−2×3=03 \times 2 - 2 \times 3 = 0.

Example 4: from the formula back to the charge. What is the charge of iron in FeX2OX3\ce{Fe2O3}?

  • Solve: 3×(−2)=−63 \times (-2) = -6, shared by 22 Fe: each is +3+3.
  • Answer: FeX3+\ce{Fe^3+}: the compound is iron(III) oxide.

Molecular formulas

Covalent compounds have no ions; their formulas count the atoms in one molecule, often guided by the valence (number of bonds): H 11, O 22, N 33, C 44. So hydrogen and oxygen give HX2O\ce{H2O}, nitrogen and hydrogen NHX3\ce{NH3}.

Try it (safe): ion cards

You need: card, scissors, a pen.

  1. Cut out cards for NaX+\ce{Na+}, MgX2+\ce{Mg^2+}, AlX3+\ce{Al^3+} (one tab sticking out per ++) and ClX−\ce{Cl-}, OX2−\ce{O^2-} (one notch per −-).
  2. Combine cards until every tab fits a notch. Write the formula of each fit.

What you should see: NaCl\ce{NaCl}, MgClX2\ce{MgCl2}, AlClX3\ce{AlCl3}, NaX2O\ce{Na2O}, MgO\ce{MgO}, AlX2OX3\ce{Al2O3}. Why: tabs and notches match only when the total charge is zero.

Common mistakes

  • Not reducing: MgX2OX2\ce{Mg2O2} should be MgO\ce{MgO}.
  • Forgetting brackets: CaOHX2\ce{CaOH2} means something else; write Ca(OH)X2\ce{Ca(OH)2}.
  • Changing a polyatomic ion: sulfate is always SOX4X2−\ce{SO4^2-}; never write SOX2\ce{SO2} for it.
  • Writing the charge in the formula: NaX+ClX−\ce{Na^+Cl^-} is shown as NaCl\ce{NaCl}.

Practice

  1. Write the formulas of potassium oxide, magnesium nitrate and iron(III) hydroxide.
Answer

KX2O\ce{K2O}, Mg(NOX3)X2\ce{Mg(NO3)2}, Fe(OH)X3\ce{Fe(OH)3}.

  1. What is the charge of copper in CuX2O\ce{Cu2O} and in CuO\ce{CuO}?
Answer

CuX2O\ce{Cu2O}: +1+1 (two Cu share +2+2). CuO\ce{CuO}: +2+2.

  1. How many atoms are in one formula unit of AlX2(SOX4)X3\ce{Al2(SO4)3}?
Answer

2+3×(1+4)=172 + 3 \times (1 + 4) = 17.

Test yourself

What is the formula of magnesium chloride?

  1. MgCl\ce{MgCl}
  2. MgClX2\ce{MgCl2}
  3. MgX2Cl\ce{Mg2Cl}
  4. MgX2ClX3\ce{Mg2Cl3}

What is the formula of aluminium sulfate?

  1. AlSOX4\ce{AlSO4}
  2. AlX3(SOX4)X2\ce{Al3(SO4)2}
  3. AlX2(SOX4)X3\ce{Al2(SO4)3}
  4. AlX2SOX4\ce{Al2SO4}

In FeX2(SOX4)X3\ce{Fe2(SO4)3}, what is the charge on each iron ion?

  1. +1+1
  2. +2+2
  3. +3+3
  4. +6+6

How many oxygen atoms are in one formula unit of Ca(NOX3)X2\ce{Ca(NO3)2}?

  1. 33
  2. 55
  3. 66
  4. 99