What Are Compounds and How Do They Form?

Water, table salt, and the sugar in your coffee are all compounds: substances in which different elements are locked together rather than just mixed. A compound behaves like a brand-new substance, often nothing like the elements it came from. That happens because atoms rearrange their outermost electrons, either handing them over or sharing them, until each atom is more stable.

What Makes Something a Compound

A given compound always contains its elements in the same ratio by mass, no matter where it came from or how it was made.1Chemical Education Xchange. Lets’ Get Real: The Law of Definite Proportions Water from a glacier and water made in a lab are both 8 parts oxygen to 1 part hydrogen by mass. This rule is called the law of definite proportions, or Proust’s law.1Chemical Education Xchange. Lets’ Get Real: The Law of Definite Proportions

When the rule was proposed in the late 1700s, chemists such as Claude Berthollet argued elements could combine in any proportion.2Wikipedia. Law of definite proportions A mixture like salt water can have any amount of salt, while salt itself is always one sodium for each chlorine.2Wikipedia. Law of definite proportions

It helps to sort things into three groups. An element is one kind of atom, like pure oxygen or iron. A compound is different elements bonded together, like water or carbon dioxide. A mixture is substances mingled without bonding, like air or salt water. You can separate a mixture by physical means, such as boiling off the water to leave the salt behind. Splitting a compound takes a chemical reaction.

A compound’s properties often look nothing like those of its elements. Sodium is a reactive metal and chlorine is a poisonous gas, yet together they make edible salt. Hydrogen is a gas that burns and oxygen is a gas that feeds fires, but water puts out fires.

A chemical formula writes the fixed ratio down. H2O means two hydrogen atoms for every oxygen atom, and the small numbers are the ratio the law describes. When there is no number, it means one atom, as with the oxygen in CO2.

Hydrogen and oxygen gas stirred together in a container are only a mixture, and the ratio of the two gases can be anything. Only when a spark or catalyst triggers a reaction do the atoms bond into water, and then the fixed ratio applies. So the same two elements can be a mixture or a compound, depending on whether bonds have formed.

How Ionic Bonds Form by Trading Electrons

Atoms are most stable when their outer shell of electrons is complete. A metal reaches that state by losing electrons and turning positively charged.3Chemistry LibreTexts. What Are Compounds and How Do They Form? A non-metal gets there by gaining electrons and turning negatively charged.3Chemistry LibreTexts. What Are Compounds and How Do They Form?

So when metals and non-metals react, the metal transfers electrons to the non-metal.3Chemistry LibreTexts. What Are Compounds and How Do They Form? Both become ions, charged atoms, which instantly attract each other. That attraction is an ionic bond.3Chemistry LibreTexts. What Are Compounds and How Do They Form? Billions of ions then stack into a repeating crystal, which is why salt forms cubes.

Sodium chloride shows the steps. Sodium has one lonely outer electron that it gives up easily. Chlorine is one electron short of a full outer shell. After the handoff, sodium is +1 and chlorine is -1, and the two charges pull together like magnets to form table salt.

In daily life, ionic compounds tend to be hard, brittle solids with high melting points. Many dissolve in water, splitting back into ions. Those loose ions let salt water carry electricity, unlike pure water.

You can predict the charge an atom will take from the periodic table. Atoms in the same column tend to form the same charge, since they have the same number of outer electrons. Sodium in the first column forms +1, and calcium in the second column forms +2. Chlorine, in the column next to the noble gases, forms -1, and oxygen, in the column before that, forms -2. That pattern lets you work out a formula such as MgCl2, where one +2 magnesium needs two -1 chlorines to balance.

How Covalent Bonds Form by Sharing Electrons

When two non-metals meet, neither gives up electrons easily, so they share instead. Each atom offers one unpaired electron, giving a pair shared between both atoms. This is a covalent bond.4The Cooper Union. Advanced Theories of Covalent Bonding It works because the regions where each atom’s electrons sit overlap, and each overlap can hold at most two electrons.5Chemistry LibreTexts. What Are Compounds and How Do They Form?

Hydrogen is the simplest case. In a hydrogen molecule, the single electron of each atom overlaps with the other’s.5Chemistry LibreTexts. What Are Compounds and How Do They Form? Electrons crowd between the two nuclei, and that concentrated pair is the bond.5Chemistry LibreTexts. What Are Compounds and How Do They Form?

Atoms can share one, two, or three pairs of electrons. Oxygen gas holds its two atoms with a double bond. Nitrogen gas has a triple bond, one of the strongest common bonds. More shared pairs pull atoms closer and hold them tighter.

Sharing lets each atom count the shared pair toward its own outer shell, so both get closer to a full shell. Oxygen in water is a good example, since it shares with two hydrogens to fill its outer shell. No atom gains or loses a whole electron, so neither ends up fully charged, which is why the result is a separate neutral molecule.

Covalent compounds form separate molecules rather than giant ion crystals. Many are gases or liquids at room temperature, like water and carbon dioxide. Most living matter, from sugar to DNA, is built on these bonds.

Why Most Bonds Fall Somewhere in Between

