Skip to content
Tutorials Center
My learning

Topics

Lesson 3 of 38 · Getting Started

Chemical Formulas and Naming

Write and read chemical formulas: subscripts, common ions, polyatomic ions, the criss-cross method for ionic compounds and prefixes for covalent compounds.

A chemical formula is a short, exact description of a substance. Before you can balance an equation, you must be able to write the correct formula for each substance, and you can only do that if you understand how formulas and names are built. This lesson gives you the rules for the two big families: ionic compounds and covalent (molecular) compounds.

Reading a formula

In a formula, element symbols tell you which atoms are present and subscripts tell you how many. A symbol with no subscript means one atom.

  • H₂O: 2 hydrogen atoms, 1 oxygen atom.
  • C₆H₁₂O₆ (glucose): 6 carbon, 12 hydrogen, 6 oxygen.
  • Ca(OH)₂: the subscript 2 outside the brackets multiplies everything inside, so 1 calcium, 2 oxygen, 2 hydrogen.
  • Al₂(SO₄)₃: 2 aluminum, 3 sulfur and 3 × 4 = 12 oxygen.

Counting atoms like this is the skill you will use over and over when balancing equations.

Python Count atoms in a formula with brackets

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Ionic compounds: the charge-balance rule

An ionic compound is made of positive and negative ions, and the whole compound must be electrically neutral. So the formula uses the smallest whole-number ratio of ions whose charges add up to zero.

Here are ions you should know. Metals in groups 1 and 2 and aluminum have predictable charges.

Cations Anions
Na⁺, K⁺, Ag⁺, NH₄⁺ (ammonium) Cl⁻, Br⁻, I⁻, F⁻
Mg²⁺, Ca²⁺, Zn²⁺, Cu²⁺ O²⁻, S²⁻
Al³⁺, Fe³⁺ OH⁻, NO₃⁻ (nitrate), HCO₃⁻
Fe²⁺ SO₄²⁻ (sulfate), CO₃²⁻ (carbonate)
PO₄³⁻ (phosphate)

Some metals, such as iron and copper, form more than one ion. The charge is shown with a Roman numeral in the name: iron(II) chloride contains Fe²⁺, iron(III) chloride contains Fe³⁺.

Criss-cross method. The numerical value of each ion's charge becomes the subscript of the other, then you reduce to the lowest ratio.

  • Calcium chloride: Ca²⁺ and Cl⁻ give Ca₁Cl₂, written CaCl₂.
  • Aluminum oxide: Al³⁺ and O²⁻ give Al₂O₃.
  • Magnesium oxide: Mg²⁺ and O²⁻ give Mg₂O₂, which reduces to MgO.

When a polyatomic ion needs a subscript greater than 1, put it in brackets: calcium nitrate is Ca(NO₃)₂, never CaNO₃₂. If the subscript is 1, leave the brackets off: sodium nitrate is NaNO₃.

Python Criss-cross formula builder

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Naming ionic compounds

Name the cation first, then the anion. A single-atom anion takes the ending -ide (chloride, oxide, sulfide). Polyatomic ions keep their own names (nitrate, sulfate, carbonate, hydroxide).

  • NaCl: sodium chloride
  • K₂S: potassium sulfide
  • CaCO₃: calcium carbonate
  • Fe₂O₃: iron(III) oxide (two Fe with a total of +6 balance three O²⁻)

Covalent compounds: prefixes

Compounds made only of non-metals are usually molecules. Their names use Greek prefixes to show the count of each atom:

Number Prefix Number Prefix
1 mono- 6 hexa-
2 di- 7 hepta-
3 tri- 8 octa-
4 tetra- 9 nona-
5 penta- 10 deca-

Drop "mono-" on the first element. So CO is carbon monoxide, CO₂ is carbon dioxide, N₂O₄ is dinitrogen tetroxide and SF₆ is sulfur hexafluoride. Common compounds such as water (H₂O), ammonia (NH₃) and methane (CH₄) keep their traditional names.

Ask yourself first: metal plus non-metal (ionic, use charges) or two non-metals (covalent, use prefixes)? Choosing the right family is half the job.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. How many oxygen atoms are in Ca(OH)₂?

    The subscript 2 applies to everything in the brackets, so there are 2 O and 2 H.
  2. 2. What is the formula of aluminum sulfate, from Al³⁺ and SO₄²⁻?

    Two Al³⁺ give +6 and three SO₄²⁻ give −6, so the compound is neutral: Al₂(SO₄)₃.
  3. 3. What is the name of N₂O₄?

    Covalent compounds use prefixes for both elements: di- for two N and tetra- for four O.
  4. 4. In the name iron(III) chloride, the Roman numeral shows

    The Roman numeral gives the charge of the metal ion, here Fe³⁺, so the formula is FeCl₃.

Summary

  • Subscripts count atoms; a subscript outside brackets multiplies everything inside.
  • Ionic compounds are neutral: balance the charges with the smallest whole-number ratio (the criss-cross method).
  • Name ionic compounds cation first; use Roman numerals for metals with more than one charge.
  • Covalent compounds use Greek prefixes.

Next: Physical and Chemical Changes