Search topics and sections

A chemical compound is a substance made of atoms of two or more different chemical elements held together by chemical bonds in a fixed ratio. Water, table salt and table sugar are all compounds.[1][2] A compound can be broken down into simpler substances only by a chemical reaction, while a mixture can be separated by physical means.[2]

A compound has its own properties, unlike those of the elements in it. Sodium is a soft, shiny metal and chlorine is a yellow-green gas, but together they form sodium chloride, a white solid made of crystals.[2]

Elements, compounds and mixtures

Chemists divide matter into pure substances and mixtures. A pure substance has a constant composition, so every sample has the same makeup and properties. Pure substances are either elements or compounds.[2]

Mixtures come in two kinds. A homogeneous mixture, also called a solution, has the same composition throughout, as in air or salt water. A heterogeneous mixture varies from point to point, as in granite or oil and vinegar dressing.[2]

Classification of matterMatterPure substancesconstant compositionMixturesvariable compositionphysical change(e.g. evaporation)Elementsiron, oxygen,sulfurCompoundswater, sucrose,sodium chlorideHomogeneous(solutions)air, salt waterHeterogeneousgranite, oil andvinegar dressingchemical change
Matter divides into pure substances, which have constant composition, and mixtures, which have variable composition. A homogeneous mixture (solution) is uniform throughout and a heterogeneous mixture is not; chemical change breaks compounds into elements, and physical change such as evaporation separates mixtures into pure substances.
Element Compound Mixture
Made of One kind of atom Two or more elements, chemically combined Two or more substances, not combined
Composition Fixed Fixed Can vary
Broken down by Cannot be broken down by chemical changes Chemical changes Physical changes, such as evaporation
Examples Iron, oxygen, sulfur Water, sucrose, sodium chloride Air, salt water, granite

Sources for the table: OpenStax[2] and Britannica.[1]

A molecule is two or more atoms joined by chemical bonds, but it is not always a compound. Oxygen gas is made of O2\mathrm{O_2} molecules, but both atoms are oxygen, so it is an element. Water molecules contain two hydrogen atoms and one oxygen atom, so water is a compound.[2]

Breaking compounds apart

Chemical changes can split a compound into elements, into other compounds, or into both.[2]

  • Heating mercury(II) oxide, an orange solid, gives liquid mercury and oxygen gas.
  • Light splits silver chloride into silver and chlorine. Photographic film and lenses that darken in sunlight use this reaction.
  • An electric current splits water into hydrogen gas and oxygen gas.
  • Heating sucrose without air gives carbon and water.

The splitting of water is written as:

2 H2O→2 H2+O22\,\mathrm{H_2O} \rightarrow 2\,\mathrm{H_2} + \mathrm{O_2}

Two water molecules rearrange into two hydrogen molecules and one oxygen molecule.[2]

Fixed composition

Every sample of a pure compound contains the same elements in the same proportions by mass. This is the law of definite proportions, also called the law of constant composition.[3] For example, every sample of isooctane, a part of gasoline, has a carbon to hydrogen mass ratio of 5.33 to 1.[3]

Percent composition

The percent composition of a compound is the percentage by mass of each element in it.[4] Any sample of sucrose (table sugar) is 42.1% carbon, 6.5% hydrogen and 51.4% oxygen by mass.[2] For each element in a measured sample:

% element=mass of elementmass of compound×100%\%\,\text{element} = \frac{\text{mass of element}}{\text{mass of compound}} \times 100\%

A 10.0 g sample of a gas that contains 2.5 g of hydrogen and 7.5 g of carbon is 25% hydrogen and 75% carbon.[4]

Percent composition can also be worked out from a formula, using masses in atomic mass units (amu). One amu is 1/12 of the mass of a carbon-12 atom.[5] One ammonia (NH3\mathrm{NH_3}) molecule has one nitrogen atom of 14.01 amu and three hydrogen atoms totaling 3.024 amu, for 17.03 amu in all, so ammonia is about 82% nitrogen by mass.[4]

Multiple proportions

