Atoms bond with each other because doing so lowers their energy and makes them more stable. An isolated atom with an incomplete outer shell of electrons is in a higher-energy state than two atoms that have combined to fill or share those shells. This drive toward lower energy is the single principle behind every type of chemical bond, whether atoms share electrons, transfer them, or pool them together.
The Energy Reason Behind All Bonding
Every system in nature tends to move toward its lowest possible energy state, and atoms are no exception. When two atoms approach each other and their electrons begin to interact, the system’s potential energy drops. At a certain distance, that energy reaches a minimum, and the arrangement becomes stable. That minimum is the bond.
Think of it like a ball rolling into a valley. The ball could sit on a hilltop, but it’s more stable at the bottom. Atoms “roll” into bonded arrangements for the same reason. Breaking them apart requires putting energy back in, which is why bonds hold together unless something forces them apart (heat, light, or another chemical reaction).
The Octet Rule and Full Electron Shells
Most atoms have incomplete outer electron shells, and a full outer shell is an especially low-energy, stable arrangement. The noble gases (helium, neon, argon, and their neighbors on the far right of the periodic table) already have full outer shells with eight electrons (or two, in helium’s case). That’s why they almost never react with anything. They have no energetic incentive to bond.
Every other element does have that incentive. Sodium has one electron in its outer shell. Chlorine has seven. Carbon has four. Each of these atoms can reach a more stable configuration by gaining, losing, or sharing electrons with other atoms until their outer shells resemble those of the nearest noble gas. This tendency for atoms to end up with eight outer electrons is called the octet rule, and it explains the bonding behavior of most everyday elements.
Covalent Bonds: Sharing Electrons
When two atoms have similar abilities to attract electrons, neither one can pull electrons away from the other. Instead, they share. Their electron clouds overlap, and the shared electrons spend time around both nuclei. This increased electron density between the two positively charged nuclei is what holds the atoms together. It’s the basis of a covalent bond.
The simplest example is two hydrogen atoms. Each has a single electron and needs two to fill its shell. When they approach each other, their orbitals overlap, the two electrons form a shared pair between the nuclei, and a hydrogen molecule (H₂) forms. The bond is stronger when the overlap between orbitals is greater, which is why atoms need to be at the right distance and orientation to bond effectively.
Atoms can share more than one pair of electrons. A carbon-carbon single bond, where one pair is shared, has an energy of about 347 kJ/mol. A double bond (two shared pairs) jumps to around 602 kJ/mol, and a triple bond (three shared pairs) reaches roughly 835 kJ/mol. More sharing means more electron density between the nuclei, which means a stronger, shorter bond.
Polar vs. Nonpolar Covalent Bonds
Not all sharing is equal. When two identical atoms bond (like H₂ or O₂), they pull on the shared electrons equally, creating a nonpolar covalent bond. But when the two atoms differ in how strongly they attract electrons, the sharing becomes lopsided. In a water molecule, oxygen pulls the shared electrons closer to itself than hydrogen does, giving the oxygen end a slight negative charge and the hydrogen end a slight positive charge. This is a polar covalent bond.
Chemists use a scale of electronegativity to predict what kind of bond will form. If the difference in electronegativity between two atoms is less than about 0.5, the bond is nonpolar covalent. Between roughly 0.5 and 1.7, it’s polar covalent. Above 1.7, the electron-attracting ability of one atom is so much greater that the electron effectively transfers completely, creating an ionic bond.
Ionic Bonds: Transferring Electrons
Some atoms are so eager to lose electrons, and others so eager to gain them, that sharing isn’t what happens. Instead, one atom hands over one or more electrons to the other. Sodium, with just one electron in its outer shell, readily gives that electron to chlorine, which needs just one more to complete its octet. Sodium becomes a positively charged ion (Na⁺), chlorine becomes a negatively charged ion (Cl⁻), and the electrostatic attraction between those opposite charges locks them together.
This is what happens in table salt and countless other compounds formed between metals and nonmetals. Metals sit on the left side of the periodic table and hold their outer electrons loosely. Nonmetals sit on the right and attract electrons strongly. The large gap in electronegativity between them makes electron transfer energetically favorable. The resulting ionic bonds are strong, which is why salts tend to have high melting points and form rigid crystal structures.
Metallic Bonds: A Sea of Shared Electrons
Metals bond with each other through a third mechanism. In a chunk of metal like sodium or iron, each atom is surrounded by many neighbors, sometimes eight or more. The outer electrons don’t stay attached to any single atom. Instead, they become delocalized, flowing freely throughout the entire piece of metal like a sea of electrons surrounding an array of positively charged atomic cores.
The attraction between these positive cores and the surrounding electron sea is what holds the metal together. This model explains many of the properties you associate with metals. They conduct electricity because the free electrons can flow through the material when voltage is applied. They’re malleable and ductile because the atoms can slide past each other without breaking the bond, since the electron sea simply rearranges. And metallic bonds are strong, giving metals their characteristically high melting and boiling points.
Why Some Atoms Break the Rules
The octet rule works well for most common elements, but it’s a guideline, not an absolute law. Elements in the third row of the periodic table and below have access to additional orbitals that can hold extra electrons. Phosphorus, for example, can form five bonds instead of the expected four, as it does in phosphorus pentachloride (PCl₅). Sulfur can accommodate six bonds in sulfur hexafluoride (SF₆). Iodine can hold up to twelve electrons in its outer shell in certain compounds.
These expanded arrangements tend to show up when a large central atom bonds to small, highly electron-attracting atoms like fluorine, chlorine, or oxygen. The central atom is physically big enough to fit more neighbors around it, and its extra orbitals provide the space for additional electron pairs. For the lightest elements like carbon, nitrogen, and oxygen, the octet rule holds firmly because they simply don’t have those extra orbitals available.
Chemical Bonds vs. Weaker Attractions
It’s worth distinguishing the strong bonds that hold atoms together within molecules from the weaker forces that act between molecules. Covalent and ionic bonds are strong: they define a molecule’s structure and require significant energy to break. But molecules also interact with each other through weaker attractions.
Hydrogen bonds form when a hydrogen atom bonded to an electronegative atom like oxygen or nitrogen is attracted to another electronegative atom nearby. Individually, these are weak and break easily, but in large numbers they can be powerful. They’re the reason water has an unusually high boiling point and the reason DNA’s two strands hold together. London dispersion forces are even weaker, arising from temporary imbalances in how electrons distribute themselves around any atom or molecule. These exist between all molecules and are the only attractive force between nonpolar substances like cooking oil or noble gases in their liquid form.
These weaker interactions don’t create new molecules the way chemical bonds do, but they shape how matter behaves at larger scales: whether a substance is a solid, liquid, or gas at room temperature, how it dissolves, and how biological molecules fold into their functional shapes.

