How to write chemical formulas?

Writing formulas is a skill that all of chemistry in grades 7 and 8 is based on — from oxides to salts. Good news: you don't have to memorize formulas. All you need is valency and one method.

Empirical vs. structural formula

An empirical formula tells you how many atoms of each element are in a molecule (H₂O). A structural formula additionally shows how these atoms are connected (H–O–H).

Both are usually required on tests — so it's worth understanding the structure of the molecule, not just the notation.

Criss-cross method step by step

Let's write the formula for phosphorus(V) oxide:

  1. Write down the symbols and valencies: P(V) and O(II).
  2. Transfer the valencies criss-cross — the valency of phosphorus becomes the subscript of oxygen and vice versa.
  3. If possible, simplify the subscripts to the smallest whole numbers.
PV  OII
  ↘ ↙
P2O5

Second example — calcium oxide: Ca(II) and O(II) give Ca₂O₂ criss-cross, and after simplification CaO.

Checking the result

Multiply the number of atoms by the valency — the result must be the same on both sides:

FormulaElement 1Element 2Correct?
H₂O2 × I = 21 × II = 2✔
P₂O₅2 × V = 105 × II = 10✔
Al₂O₃2 × III = 63 × II = 6✔
„HO₂"1 × I = 12 × II = 4✘ — such a compound will not form

Common mistakes

Note: the criss-cross method works mechanically — it gives the correct notation, but it doesn't explain why it is so. Understanding comes when you see the bonds: each "hook" of an atom must have a pair. More on this in the article about element valency.

Practice on real molecules

On Cząsteczki.pl, you can build molecules from atoms like building blocks — and the program takes care of the valency for you. If the formula is incorrect, the atoms simply won't connect. This is the fastest way for the criss-cross method to stop being a magic trick and become obvious.

Build and see the bonds

WaterH₂O Carbon dioxideCO₂ Sulfur(IV) oxideSO₂ AmmoniaNH₃ MethaneCH₄ Hydrogen peroxideH₂O₂
🧪 Build your first formula in the game — for free Also read: element valency