How to Read a Chemical Formula
Decode subscripts, parentheses, coefficients, charges and hydrate dots so you can count atoms in any common chemical formula correctly.
Key takeaways
- A subscript counts only the symbol or bracketed group immediately before it.
- A subscript after parentheses multiplies every atom inside them.
- A coefficient in front of a formula multiplies the entire formula and is not part of the substance's identity.
- A superscript such as 2+ or − gives the net charge of an ion.
- A formula for an ionic or network solid gives a ratio of atoms, while a molecular formula counts atoms in one molecule.
A chemical formula tells you which elements a substance contains and in what numbers. Each element appears as a symbol, and a small number written below and after the symbol, the subscript, says how many atoms of that element there are. No subscript means one.
So H₂SO₄, sulfuric acid, contains two hydrogen atoms, one sulfur atom and four oxygen atoms. Once you know what parentheses, dots, charges and large leading numbers do, you can read nearly any formula in an introductory course.
Element symbols come first
Every element has a symbol of one or two letters. The first letter is always a capital, and a second letter, if present, is lowercase. That rule lets you split a formula without spaces.
CO is a carbon atom joined to an oxygen atom, the compound carbon monoxide. Co is a single element, cobalt. Likewise, NO is a compound of nitrogen and oxygen, while No is the element nobelium.
Some symbols come from older names, such as Na for sodium (natrium), K for potassium (kalium) and Fe for iron (ferrum). How element symbols were chosen tells that story.
Subscripts
A subscript applies to the symbol directly to its left and nothing else.
| Formula | Name | Atoms present |
|---|---|---|
| H₂O | water | 2 H, 1 O |
| NH₃ | ammonia | 1 N, 3 H |
| CO₂ | carbon dioxide | 1 C, 2 O |
| C₆H₁₂O₆ | glucose | 6 C, 12 H, 6 O |
| Fe₂O₃ | iron(III) oxide | 2 Fe, 3 O |
Changing a subscript changes the substance. H₂O is water and H₂O₂ is hydrogen peroxide, which behaves very differently. This is the reason you cannot alter subscripts to balance an equation.
Several elements normally exist as molecules of more than one atom. Hydrogen, nitrogen, oxygen and the halogens appear as H₂, N₂, O₂, F₂, Cl₂, Br₂ and I₂. White phosphorus is P₄ and the common form of sulfur is S₈.
Parentheses and brackets
Parentheses group atoms that belong together, often a polyatomic ion, a charged cluster of atoms. A subscript outside the parentheses multiplies everything inside.
Ca(NO₃)₂ calcium nitrate
Ca: 1
N: 1 × 2 = 2
O: 3 × 2 = 6
total atoms: 9
(NH₄)₂SO₄ ammonium sulfate
N: 1 × 2 = 2
H: 4 × 2 = 8
S: 1
O: 4
total atoms: 15 Why not write CaN₂O₆? The count would be right, but the grouping shows that the compound contains two nitrate ions. That structure predicts how it behaves in water, where it separates into Ca²⁺ and two NO₃⁻ ions.
Square brackets are used around larger units, especially coordination complexes. In [Cu(NH₃)₄]SO₄, the bracket holds a copper ion with four ammonia molecules attached, and sulfate sits outside. Counting gives 1 Cu, 4 N, 12 H, 1 S and 4 O.
Coefficients
A large number in front of a formula, a coefficient, multiplies the whole thing. It appears mainly in balanced equations.
3 Al₂(SO₄)₃
Al: 3 × 2 = 6
S: 3 × 1 × 3 = 9
O: 3 × 4 × 3 = 36
total atoms: 51 Work from the inside out: first the subscript inside the group, then the one outside the parentheses, and finally the coefficient.
A coefficient says how many units, or how many moles of units, you have. 2 H₂O means two water molecules. H₄O₂ would mean something else entirely, a single imaginary molecule with six atoms.
Dots for hydrates
Many crystalline compounds hold water in a fixed proportion. These are hydrates, written with a centered dot. CuSO₄·5H₂O is copper(II) sulfate pentahydrate, the familiar blue crystal. The dot does not mean multiplication in the algebra sense. It joins the salt and its water, and the 5 applies to the whole H₂O that follows.
CuSO₄·5H₂O
Cu: 1
S: 1
O: 4 + 5 = 9
H: 5 × 2 = 10
total atoms: 21 Heating drives the water off and leaves the anhydrous (water-free) salt, which for copper sulfate is nearly white. See finding the formula of a hydrate.
Charges, states and isotopes
A superscript at the upper right gives net charge. Na⁺ has lost one electron, O²⁻ has gained two, and SO₄²⁻ is a group of five atoms carrying two extra electrons altogether. The charge belongs to the whole ion, not only to the last atom.
Labels in parentheses after a formula give physical state: (s) solid, (l) liquid, (g) gas and (aq) dissolved in water. NaCl(s) is table salt in the jar, and NaCl(aq) is salt solution.
Numbers at the upper left of a symbol give mass number, the total of protons and neutrons. ¹⁴C is carbon-14. A lower left number, when shown, is the atomic number. Do not confuse these with subscripts on the right, which count atoms.
Molecules, formula units and structure
Not every formula describes a molecule.
- A molecular formula such as C₆H₁₂O₆ counts the atoms in one actual molecule.
- A formula unit such as NaCl or CaF₂ gives the simplest ratio of ions in a crystal that has no separate molecules.
- Network solids work the same way. SiO₂ means two oxygen atoms per silicon atom throughout quartz.
- An empirical formula is the simplest whole-number ratio. Glucose has the empirical formula CH₂O.
A molecular formula does not show how atoms are connected. C₂H₆O fits both ethanol and dimethyl ether, two different substances. Condensed structural formulas, CH₃CH₂OH and CH₃OCH₃, make the difference visible. These styles are compared in empirical, molecular and structural formulas.
Putting numbers to a formula
Once you can count atoms, you can find a molar mass. For calcium nitrate, using Ca = 40.08, N = 14.01 and O = 16.00:
Ca: 1 × 40.08 = 40.08
N: 2 × 14.01 = 28.02
O: 6 × 16.00 = 96.00
M = 164.10 g/mol The subscripts also give mole ratios inside the compound. One mole of Ca(NO₃)₂ contains 1 mol of calcium ions, 2 mol of nitrate ions and 6 mol of oxygen atoms. They are ratios of numbers, not of masses.
Why elements are written in that order
The order of symbols in a formula follows conventions that carry information.
In ionic compounds the positive ion is written first: NaCl, CaCO₃, K₂SO₄. When you see a metal at the front, you can usually split the formula into a cation and an anion, and the split tells you what particles will appear if the compound dissolves.
In compounds of two nonmetals, the element that attracts electrons less strongly is generally written first, as in CO₂ and SF₆. Hydrogen is a special case. It leads in water and in acids such as HCl, but follows in NH₃ and CH₄.
Organic molecular formulas often follow the Hill system: carbon first, hydrogen second, then the other elements alphabetically. Ethanol appears as C₂H₆O. Databases and indexes use this order so that a compound can be found by its formula. Condensed formulas give up that tidy order to show connections, which is why the same substance may be written C₂H₆O in one place and C₂H₅OH in another.
A formula that lists one element twice is a hint about structure. In NH₄NO₃, ammonium nitrate, nitrogen appears in both the cation and the anion, in different environments. The total is 2 N, 4 H and 3 O, but writing N₂H₄O₃ would hide the two ions completely.
What a formula leaves out
A formula is a compact summary, and much is missing from it.
It does not show shape. H₂O and CO₂ both have a 2 to 1 pattern of atoms around a center, yet water is bent and carbon dioxide is straight. It does not show bond types: nothing in CO₂ tells you that each carbon-oxygen link is a double bond. It does not show size, since a formula such as (C₂H₄)ₙ, used for polyethylene, represents chains in which the repeat unit occurs a very large and variable number of times.
It also says nothing about purity, concentration or hazard. A bottle marked H₂O₂ might hold a weak drugstore solution or a far more dangerous concentrated one. Read the whole label and the safety data sheet.
For particular questions, chemists switch representations: a Lewis structure to show electrons, a structural formula to show connections, a three-dimensional model to show shape. The formula is the starting point that all of them must agree with, because every drawing has to contain exactly the atoms the formula counts.
Practice and pitfalls
Try Mg₃(PO₄)₂ before reading on. It has 3 magnesium, 2 phosphorus and 8 oxygen atoms, 13 in all, made of three Mg²⁺ ions and two PO₄³⁻ ions. The charges, +6 and −6, cancel.
Watch for these slips:
- Applying an outside subscript to only the first atom in the parentheses.
- Reading a two-letter symbol as two elements, or the reverse.
- Forgetting the water in a hydrate when computing molar mass.
- Treating a charge as a subscript. SO₃ is a neutral molecule, while SO₃²⁻ is the sulfite ion.
- Adding the coefficient to the subscripts instead of multiplying.
To go from reading formulas to naming them, continue with naming ionic compounds.