Two elements can often form more than one compound. When they do, the masses of one element that combine with a fixed mass of the other are in a ratio of small whole numbers. This is the law of multiple proportions.[6]

Law of multiple proportions in two copper chlorides Compound 1 Cu Cl 1 Cu : 1 Cl 0.558 g Cl per g Cu Compound 2 Cl Cu Cl 1 Cu : 2 Cl 1.116 g Cl per g Cu 1.116 / 0.558 = 2 : 1
Two compounds of copper and chlorine contain 0.5580.558 g and 1.1161.116 g of chlorine per gram of copper. The ratio 1.116/0.558=2:11.116 / 0.558 = 2 : 1 is a small whole number, as the law of multiple proportions states, and it matches formulas with one and two chlorine atoms per copper atom.
  • Copper and chlorine form one solid with 0.558 g of chlorine per gram of copper and another with 1.116 g. The ratio is 2 to 1, which fits one compound having one chlorine atom per copper atom and the other having two.[3]
  • Nitrogen forms five different oxides. With 14 g of nitrogen, they hold 8, 16, 24, 32 and 40 g of oxygen, a ratio of 1 to 2 to 3 to 4 to 5.[6]

Chemical formulas

A chemical formula shows which elements are in a compound and how many atoms of each. In methane, CH4\mathrm{CH_4}, the subscript gives the number of each kind of atom. A subscript of 1 is never written.[1]

Types of formula

Formula type What it shows Example
Molecular formula Actual number of each atom in one molecule Glucose, C6H12O6\mathrm{C_6H_{12}O_6}
Empirical formula Simplest whole-number ratio of atoms or ions Glucose, CH2O\mathrm{CH_2O}
Structural formula Which atoms are bonded to which, with lines for bonds Methane drawn as C with four H

Source for the table: OpenStax.[7]

A molecular formula is always a whole-number multiple of the empirical formula. Benzene has the empirical formula CH\mathrm{CH} and the molecular formula C6H6\mathrm{C_6H_6}. Acetic acid, C2H4O2\mathrm{C_2H_4O_2}, reduces to CH2O\mathrm{CH_2O}, the same empirical formula as glucose.[7]

Formulas of ionic compounds

Some compounds are built from ions, atoms or groups of atoms with an electric charge. These compounds have no separate molecules, so their formulas give the ratio of ions instead.[8] The positive and negative charges must balance, so calcium chloride, made of Ca2+\mathrm{Ca^{2+}} and Cl−\mathrm{Cl^-}, is CaCl2\mathrm{CaCl_2}.[8]

A polyatomic ion is a charged group of several atoms that acts as one unit.[8]

Formulas put parentheses around a polyatomic ion when there is more than one of it. Calcium phosphate, a mineral in bone, is Ca3(PO4)2\mathrm{Ca_3(PO_4)_2}, with three Ca2+\mathrm{Ca^{2+}} ions for every two PO43−\mathrm{PO_4^{3-}} ions.[8] Such formulas are not always reduced. Sodium oxalate is written Na2C2O4\mathrm{Na_2C_2O_4}, not NaCO2\mathrm{NaCO_2}, to show its C2O42−\mathrm{C_2O_4^{2-}} ion.[8]

Isomers

A formula alone does not always identify a compound. Isomers are compounds with the same formula but different structures, and they can behave very differently.[7]

Acetic acid and methyl formate, two isomers of C2H4O2 H C H H C O O H H C H H O C O H Acetic acid C₂H₄O₂ Methyl formate C₂H₄O₂
Acetic acid and methyl formate have the same molecular formula, C2H4O2C_2H_4O_2, but their atoms are connected differently. In methyl formate one oxygen sits between the two carbons. In acetic acid both oxygens are bonded to the same carbon.
  • Structural isomers differ in how the atoms connect. Acetic acid (in vinegar) and methyl formate (used as an insecticide and in quick-drying finishes) are both C2H4O2\mathrm{C_2H_4O_2}.[7]
  • Spatial isomers differ in how the atoms are arranged in space. The two forms of carvone are mirror images (enantiomers). One smells like caraway and the other like spearmint.[7]

