Chemical formulas show which elements are in a compound and how many atoms or ions are involved. For a molecular compound, the formula gives the number of each atom in one molecule, such as H2OH_2O or CO2CO_2. For an ionic compound, the formula usually gives the lowest whole-number ratio of ions needed for charge balance, such as NaClNaCl or CaCO3CaCO_3.

If you searched for common compounds and their formulas, start with this quick reference.

Common Compounds And Their Chemical Formulas

Compound Formula Notes
Water H2OH_2O Two hydrogen atoms and one oxygen atom per molecule
Carbon dioxide CO2CO_2 One carbon and two oxygen atoms per molecule
Ammonia NH3NH_3 Common molecular compound made of nitrogen and hydrogen
Methane CH4CH_4 Simplest hydrocarbon
Hydrogen peroxide H2O2H_2O_2 Not the same substance as water
Sodium chloride NaClNaCl Ionic compound in a 1:1 ion ratio
Calcium carbonate CaCO3CaCO_3 Common in limestone, chalk, and shells
Sodium bicarbonate NaHCO3NaHCO_3 Also called baking soda
Sodium hydroxide NaOHNaOH Common strong base
Calcium hydroxide Ca(OH)2Ca(OH)_2 Parentheses show two hydroxide ions
Hydrochloric acid HClHCl Common acid; often written HCl(aq)HCl(aq) in water
Sulfuric acid H2SO4H_2SO_4 Two acidic hydrogens attached to sulfate

What A Chemical Formula Means

A formula tells you composition, but the meaning depends on the kind of compound.

For molecular compounds, subscripts give the actual number of each atom in one molecule. In CO2CO_2, every molecule has one carbon atom and two oxygen atoms.

For ionic compounds, the formula is mainly about charge balance. In NaClNaCl, one Na+Na^+ balances one ClCl^-. In CaCl2CaCl_2, one Ca2+Ca^{2+} needs two ClCl^- ions, so the formula has a 1:2 ratio.

That difference matters. A molecular formula is not usually reduced, because changing it changes the substance. H2O2H_2O_2 is hydrogen peroxide, not water. An ionic formula, by contrast, is normally written in the smallest ratio that still balances charge.

Worked Example: Why Calcium Hydroxide Is Ca(OH)2Ca(OH)_2

Calcium forms a Ca2+Ca^{2+} ion. Hydroxide is the polyatomic ion OHOH^-.

To make a neutral compound, the total positive and negative charge must cancel. One calcium ion has a charge of +2+2, so it needs two hydroxide ions with total charge 2-2.

Ca2++2OHCa(OH)2Ca^{2+} + 2OH^- \rightarrow Ca(OH)_2

The parentheses matter. Writing CaOH2CaOH_2 would say something different, because the subscript 2 would apply only to hydrogen. The correct formula, Ca(OH)2Ca(OH)_2, shows two complete hydroxide groups.

Common Mistakes

Mixing Up Subscripts And Coefficients

In 2H2O2H_2O, the coefficient 2 means two water molecules. The subscript 2 means each water molecule contains two hydrogen atoms. Those are different jobs.

Reducing A Molecular Formula When You Should Not

H2O2H_2O_2 should not be simplified to HOHO. Molecular formulas are part of the identity of the substance.

Forgetting To Balance Charge In Ionic Compounds

For ionic compounds, the formula must be electrically neutral. If the charges do not cancel, the formula is not complete.

Ignoring Parentheses Around Polyatomic Ions

In compounds such as Ca(OH)2Ca(OH)_2 or Al2(SO4)3Al_2(SO_4)_3, the parentheses show that the whole ion repeats. Without them, the formula is read incorrectly.

When Chemical Formulas Are Used

Chemical formulas show up any time you need to identify a substance precisely. They are used in reaction equations, stoichiometry, molar-mass calculations, lab labels, safety documents, and ingredient lists in technical contexts.

They are also the bridge between a compound's name and its quantitative chemistry. If you cannot read the formula correctly, later steps such as balancing equations or converting moles to mass become harder than they need to be.

A Simple Way To Check A Formula

Ask four quick questions:

  1. Is this molecular or ionic?
  2. Do the subscripts match the intended atom counts or ion ratios?
  3. If it is ionic, do the charges balance to zero?
  4. If a polyatomic ion repeats, did I use parentheses correctly?

Those checks catch most beginner errors fast.

Try A Similar Problem

Try reading CaCl2CaCl_2, Na2CO3Na_2CO_3, and C6H12O6C_6H_{12}O_6 out loud in words. For each one, say whether the formula describes a molecule or the lowest ion ratio. That comparison is a fast way to check whether the concept really clicked.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →