Atoms in a molecule are held together by chemical bonds, which arise from the electrical attraction between negatively charged electrons and positively charged atomic nuclei. In most molecules, these bonds form when atoms share electrons in a way that lowers the energy of the combined system. The result is a more stable arrangement than the separated atoms would have under the same conditions.
Although atoms are often pictured as tiny balls connected by solid sticks, molecules work very differently. There are no miniature rods or strings between their atoms. Instead, chemical bonds emerge from the behavior of electrons, the electric forces between charged particles, and the rules of quantum mechanics.
Understanding what holds molecules together begins with the structure of an atom and the role its electrons play when atoms interact.
How atoms are built
Every atom has a small, positively charged nucleus containing protons and, in most cases, electrically neutral neutrons. Negatively charged electrons occupy the space around the nucleus. The number of protons determines which chemical element an atom belongs to, while the arrangement of its electrons largely determines how it interacts with other atoms.
Electrons do not orbit the nucleus along fixed, planet-like paths. Quantum mechanics describes them using orbitals, which are regions where an electron is likely to be found. These orbitals have particular energies and shapes, and they help determine how atoms form chemical bonds.
The electrons most important to ordinary chemical bonding are called valence electrons. They occupy the outermost electron shell or, more precisely, the outer orbitals involved in bonding. Valence electrons can interact with those of neighboring atoms, allowing the atoms to form new, shared arrangements of electrons.
The nucleus also plays an essential role. Its positive charge attracts electrons, and this attraction helps bind electrons to atoms in the first place. When atoms approach one another, the electric interactions among both nuclei and all the electrons influence whether a stable molecule can form.
What a chemical bond actually is
A chemical bond forms when the combined arrangement of atoms and electrons has lower energy than the relevant separated arrangement. Under suitable conditions, this lower-energy state can persist, keeping the atoms associated with one another.
Energy is central to this process. Atoms and molecules tend to move toward arrangements that minimize their energy, although temperature and other environmental conditions also affect which arrangements are favored. If forming a bond lowers the system’s energy, the excess energy must be transferred elsewhere, for example through collisions or the emission of radiation, for the system to settle into that state.
The bond is not simply an attraction between two atoms. Several electrical interactions occur at once. Each positively charged nucleus attracts electrons, electrons repel other electrons, and nuclei repel one another. The balance among these interactions determines the energy of the system as the atoms move closer together or farther apart.
When atoms approach from a sufficient distance, their interactions can create a favorable arrangement at a particular separation. If they get too close, repulsion and the quantum-mechanical restrictions on electron states make the energy rise sharply. A stable bond therefore has a characteristic equilibrium distance, where the energy is at a minimum.
Breaking a chemical bond generally requires energy because the atoms must move out of this favorable arrangement. Forming a bond generally releases energy as the system moves into a lower-energy state. This energy difference helps explain why chemical reactions can release heat, absorb energy, or do both at different stages.
How atoms share electrons in covalent bonds
The most familiar type of molecular bond is the covalent bond, in which atoms share electron density. Rather than belonging exclusively to one atom, the electrons involved in the bond occupy quantum states associated with both atoms.
Water provides a useful example. A water molecule contains two hydrogen atoms bonded to one oxygen atom. Each hydrogen contributes an electron to the bonding arrangement, and oxygen also contributes electrons. The resulting electron distribution helps hold the three atoms together in a stable molecular structure.
Sharing electrons does not necessarily mean that two electrons sit at a fixed point between the nuclei. Electrons are quantum particles described by wavefunctions, and their probability distributions extend through regions of space. In a covalent bond, the arrangement of these electron states can concentrate electron density between the nuclei, helping attract both nuclei toward the shared electron distribution.
The electrons also obey the Pauli exclusion principle, a quantum rule that limits which electrons can occupy the same quantum state. Together with the attraction between nuclei and electrons, this principle helps determine the allowed electron arrangements and the distances at which atoms can form stable bonds.
Covalent bonds can involve one, two, or three shared pairs of electrons, commonly described as single, double, and triple bonds. In general, multiple bonds are stronger and shorter than comparable single bonds between the same kinds of atoms, though the details depend on the atoms and their molecular environment.
Many molecules are held together primarily by covalent bonds. Oxygen gas, for example, consists of O₂ molecules containing a double bond between two oxygen atoms. Nitrogen gas consists of N₂ molecules with a triple bond, which helps make the molecule particularly difficult to break apart in ordinary chemical reactions.
Why atoms do not always share electrons equally
In some covalent bonds, the shared electrons are distributed unevenly. This happens because different elements attract electrons with different strengths, a property known as electronegativity.
In a water molecule, oxygen attracts the shared electrons more strongly than hydrogen does. As a result, the oxygen end of the molecule carries a partial negative charge, while the hydrogen ends carry partial positive charges. These are not full electrical charges like those of isolated ions, but they create an uneven distribution of electrical charge.
A molecule with this kind of separation of charge is called polar. Polarity affects how molecules interact with one another, influencing properties such as solubility, boiling point, and the ability to dissolve certain substances.
Not every covalent bond is polar. When two atoms have similar electronegativities, the electrons may be shared relatively evenly. The bond between two identical atoms, such as the oxygen atoms in O₂, is a familiar example.
This distinction matters because a bond can hold atoms together within a molecule even when its electrons are shared unevenly. Covalent bonding does not require every atom to attract the shared electrons equally.
How ionic bonding differs from covalent bonding
Not all chemical bonding involves sharing electrons in the same way. In an ionic bond, oppositely charged ions attract one another through electrostatic forces.
An ion is an atom or group of atoms that has a net electrical charge because it has gained or lost electrons. For example, a sodium atom can lose an electron to become a positively charged sodium ion, while a chlorine atom can gain an electron to become a negatively charged chloride ion. The opposite charges attract, creating an ionic interaction.
Table salt, or sodium chloride, illustrates this process. Its sodium and chloride ions form an extended crystal lattice rather than separate, independent NaCl molecules under ordinary conditions. Each ion interacts electrostatically with many neighboring ions, and the overall arrangement is stabilized by the combined attractions and repulsions throughout the crystal.
This distinction is important: ionic compounds are often described using chemical formulas that give the simplest ratio of ions, but those formulas do not necessarily represent individual molecules. In solid sodium chloride, the basic structure is a repeating network of ions.
The difference between ionic and covalent bonding is not always absolute. Many bonds have both ionic and covalent characteristics, and the balance depends on the atoms and their electronic structure. Chemical bonding is better understood as a range of electron arrangements than as two completely separate categories.
What keeps molecules in their particular shapes
A molecule is not simply a collection of atoms held together without a defined arrangement. Its bonds and electron distribution help determine its three-dimensional shape.
In water, the oxygen atom forms covalent bonds with two hydrogen atoms. The molecule is bent rather than straight because the arrangement of electrons around oxygen, including nonbonding electron pairs, influences the positions of the hydrogen atoms. The result is a specific geometry with important consequences for water’s polarity and interactions with other substances.
Other molecules have different shapes. Carbon dioxide, for example, has a linear arrangement of atoms, with the carbon atom between two oxygen atoms. Methane, which contains one carbon atom bonded to four hydrogen atoms, has a roughly tetrahedral structure.
These shapes arise from the quantum-mechanical energies of the available electron arrangements and the balance of forces among the atoms. Chemists often use models involving electron-pair repulsion to predict molecular geometry, but the underlying explanation comes from the behavior of electrons and nuclei governed by quantum mechanics.
Molecular shape affects how substances behave. It influences which molecules can fit together, how they recognize and interact with one another, and how chemical reactions proceed. In biological systems, for example, the shapes of proteins and other molecules help determine their functions.
What holds different molecules together
The bonds within a molecule are not the only forces that matter. Separate molecules can also attract one another, sometimes strongly enough to determine whether a substance is a gas, liquid, or solid under particular conditions.
These attractions between molecules are called intermolecular forces. They are generally weaker than the covalent or ionic interactions that hold atoms together within many chemical structures, but they can have substantial effects when many molecules interact.
One important type is the hydrogen bond. It occurs when a hydrogen atom bonded to a strongly electron-attracting atom, typically oxygen, nitrogen, or fluorine, interacts attractively with an appropriate electron-rich region of another atom. Hydrogen bonds are not the same as the covalent bonds within a water molecule, even though both involve hydrogen.
Water demonstrates why the distinction matters. The oxygen and hydrogen atoms within each water molecule are joined by covalent bonds. Separate water molecules attract one another through hydrogen bonds, among other intermolecular interactions. These attractions contribute to water’s relatively high boiling point, surface tension, and many of its unusual physical properties.
Other intermolecular attractions include dipole–dipole interactions between polar molecules and London dispersion forces, which arise from momentary fluctuations in electron distributions. Dispersion forces occur between all atoms and molecules, including nonpolar ones.
These forces help explain why molecules can gather into liquids and solids without forming new covalent bonds between every neighboring pair. They also influence how substances dissolve, how materials soften or melt, and how biological structures maintain their shapes.
Why quantum mechanics is essential to chemical bonding
Electric forces explain much of the attraction and repulsion involved in bonding, but a complete account requires quantum mechanics. Electrons do not behave exactly like tiny classical particles, and their allowed energies and spatial distributions cannot be explained fully by ordinary mechanical models.
Quantum mechanics determines which electron states are available, how electrons occupy those states, and how the total energy changes when atoms interact. In a covalent bond, electrons can occupy states extending across multiple nuclei. Depending on the state, this arrangement can lower or raise the energy of the system.
The wave-like nature of electrons is especially important. When atomic orbitals combine, their wavefunctions can reinforce or cancel one another in different regions of space. Bonding combinations often place electron density between nuclei in a way that lowers the total energy, while antibonding combinations tend to raise it.
The Pauli exclusion principle also plays a fundamental role in the structure of matter. It helps determine how electrons fill available states and contributes to the resistance of atoms to being compressed into the same space. Without these quantum rules, the structure and stability of atoms and molecules would be very different.
Chemists do not need to solve every quantum equation from scratch to understand ordinary molecules. Models such as Lewis structures, molecular orbital theory, and computational chemistry provide different levels of detail for predicting bonding, geometry, and reactivity. Each model is useful within its intended limits.
Why some atoms bond readily while others do not
Atoms differ in how readily they form bonds because their electron arrangements and energy levels differ. The number and arrangement of valence electrons are particularly important.
Noble gases, such as helium and neon, have especially stable electron configurations under ordinary conditions. They therefore tend to be less reactive than many other elements, although some heavier noble gases can form compounds under suitable circumstances. Their relative lack of reactivity does not mean they are incapable of interacting with other atoms.
Other elements can reach lower-energy arrangements by sharing electrons, transferring electrons, or participating in more complex bonding patterns. Carbon, for example, can form four covalent bonds in many common compounds. This versatility allows carbon atoms to build chains, rings, and elaborate molecular structures, making carbon chemistry central to life as we know it.
The familiar idea that atoms bond to fill their outer electron shells can be a useful introductory rule, but it is not universal. Many molecules and compounds cannot be explained completely by a simple octet rule. Their stability depends on the full arrangement of electrons, the available quantum states, and the energy of the entire system.
Bonding also depends on conditions. Temperature, pressure, the surrounding solvent, and the presence of other substances can influence which structures are stable and which reactions occur. A molecule that is stable under ordinary conditions may break apart when supplied with enough energy or exposed to a suitable reactant.
What happens when a chemical bond breaks
A chemical bond does not break because the attraction between atoms suddenly disappears. Instead, energy is supplied or redistributed in a way that allows the atoms to move away from their bonded arrangement.
Heating can provide molecules with energy, while light can excite electrons or initiate reactions. Collisions with other particles can also transfer energy into a molecule. Whether this energy leads to bond breaking depends on how it is distributed and whether the molecule follows a pathway that produces new substances.
A bond’s strength is commonly described in terms of the energy needed to separate the bonded atoms under specified conditions. Bond dissociation energy provides one useful measure, although the value can depend on the molecular environment and on the products formed.
Breaking one bond does not always require heating an entire substance to an extremely high temperature. Some chemical reactions proceed through pathways that lower the energy barrier for rearrangement, allowing bonds to break and form at modest temperatures. Catalysts, including enzymes in living organisms, help reactions proceed faster by providing alternative pathways without being consumed overall in the reaction.
Chemical reactions generally involve changes in electron arrangements. Existing bonds may break as new ones form, and the overall energy change depends on the balance between the energy absorbed to break bonds and the energy released when new bonds form. This balance helps determine whether a reaction releases or absorbs energy, although the speed of the reaction is a separate question.
Ultimately, atoms in a molecule stay together because their electrons and nuclei form a quantum-mechanical arrangement with lower energy than the relevant separated arrangement. Electrical attraction is central to that stability, while electron sharing, quantum rules, and the balance of attractive and repulsive interactions determine the bond’s strength and structure. These principles explain not only how simple molecules form, but also how the complex molecular systems that make up materials and living organisms can exist.