Types of compounds by bonding

Compounds are often classified by the kind of bond that holds them together.[8] Whether atoms share or transfer electrons depends largely on their electronegativity, their ability to attract electrons.[1]

Type Held together by Basic unit Examples
Molecular (covalent) Shared pairs of electrons Separate, neutral molecules Water, methane
Ionic Attraction between positive and negative ions Regular, repeating 3D arrangement of ions Sodium chloride, calcium chloride
Intermetallic Metallic bonding Ordered crystal of two or more metals Aluminides (compounds of aluminum with another metal)
Coordination Bonds from surrounding groups to a central metal Metal atom or ion with attached ligands (atoms or groups bonded to the central metal) Chlorophyll, vitamin B12

Sources for the table: OpenStax,[8] the intermetallics review[9] and Britannica.[10]

Molecular compound versus ionic compoundMolecular compound: waterIonic compound: sodium chlorideOne H₂O moleculeNa⁺Cl⁻Ratio 1 Na⁺ : 1 Cl⁻
Water is a molecular compound made of separate, identical H2O\text{H}_2\text{O} molecules. Sodium chloride is an ionic compound: a repeating lattice of Na+\text{Na}^+ and Cl−\text{Cl}^- ions in a 1 : 1 ratio, with no separate molecules.

Molecular compounds

Molecular compounds form when atoms share electrons in covalent bonds. They usually form between nonmetals.[8] Under normal conditions, many molecular compounds are one of the following, though there are many exceptions:[8]

  • gases
  • liquids that boil easily
  • solids that melt easily

Ionic compounds

An ionic compound is made of positive ions (cations) and negative ions (anions). IUPAC calls such a compound a salt.[11] The ions are held by ionic bonds, the attraction between opposite charges.[8]

Ions usually form when a metal reacts with a nonmetal. Electrons move from the metal atoms to the nonmetal atoms. Each sodium atom gives up one electron to become Na+\mathrm{Na^+}, and each chlorine atom gains one to become Cl−\mathrm{Cl^-}.[8]

The ions pack into a repeating pattern instead of forming molecules. Sodium chloride is one Na+\mathrm{Na^+} ion for each Cl−\mathrm{Cl^-} ion, arranged in a crystal lattice rather than as NaCl molecules.[1][8]

Ionic compounds are solids that usually melt at high temperatures and boil at even higher ones. The table compares sodium chloride with water, a molecular compound.[8]

Compound Type Melting point Boiling point
Sodium chloride Ionic 801 °C 1413 °C
Water Molecular 0 °C 100 °C

A solid ionic compound does not conduct electricity, because its ions cannot move. The melted compound can conduct, because its ions move freely through the liquid.[8]

The metal plus nonmetal rule is only a guide. Aluminum chloride (AlCl3\mathrm{AlCl_3}) is not ionic, and many compounds fall between ionic and molecular.[8] Some ionic compounds contain no metal at all. Polyatomic cations such as ammonium (NH4+\mathrm{NH_4^+}) let nonmetals alone form ionic compounds, such as NH4Br\mathrm{NH_4Br}.[12]

Intermetallic compounds

An intermetallic compound is made of two or more metals in definite proportions. A solid solution, by contrast, is a solid mixture whose proportions can vary continuously.[13] Intermetallics have metallic bonding, a defined composition and an ordered crystal structure, and tens of thousands are known.[9] Their structures and properties often differ greatly from those of the metals in them.[13]

Coordination compounds

A coordination compound has a central metal atom or ion surrounded by ligands.[10] Each ligand donates a pair of electrons to the metal, forming a coordinate covalent bond.[10]

Some important biological coordination compounds contain a porphyrin, a ring-shaped molecule that can hold a metal atom at its center.[14] Hemoglobin contains iron-porphyrin groups, and chlorophyll is a magnesium-porphyrin complex.[10] Vitamin B12 is a cobalt complex with a different ring, called corrin.[10]

Many dyes, pigments and catalysts are also coordination compounds.[10] A catalyst is a substance that speeds up a reaction without being used up.[15]

