A molecule is a group of two or more atoms held together by chemical bonds. Those atoms are the fundamental building blocks, and the bonds between them form when atoms share electrons. Every molecule, from the two-atom simplicity of oxygen gas to the millions of atoms in a strand of DNA, follows this same basic principle.
Atoms: The Building Blocks
Every molecule starts with atoms. An atom itself has three types of particles arranged in two regions. Protons and neutrons sit packed together in a dense central nucleus, while electrons orbit in energy levels surrounding that nucleus. Think of it like a solar system: the nucleus is the sun, and the electrons are planets circling at various distances.
The electrons in the outermost energy level are the ones that matter most for molecule-building. These outer electrons determine whether and how an atom will connect to other atoms. An atom with a nearly full outer shell will behave very differently from one with just a single electron in its outermost level. Hydrogen, for instance, has one electron and readily pairs up with another hydrogen atom. Carbon has four outer electrons and can form bonds with up to four other atoms at once, which is why carbon is the backbone of so many complex molecules.
How Atoms Bond Together
Atoms join into molecules by sharing electrons. When two atoms come close enough, their outer electrons can spread across both atoms rather than staying locked to just one. This spreading out, called electron sharing, lowers the energy of the system and creates a stable connection: a covalent bond. It’s a quantum mechanical effect, meaning it arises from the wave-like behavior of electrons at very small scales. The shared electrons essentially act as glue holding the two nuclei together.
Not all bonds are equal in strength. A single shared pair of electrons creates a single bond. Atoms can also share two or three pairs, forming double and triple bonds that are progressively stronger and shorter. A single carbon-to-carbon bond, for example, is about 1.54 angstroms long and requires 345 kilojoules per mole of energy to break. A triple carbon-to-carbon bond is shorter (1.20 angstroms) and takes 837 kilojoules per mole to break, more than twice the energy.
The number of electrons an atom shares depends on how many it needs to fill its outer shell. Oxygen needs two more electrons, so it typically forms two bonds. Nitrogen needs three, so it forms three. This predictable behavior is what makes chemistry systematic rather than random.
Simple Molecules and Diatomic Elements
The simplest molecules contain just two atoms. Seven elements naturally exist this way under normal conditions: hydrogen, nitrogen, oxygen, fluorine, chlorine, bromine, and iodine. Each pairs with an identical partner. Oxygen gas, the stuff you breathe, is two oxygen atoms sharing electrons. Nitrogen gas, which makes up about 78% of the atmosphere, is two nitrogen atoms locked together by a triple bond.
These diatomic molecules illustrate an important distinction. A molecule doesn’t have to contain different elements. Two oxygen atoms bonded together form a molecule, but not a compound. A compound requires atoms of at least two different elements. Water is both a molecule and a compound because it contains oxygen and hydrogen. Oxygen gas is a molecule but not a compound because it contains only one element.
What Gives a Molecule Its Shape
Molecules aren’t flat diagrams on paper. They have three-dimensional shapes, and those shapes are determined by a straightforward rule: electron pairs repel each other and arrange themselves as far apart as possible. Shared electron pairs (bonds) and unshared electron pairs (called lone pairs) all carry negative charge, so they push away from one another like magnets with the same pole facing each other.
This repulsion creates predictable geometries. When a central atom has four groups of electrons around it, they spread into a shape like a three-sided pyramid (a tetrahedron) to maximize distance between them. Water’s familiar bent shape happens because oxygen has two bonds to hydrogen atoms and two lone pairs, and those four electron groups push into a tetrahedral arrangement. Since only two of the four positions have atoms in them, the visible shape looks bent rather than straight. The shape of a molecule directly affects its properties: how it interacts with other molecules, whether it dissolves in water, and how it behaves in your body.
Bonds Within vs. Forces Between
The covalent bonds holding atoms together inside a molecule are strong. But separate molecules also exert forces on each other, and these intermolecular forces are far weaker. The distinction matters because intermolecular forces determine everyday physical properties like boiling point, melting point, and density. Water boils at 100°C, not because its internal bonds break at that temperature, but because the forces between water molecules become weak enough for them to escape into the air as steam. The bonds within each water molecule remain completely intact.
From Small Molecules to Giant Ones
Some molecules are tiny. Water has three atoms. Carbon dioxide has three. But living systems build enormous molecules by linking small units together in chains. These large molecules, called macromolecules, can contain thousands or even hundreds of thousands of covalently bonded atoms, with masses exceeding 100,000 daltons.
The strategy is elegantly simple: small building blocks called monomers snap together into long chains called polymers. The connection happens through a reaction that releases a water molecule each time a new link is added. Three of the four major classes of biological macromolecules, carbohydrates, proteins, and nucleic acids, are built this way.
Proteins are polymers of just 20 different amino acid monomers. Each amino acid connects to the next through a peptide bond, and chains can stretch from a few units to thousands. The specific sequence of amino acids determines how the chain folds into a precise three-dimensional shape, which in turn determines what the protein does. DNA works on the same polymer principle: nucleotide monomers link together through their sugar and phosphate groups into long strands. Each nucleotide carries one of four chemical bases, and the order of those bases encodes genetic information. Carbohydrates follow suit. Starch and cellulose are both polymers of the same simple sugar monomer, just linked in slightly different ways.
The remarkable thing is how much variety emerges from so few components. An immense diversity of polymers can be built from a small set of monomers, simply by changing the sequence and length of the chain. Every protein your body makes uses the same 20 amino acids. Every gene in your DNA uses the same four nucleotide bases. What makes one molecule different from another is the order in which those pieces are assembled.

