What Is the Difference Between a Molecule and a Compound?

Every compound is a molecule, but not every molecule is 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

A molecule is formed when two or more atoms of an element chemically join together. And a compound is a type of molecule, in which the types of atoms forming the molecule are different from each other.

Not all molecules are compounds, because some molecules, such as hydrogen gas or ozone, consist only of one element, of only one type of atom.

Molecule Examples

Some examples of molecules include:

Compound Examples

Some examples of compounds include:

  • Salt: NaCl
  • Water: H2O