What Is the Difference between a Molecule and a Compound?

Molecule vs Compound

This is the three-dimensional structure for ozone, which consists of three oxygen atoms bonded together. Ozone is a molecule, but not a compound.
This is the three-dimensional structure for ozone, which consists of three oxygen atoms bonded together. Ozone is a molecule, but not a compound. INDIGO MOLECULAR IMAGES / Getty Images

Actually, a compound is a type of molecule. A molecule is formed when two or more atoms of an element chemically join together. If the types of atoms are different from each other, a compound is formed. Not all molecules are compounds, since some molecules, such as hydrogen gas or ozone, consist only of one element or type of atom.

Molecule Examples

H2O, O2, O3

Compound Examples

NaCl, H2O