Chemistry 2e · Atoms, Molecules, and Ions
Chemical Formulas
On this page 9 sections
In 30 seconds
A Chemical formula Symbolic description of a substance's composition using element symbols and subscripts Full entry → is the shorthand language of chemistry: it tells you which elements are present, how many atoms of each, and — for molecular compounds — how those atoms are connected. But not all formulas carry the same information. Molecular formulas state the actual number of atoms in one molecule (H2O2 for hydrogen peroxide). Empirical formulas give the simplest whole-number ratio of atoms (HO for hydrogen peroxide). Structural formulas show how the atoms are bonded together. Ionic compounds, which exist as extended networks rather than discrete molecules, are described by formula units — the smallest electrically neutral ratio of ions, such as CaCl2 or Al2O3. Learning to read and write these formulas — and to derive empirical formulas from mass data — is the gateway to stoichiometry, the quantitative heart of chemistry.
Why this matters
Formulas are the difference between a recipe and a chemical identity. Water is H2O; hydrogen peroxide is H2O2 — one extra oxygen atom changes a safe drink into a disinfectant, which is why misreading formulas is dangerous. The same shorthand underlies medication labels (NaCl for saline, NaHCO3 for baking soda), fertilizer analysis (N-P-K), and industrial safety data sheets. Deriving empirical formulas from percent composition is also the classic "unknown compound" problem: forensic labs, quality-control chemists, and researchers all use the same method to identify what a substance is made of. For the nursing and health-science reader, recognizing that CaCO3 (calcium carbonate) and CaCl2 (calcium chloride) are different calcium salts — with very different uses — is exactly the kind of formula literacy that prevents medication errors.
The college version
Core Concepts
The formula family: molecular, empirical, structural
A Molecular formula Exact numbers of each atom in one molecule Full entry → uses subscripts to state the exact atom count per molecule: glucose is C6H12O6 — 6 carbons, 12 hydrogens, 6 oxygens. An Empirical formula Simplest whole-number ratio of atoms in a compound Full entry → is the simplest whole-number ratio of atoms: dividing glucose's subscripts by 6 gives CH2O. The empirical formula of glucose is therefore CH2O — but so is the empirical formula of acetic acid (C2H4O2), formaldehyde, and several other substances. Many different molecular formulas can share one empirical formula; the empirical formula alone cannot identify a compound. A Structural formula Shows which atoms are bonded to which Full entry → adds connectivity — for water it is written H–O–H, showing both hydrogens bonded to the oxygen, not to each other. Condensed structural formulas (CH3CH2OH for ethanol) pack the same connectivity information into one line.
Molecular vs. empirical: the multiplier n
For any molecular compound, the molecular formula is a whole-number multiple of the empirical formula:
molecular formula = n × empirical formula, n = 1, 2, 3, …
The multiplier n is found by comparing the compound's molar mass with its empirical formula mass:
n = molar massempirical formula mass
When n = 1, the empirical and molecular formulas are the same, as with water (H2O is already simplest) and methane (CH4).
Deriving an empirical formula from mass data
Given the mass (or percent) of each element in a sample, the empirical formula comes from four steps:
- Convert each element's mass to moles using its molar mass.
- Divide every mole value by the smallest mole value.
- If the results are not whole numbers, multiply all by the smallest integer that makes them whole.
- Write the element symbols with those integers as subscripts.
The mole concept and molar masses are treated in detail in Chapter 3; here the method is introduced so the logic of formulas is clear from the start.
Formula units for ionic compounds
Ionic compounds do not form discrete molecules; they form repeating three-dimensional lattices of cations and anions. The Formula unit Smallest electrically neutral ratio of ions in an ionic compound Full entry → is the smallest electrically neutral ratio of ions. It is dictated by charge balance: the total positive charge must equal the total negative charge. Sodium (Na⁺) and chloride (Cl⁻) give NaCl; calcium (Ca²⁺) and chloride (Cl⁻) give CaCl2 because two chlorides are needed to balance one calcium. Aluminum (Al³⁺) and oxide (O²⁻) give Al2O3 — two Al³⁺ (total +6) balance three O²⁻ (total −6). A practical shortcut, the "criss-cross" method, takes the magnitude of each ion's charge as the Subscript A number within a formula counting atoms of the preceding element Full entry → of the other ion, then reduces the ratio to lowest terms.
Formulas encode more than atom counts
A formula can also carry structural hints: parentheses group polyatomic ions (Ca(NO3)2 contains two nitrate groups), and a dot in a Hydrate An ionic compound with incorporated water, e.g., CuSO4 · 5H2O Full entry → formula shows incorporated water (CuSO4 · 5H2O is copper(II) sulfate pentahydrate — five waters per formula unit). Coefficients (numbers in front of formulas, like the 2 in 2H2O) count molecules, not atoms within one molecule — a distinction that becomes critical when balancing equations.
Common Confusions
| Do Not Confuse | With | Difference |
|---|---|---|
| Empirical formula | Molecular formula | Empirical is the simplest ratio (CH2O); molecular is the actual atom count (C6H12O6). Different compounds can share an empirical formula |
| H2O | H2O2 | Water vs. hydrogen peroxide — one extra O per molecule changes a stable beverage into an oxidizer. Formula literacy is a safety issue |
| Subscript | Coefficient | Subscript (in H2O) counts atoms within one molecule; coefficient (in 2H2O) counts whole molecules. 2H2O = 4 H atoms total |
| Ca(NO3)2 | CaNO3 | The parentheses mean TWO nitrate groups — 2 N and 6 O atoms. Dropping parentheses loses the polyatomic ion's identity |
| Formula unit | Molecule | Ionic compounds have no discrete molecules; the formula unit is just the smallest neutral ion ratio. Molecular formulas apply only to covalent compounds |
| Changing a formula | Balancing an equation | You never change subscripts to balance an equation (that changes the substance); you change coefficients only |
| Hydrate dot | Multiplication | The dot in CuSO4 · 5H2O means "with 5 waters," not multiplication — the formula unit includes 5 water molecules |