The degree of sharing between atoms varies from completely equal, pure covalent, to not at all, which is ionic.6Chemistry LibreTexts. What Are Compounds and How Do They Form? In water, oxygen pulls the shared electrons closer than hydrogen does. That leaves water’s oxygen end slightly negative and its hydrogen ends slightly positive, which is why water dissolves salt so well.

Two identical atoms, like those in oxygen gas, share perfectly. A metal with a non-metal usually leans ionic. Two different non-metals share unevenly, as in water. The bigger the difference in how strongly the atoms pull electrons, the more ionic the bond.

Chemists call an atom’s pull on shared electrons its electronegativity, and each element has a value. Fluorine pulls hardest, while metals such as sodium pull weakly. The difference between two atoms’ values predicts how unevenly their bond shares electrons. A small difference gives a covalent bond, a moderate one gives an uneven covalent bond, and a very large one is essentially ionic.

Other Ways Compounds Hold Together

In a coordinate bond, one molecule supplies both electrons of the shared pair to another.7LibreTexts (Chemistry). Concepts of Acidity: Coordination Complexes The molecule giving the electrons is called a ligand, and it uses a spare unshared pair of outer electrons.8Chemguide. Complex ions – an introduction Metal ions in many compounds sit at the centre, surrounded by ligands held by these bonds.8Chemguide. Complex ions – an introduction These metal-centred compounds give many gemstones and solutions their vivid colours.

Hemoglobin holds iron at its centre this way, and that iron grabs oxygen in your lungs and releases it in your tissues. Once formed, a coordinate bond looks like an ordinary shared bond, since only the origin of the electrons differs.

Ammonium shows how one forms. Ammonia has a spare pair of outer electrons on its nitrogen atom that isn’t used in bonding. A hydrogen ion has no electrons, so the nitrogen supplies both for a new bond. The result is the ammonium ion, NH4+, with four bonds to nitrogen.

Many metal ions have empty spaces in their outer electron region that can accept electron pairs, and molecules like water and ammonia have spare pairs to give. A copper ion in water is surrounded by water molecules held by these bonds, which gives the solution its blue colour.

Metals can also combine with each other into compounds with a fixed formula, such as sodium and potassium forming Na2K.9Physical Review B. Structure, bonding, and stability of topologically close-packed intermetallic compounds Their atoms pack together as tightly as possible.9Physical Review B. Structure, bonding, and stability of topologically close-packed intermetallic compounds Weaker attractions such as hydrogen bonds can link molecules into large networks, from stretchy materials to ordered frameworks.10PubMed Central. Nested non-covalent interactions expand the functions of supramolecular polymer networks

A hydrogen bond is an attraction between molecules, not inside one, and it is much weaker than a covalent bond. It still matters: it holds the two strands of DNA together and makes ice float.

What It Takes to Make a Compound Form

Old bonds must break before new ones form, and breaking bonds costs energy, like pushing a boulder over a hill. That’s why some elements don’t react on their own. Air is mostly nitrogen and oxygen, yet they barely react at room temperature.

The energy needed to start a reaction is called its activation energy, the height of the hill. A reaction can release energy overall and still need an initial push, as with a match that must be struck. Once enough atoms have crossed the hill, the energy they release can help others cross, so a flame keeps going.

Most compounds made today went through at least one step using a catalyst, a substance that speeds a reaction without being used up.11Chem Soc Rev. Understanding catalysis Catalysts lower the energy needed to get the reaction started.11Chem Soc Rev. Understanding catalysis

Ammonia for fertilizer is a real-world example. It is made by reacting nitrogen and hydrogen on an iron catalyst.12Wikipedia. Haber process Nitrogen’s two atoms are joined by a very strong triple bond that must break first, and that is the slowest step.12Wikipedia. Haber process So the reaction runs at 400 to 500 °C and over 100 times normal air pressure.13PubMed Central. The Haber-Bosch Heritage: The Ammonia Production Technology Nitrogen then picks up hydrogen one atom at a time until it leaves as ammonia, NH3.12Wikipedia. Haber process Only about 15% of the gas turns into ammonia per pass, so leftover gas is recycled.12Wikipedia. Haber process

Compounds That Bend the Rules

Some solid compounds can’t be written with small whole-number ratios.14Wikipedia. Non-stoichiometric compound A small percentage of atoms are missing or extra in their crystal structure.14Wikipedia. Non-stoichiometric compound Iron oxides of this kind are always slightly short of iron.14Wikipedia. Non-stoichiometric compound So Berthollet was partly right after all for certain solids.

In these solids the formula is an average over a huge crystal rather than a count for a single molecule. Iron oxide of this kind can be written as Fe0.95O, to show a bit less iron than oxygen.

Proust’s law fits compounds made of distinct molecules, where each molecule has a set number of atoms. Berthollet’s idea fits a few solids, where the crystal can tolerate gaps. Many of the samples Berthollet worked with were probably mixtures, which is why the debate was so confusing. Chemists later separated the two cases and gave each a clear name.

Bonding has surprises too. Noble gases were long thought never to bond, yet xenon forms stable compounds such as XeF2.15PubMed Central. Noble-Gas Chemistry More than Half a Century after the First Report of the Noble-Gas Compound Under crushing pressure, potassium and hydrogen form KH9, with nine hydrogens per potassium.16PubMed. High-Pressure Synthesis and Characterization of the Novel Potassium Superhydride KH(9)