Chemical formulas are how chemists represent the composition of molecules and compounds on paper. By combining element symbols with subscripts, a formula tells you exactly what atoms are present and how many of each. Understanding how to read and write these formulas is foundational for everything else in chemistry, from balancing equations to calculating molar masses.
Chemical Formulas
Chemical Formula Notation
Every chemical formula is built from element symbols pulled from the periodic table, combined with subscripts that indicate atom counts. A few rules govern how they're written:
- Element symbols are one or two letters. The first letter is always capitalized; if there's a second letter, it's lowercase. This matters: is cobalt, but is carbon monoxide.
- Subscripts go right after the element symbol to show how many atoms of that element are present. If there's only one atom, you skip the subscript. So hydrogen chloride is (one hydrogen, one chlorine), while water is (two hydrogens, one oxygen).
- Element order follows convention. In binary compounds (two elements), the less electronegative element is written first: , not . For acids, hydrogen comes first, followed by the anion: for sulfuric acid.
Some examples to get comfortable with:
- Methane: (one carbon, four hydrogens)
- Iron(III) oxide: (two iron atoms, three oxygens)
- Phosphoric acid: (three hydrogens, one phosphorus, four oxygens)

Types of Chemical Formulas
There are three main types of formulas, and each one tells you something different about a compound.
Molecular formulas show the actual number of each type of atom in one molecule. For example, ethanol's molecular formula is , meaning each molecule contains 2 carbon atoms, 6 hydrogen atoms, and 1 oxygen atom. This is the formula you'd use to calculate molar mass or set up stoichiometry problems.
Empirical formulas give the simplest whole-number ratio of atoms. You get them by reducing all the subscripts in a molecular formula by their greatest common factor. Ethanol () has an empirical formula of itself, since 2:6:1 is already in simplest terms. A better example: glucose has the molecular formula , but its empirical formula is (a 1:2:1 ratio). Multiple compounds can share the same empirical formula while having different molecular formulas.
Structural formulas show how atoms are actually connected to each other. These come in a few styles:
- Lewis structures use lines for bonds and dots for lone-pair electrons. Water looks like .
- Condensed structural formulas group atoms together without showing every bond. Ethanol can be written as .
- Skeletal formulas (used more in organic chemistry) show just the carbon backbone as zigzag lines, with hydrogen atoms on carbon implied rather than drawn.

Structure and Properties of Isomers
Isomers are compounds that share the same molecular formula but have different arrangements of atoms. Same ingredients, different structure. This distinction matters because structure affects properties.
Structural isomers have atoms connected in a different order. Pentane () is a classic example with three structural isomers:
- n-pentane: (a straight chain)
- Isopentane: (one branch)
- Neopentane: (a central carbon with four methyl groups)
All three have the formula , but their different structures give them different boiling points: n-pentane boils at 36.1 °C, while the more compact neopentane boils at just 9.5 °C. More branching generally means weaker intermolecular forces and a lower boiling point.
Stereoisomers have atoms connected in the same order but arranged differently in three-dimensional space. Lactic acid () exists as two stereoisomers, L-lactic acid and D-lactic acid, which are mirror images of each other. Even though their formulas and connectivity are identical, they behave differently in biological systems: L-lactic acid is what your muscles produce during intense exercise, while D-lactic acid is far less common in the human body.
Chemical Bonding and Electron Configuration
Chemical formulas don't just list atoms; they imply something about how those atoms are held together. Two major types of bonding show up repeatedly:
- Covalent bonds form when atoms share valence electrons. This typically happens between two nonmetals. Both atoms get closer to a full outer shell by sharing.
- Ionic bonds form when one atom transfers electrons to another, creating oppositely charged ions that attract each other. This usually happens between a metal and a nonmetal with a large electronegativity difference.
Valence electrons, the electrons in an atom's outermost shell, drive bonding behavior. The number of valence electrons determines how many bonds an atom tends to form. Carbon has 4 valence electrons and typically forms 4 bonds; oxygen has 6 and typically forms 2.
Oxidation states represent the hypothetical charge an atom would carry if all its bonds were treated as purely ionic. These are useful for tracking electron transfer in reactions and for naming compounds (like distinguishing iron(II) from iron(III)).
Polyatomic ions are groups of covalently bonded atoms that carry an overall charge. You'll encounter these frequently in chemical formulas:
- Ammonium:
- Carbonate:
- Sulfate:
When polyatomic ions appear in formulas, parentheses group them: means one calcium ion paired with two hydroxide ions.