Organic and inorganic compounds

The other main division is between organic and inorganic compounds.[1]

  • Organic compounds have carbon atoms covalently bonded to other elements, most often hydrogen, oxygen or nitrogen.[16] A few carbon compounds are not counted as organic. These include carbides (carbon bonded to a metal or semimetal), carbonates (which contain the carbonate ion) and cyanides (which contain the cyanide ion).[16][17]
  • Inorganic compounds are all compounds that are not organic.[1] They include oxides (compounds containing oxygen), hydrides (containing hydrogen), sulfides (containing sulfur) and carbonates.[1][16]

Organic compounds got their name because many were first obtained from living things.[1]

Carbon bonds with itself and other elements in so many ways that Britannica counts more than nine million organic compounds.[1]

Fats, proteins, carbohydrates and fuels are made of organic compounds.[16]

Naming and cataloguing

Chemical nomenclature is the set of rules for naming compounds so that each name points to one substance. For inorganic compounds, chemists follow guidelines from IUPAC (the International Union of Pure and Applied Chemistry).[18]

Naming rules for simple compounds

Compounds of only two elements are called binary compounds.[18] Compounds of three different elements, such as sulfuric acid, are called ternary compounds.[19]

  1. An ionic compound of two elements is named by the metal, then the nonmetal with the ending "-ide". NaCl is sodium chloride.[18]
  2. If the metal can form ions of different charge, a Roman numeral gives the charge. FeCl2\mathrm{FeCl_2} is iron(II) chloride and FeCl3\mathrm{FeCl_3} is iron(III) chloride.[18]
  3. A molecular compound of two nonmetals uses Greek prefixes for the number of atoms. CO is carbon monoxide and CO2\mathrm{CO_2} is carbon dioxide.[18]
  4. A hydrate, an ionic compound with water built into its crystals, adds a prefix and "hydrate". Copper(II) sulfate with five water molecules is copper(II) sulfate pentahydrate.[18]

Older names used "-ic" and "-ous" for higher and lower metal charges, such as ferric chloride for FeCl3\mathrm{FeCl_3}. Some industries still use them, as in "stannous fluoride" (SnF2\mathrm{SnF_2}, tin(II) fluoride) in toothpaste.[18]

Registries

A CAS Registry Number gives each substance a unique identifier. The CAS REGISTRY database, collected from the scientific literature and other sources, holds over 290 million publicly reported substances.[20]

Non-stoichiometric compounds

The law of definite proportions has exceptions among solids. A non-stoichiometric compound is a solid whose atom numbers cannot be written as a ratio of small whole numbers.[21] These are sometimes called berthollides, while compounds with small whole-number ratios are called daltonides.[21]

Cause and formulas

Non-stoichiometry comes from defects in the crystal, such as ions missing from sites they would normally fill.[21] Most such compounds are close to a stoichiometric composition, one with a fixed ratio of small whole numbers.[21] They are written as WO3−x\mathrm{WO_{3-x}}, Co1−xO\mathrm{Co_{1-x}O} or Zn1+xO\mathrm{Zn_{1+x}O}, where xx is a positive number much smaller than 1.[21]

Cation vacancy in a metal oxide latticeOOOOOOOOOOOOOOMMMMMMMMMMMMMissing metal ion (vacancy)Metal ionOxide ionFewer M than O: formula M(1−x)O, x ≪ 1
A metal oxide lattice with one metal ion missing from its site. Because the crystal holds fewer metal ions than oxide ions, its formula is M1−xO\mathrm{M}_{1-x}\mathrm{O} with x≪1x \ll 1.

Not every apparent case is real. Some molybdenum oxides form a series of separate stoichiometric compounds, MonO3n−1\mathrm{Mo}_n\mathrm{O}_{3n-1}, with known members for nn = 8, 9, 10, 11, 12 and 14.[21] A true non-stoichiometric compound would instead show xx varying continuously over a range, with no separate compounds.[21]

Where they occur

Non-stoichiometric compounds are best known among the transition elements, the metals in the middle block of the periodic table.[21]

