3.2: Chemical Formulas – How to Represent Compounds
Learning Objectives
- Determine the number of different atoms in a formula.
- Define chemical formula, molecular formula, and empirical formula.
A chemical formula is an expression that shows the elements in a compound and the relative proportions of those elements. Water is composed of hydrogen and oxygen in a 2:1 ratio. The chemical formula for water is H2O. Sulfuric acid is one of the most widely produced chemicals in the United States and is composed of the elements hydrogen, sulfur, and oxygen. The chemical formula for sulfuric acid is H2SO4.
Certain groups of atoms are bonded together to form what is called a polyatomic ion that acts as a single unit. Polyatomic ions are discussed in more detail in the next section (Section 3.3). In a chemical formula, polyatomic ions are enclosed in parentheses followed by a subscript if more than one of the same ion exist in a chemical formula. The formula Ca3(PO4)2 represents a compound with the following:
3 Ca atoms + 2 PO43- ions
To count the total number of atoms for formulas with polyatomic ions enclosed in parenthesis, use the subscript as a multiplier for each atom or number of atoms.
Ca3(PO4)2
3 Ca + 2 x 1 P + 2 x 4 O = 3 Calcium atoms + 2 Phosphorus atoms + 8 Oxygen atoms
Molecular Formula
A molecular formula is the notation of a compound that shows the kinds and numbers of atoms present in a molecule of the compound. (A molecule is the smallest representation of a compound, just as an atom is the smallest representation of an element.) Ammonia is a compound of nitrogen and hydrogen as shown below:

Note from the example that there are some standard rules to follow in writing molecular formulas. The arrangements of the elements depend on the particular structure, which is not of concern at this point. The number of atoms of each kind is indicated by a subscript following the atom. If there is only one atom, no number is written. If there is more than one atom of a specific kind, the number is written as a subscript following the atom. We would not write N3H for ammonia, because that would mean that there are three nitrogen atoms and one hydrogen atom in the molecule, which is incorrect.
Empirical Formula
An empirical formula is a formula that shows the elements in a compound in their lowest whole-number ratio. Glucose is an important simple sugar that cells use as their primary source of energy. Its molecular formula is C6H12O6. Since each of the subscripts is divisible by 6, the empirical formula for glucose is CH2O. When chemists analyze an unknown compound, often the first step is to determine its empirical formula.
- molecular formula: C6H12O6
- empirical formula: CH2O
There are a great many compounds whose molecular and empirical formulas are the same. If the molecular formula cannot be simplified into a smaller whole-number ratio, as in the case of H2O or P2O5, then the empirical formula is also the molecular formula.
Key Takeaways
- A chemical formula is an expression that shows the elements in a compound and the relative proportions of those elements.
- If only one atom of a specific type is present, no subscript is used.
- For atoms that have two or more of a specific type of atom present, a subscript is written after the symbol for that atom.
- Polyatomic ions in chemical formulas are enclosed in parentheses followed by a subscript if more than one of the same type of polyatomic ion exist.
- Molecular formulas do not indicate how the atoms are arranged in the molecule.
- The empirical formula tells the lowest whole-number ratio of elements in a compound. The empirical formula does not show the actual number of atoms.
Contributions & Attributions
- Marisa Alviar-Agnew (Sacramento City College)
- Henry Agnew (UC Davis)