Eli explains
The same idea, in plain words
Explain it like I’m 10
A chemical formula is like a LEGO instruction card. It tells you how many of each brick to use: H2O means two hydrogen bricks and one oxygen brick. Sometimes the card shows the simplest recipe — "1 of each" — while the real toy needs more, like how both a tiny and a giant snowman can be built from "1 head + 1 body" repeated different numbers of times. Ionic compounds are different: they're like a wall of bricks where plus-bricks and minus-bricks must balance perfectly, so the formula just tells you how many of each kind you need to make a stable wall. Reading the card correctly — and not mistaking H2O for H2O2 — is the whole game.
Worked example
Example 1 — Empirical from molecular. Glucose has the molecular formula C6H12O6. Find its empirical formula, and determine the multiplier n.
Divide every subscript by the greatest common divisor (6):
C6H12O6 → C6/6H12/6O6/6 = CH2O
So the empirical formula is CH2O and the multiplier is:
n = 61 = 6
Check: acetic acid (C2H4O2) has the same empirical formula CH2O with n = 2 — proof that empirical formulas alone cannot identify a compound.
Example 2 — Empirical formula from percent composition. A compound is 40.00% carbon, 6.71% hydrogen, and 53.29% oxygen by mass. Determine its empirical formula.
Assume a 100.0 g sample, so percentages become grams: 40.00 g C, 6.71 g H, 53.29 g O. Convert each to moles (using molar masses 12.01, 1.008, and 16.00 g/mol):
nC = 40.00 g12.01 g/mol = 3.331 mol
nH = 6.71 g1.008 g/mol = 6.657 mol
nO = 53.29 g16.00 g/mol = 3.331 mol
Divide each by the smallest value (3.331):
C: 3.3313.331 = 1, H: 6.6573.331 = 1.998 ≈ 2, O: 3.3313.331 = 1
The ratio is 1 : 2 : 1, so the empirical formula is CH2O. If the compound's molar mass were later measured as 180 g/mol, the molecular formula would be:
n = 180 g/mol30.03 g/mol = 6 → C6H12O6
Example 3 — Formula unit from charges. Write the formula unit for the ionic compound formed from aluminum (Al³⁺) and oxide (O²⁻) ions.
The total charge must be zero. Two Al³⁺ give +6; three O²⁻ give −6:
2(+3) + 3(-2) = 0
So the formula unit is Al2O3. The criss-cross shortcut gives the same result: take the charge magnitude of Al (3) as the subscript of O, and the magnitude of O (2) as the subscript of Al, writing Al2O3 — already in lowest terms.
Key takeaways
- Molecular formula: exact atom count per molecule (C6H12O6); empirical formula: simplest whole-number ratio (CH2O); structural formula: shows connectivity (H–O–H).
- Many molecules share one empirical formula; the empirical formula alone cannot identify a compound.
- molecular formula = n × empirical formula, with n = molar massempirical formula mass.
- Empirical formula from data: mass → moles → divide by smallest → multiply to whole numbers.
- Ionic compounds are described by formula units (smallest neutral ion ratio), governed by charge balance: CaCl2, Al2O3, Na2SO4.
- Criss-cross shortcut: charge magnitude of one ion becomes the subscript of the other, then reduce.
- Parentheses enclose polyatomic ions; a dot in a hydrate (e.g., CuSO4 · 5H2O) means incorporated water.
- Subscripts count atoms inside a formula; coefficients count whole formulas (molecules) in front.
- Exam trap: H2O2 (hydrogen peroxide, empirical HO) vs H2O (water, empirical H2O) — different compounds, different properties.
Check yourself
5 review questions from the chapter. Try each one, then open the answer.
What is the empirical formula of butane, C4H10? Of benzene, C6H6?
Show answer
Butane: divide C₄H₁₀ by 2 → C2H5. Benzene: divide C₆H₆ by 6 → CH. (Note: benzene's empirical formula is CH — its molecular formula is six times that.)
A compound is 27.06% sodium, 16.47% nitrogen, and 56.47% oxygen by mass. What is its empirical formula?
Show answer
In a 100.0 g sample: Na = 27.06/22.99 = 1.177 mol; N = 16.47/14.01 = 1.176 mol; O = 56.47/16.00 = 3.529 mol. Divide by 1.176: Na 1, N 1, O 3 → NaNO3 (sodium nitrate).
Why can two different compounds have the same empirical formula, and what information resolves which is which?
Show answer
Because the empirical formula only records the simplest ratio — e.g., CH2O fits glucose, acetic acid, and formaldehyde. The molecular formula (or the molar mass) resolves the identity: n = molar mass/empirical formula mass.
Write the formula unit for the compound of calcium (Ca²⁺) and phosphate (PO43-).
Show answer
Charge balance: 3 Ca²⁺ (+6) with 2 PO43- (−6) → Ca3(PO4)2 — the familiar mineral form of calcium phosphate.
How many hydrogen atoms are represented by 3NH4NO3? How many nitrate groups?
Show answer
Each NH4NO3 has 4 H atoms, so 3 × 4 = 12 hydrogen atoms total. Each formula unit has one nitrate group (NO3-), so 3 nitrate groups.
Study tools & related lessonsKey vocabulary · Related
Key vocabulary
- Chemical formula
- Symbolic description of a substance's composition using element symbols and subscripts
- Molecular formula
- Exact numbers of each atom in one molecule
- Empirical formula
- Simplest whole-number ratio of atoms in a compound
- Structural formula
- Shows which atoms are bonded to which
- Formula unit
- Smallest electrically neutral ratio of ions in an ionic compound
- Polyatomic ion
- A group of atoms with an overall charge, e.g., NO3-, SO42-
- Hydrate
- An ionic compound with incorporated water, e.g., CuSO4 · 5H2O
- Coefficient
- A number in front of a formula counting whole molecules, e.g., the 2 in 2H2O
- Subscript
- A number within a formula counting atoms of the preceding element
Sources & references
This lesson was adapted from the open educational references above; their licenses and attributions are preserved. See Copyright & Licensing.
Educational content only. It is not medical, legal or professional advice. Found an error? Tell us.