Several are parts of solid-state electronic devices, which are built from solid materials.[21] These include:

History

The earlier view

Before Proust's work, it was generally thought that two elements could combine in any proportion. On this view, a range of iron sulfides could form depending on how much iron was present.[26]

Proust and the law of definite proportions

Joseph Proust, a French chemist working in Spain, stated the law of definite proportions in a 1794 paper on Prussian blue.[26] Britannica dates his clear evidence, from studies of iron oxides, to 1797.[27]

Claude Berthollet held that elements combine in amounts that are not fixed, and he challenged Proust's findings. The Scottish chemist Thomas Thomson confirmed some of Proust's findings in 1801.[27]

Dalton and acceptance

John Dalton announced the law of multiple proportions in 1803.[6]

Dalton's chemical atomic theory of 1808 explained fixed proportions. Each atom of an element has a set weight, so a compound of whole atoms has a fixed mass ratio.[27][26]

After 1812, most chemists accepted Proust's law as an observed fact, whatever they thought of atoms.[26]

The end of the vital force

In the late 18th century, compounds from living things seemed so unlike those from rocks and water that many chemists believed only living organisms could make them. They credited this to a "vital force" (vitalism).[16]

In 1828 in Berlin, Friedrich Wöhler tried to make ammonium cyanate from silver cyanate and ammonium chloride. He obtained urea, a known organic compound, instead.[16]

Urea and ammonium cyanate are isomers, compounds with the same atoms in different arrangements.[16]

Wöhler concluded that atoms can arrange themselves in different ways, and that a molecule's properties depend on that arrangement.[16]

By about 1860, chemists generally agreed that no vital force was needed to make organic compounds.[16]

References

  1. Chemical compound, Encyclopaedia Britannica, 2024.
  2. 1.2 Phases and Classification of Matter, Chemistry 2e, OpenStax, 2019.
  3. 2.1 Early Ideas in Atomic Theory, Chemistry 2e, OpenStax, 2019.
  4. 3.2 Determining Empirical and Molecular Formulas, Chemistry 2e, OpenStax, 2019.
  5. 2.3 Atomic Structure and Symbolism, Chemistry 2e, OpenStax, 2019.
  6. Law of multiple proportions, Encyclopaedia Britannica, 2024.
  7. 2.4 Chemical Formulas, Chemistry 2e, OpenStax, 2019.
  8. 2.6 Ionic and Molecular Compounds, Chemistry 2e, OpenStax, 2019.
  9. Intermetallics. Structures, Properties, and Statistics (book review), PubMed Central, 2017.
  10. Coordination compound, Encyclopaedia Britannica, 2024.
  11. Salt, IUPAC Compendium of Chemical Terminology (Gold Book), 2025.
  12. 1.8 Ionic Bonds, Organic Chemistry: Principles and Mechanisms, 3rd ed., Joel Karty, W. W. Norton, 2022.
  13. Intermetallic compound, Encyclopaedia Britannica, 2024.
  14. Porphyrin, Encyclopaedia Britannica, 2024.
  15. 12.7 Catalysis, Chemistry 2e, OpenStax, 2019.
  16. Organic compound, Encyclopaedia Britannica, 2024.
  17. Carbide, Encyclopaedia Britannica, 2024.
  18. 2.7 Chemical Nomenclature, Chemistry 2e, OpenStax, 2019.
  19. Ternary compound, Encyclopaedia Britannica, 2024.
  20. CAS REGISTRY, CAS, 2025.
  21. Nonstoichiometric compound, Encyclopaedia Britannica, 2024.
  22. Rectifier, Encyclopaedia Britannica, 2024.
  23. Thermoelectric power generator, Encyclopaedia Britannica, 2024.
  24. Photodetectors, IEEE Technology Navigator, 2025.
  25. Thermistor, Encyclopaedia Britannica, 2024.
  26. Scientist of the Day: Joseph Proust, Linda Hall Library, 2018.
  27. Law of definite proportions, Encyclopaedia Britannica, 2024.

Figure