A covalent bond forms when two atoms share one or more pairs of electrons between them, creating a region of high electron density that holds the atoms together at a stable distance. This is different from ionic bonding, where one atom essentially hands over an electron to another. In covalent bonding, both atoms keep a grip on the shared electrons, and that mutual hold is what keeps the molecule intact.
Why Atoms Share Electrons
Every atom “wants” a full outer electron shell. For most elements, that means eight electrons in the outermost shell, a pattern known as the octet rule. Hydrogen is the exception: it only needs two. When an atom doesn’t have enough valence electrons (the electrons in its outer shell) to fill that shell on its own, sharing with a neighboring atom is one solution. By pooling electrons, both atoms can count the shared pair as part of their own shell, reaching a more stable arrangement than either atom had alone.
Carbon, for instance, has four valence electrons and needs four more. It can form four covalent bonds with other atoms to complete its octet. Nitrogen has five valence electrons and typically shares three. Oxygen has six and shares two. Fluorine and other halogens have seven and share one. This pattern is why carbon-based molecules can be so large and complex: carbon has the most bonding capacity of any common nonmetal.
What Happens at the Atomic Level
When two atoms approach each other, their electron clouds start to overlap. If conditions are right, the electrons from each atom spread out across both atoms rather than staying confined to one. This spreading out, called electron delocalization, is the core quantum mechanical event behind covalent bonding. It builds up electron density in the space between the two nuclei, and that concentration of negative charge between two positive nuclei is what pulls them toward each other and holds them in place.
The formal IUPAC definition captures this neatly: a covalent bond is a region of relatively high electron density between nuclei that arises from sharing of electrons, giving rise to an attractive force and a characteristic distance between the atoms. That characteristic distance is the bond length, the point where the molecule sits at its lowest energy. Push the atoms closer and they repel each other. Pull them apart and you have to add energy to break the bond.
At a deeper level, the stability comes from something counterintuitive. You might expect that the attraction between the shared electrons and the nuclei (a drop in electrical potential energy) is what makes the bond favorable. But physicists have shown that the real driver is a decrease in the kinetic energy of the electrons. When electrons can roam across two atoms instead of being confined to one, they are less constrained, and their kinetic energy drops. That drop more than compensates for any increase in electrical repulsion, making the bonded state lower in total energy than the separated atoms.
Single, Double, and Triple Bonds
Not all covalent bonds involve just one shared pair. Sometimes two atoms need to share more electrons for both to reach a full shell.
- Single bond: one shared pair (2 electrons). This is the longest and weakest type of covalent bond, and the least reactive. Example: the C–H bonds in methane.
- Double bond: two shared pairs (4 electrons). Shorter and stronger than a single bond. Example: the C=O bonds in carbon dioxide.
- Triple bond: three shared pairs (6 electrons). The shortest and strongest. Example: the N≡N bond holding together a nitrogen gas molecule.
The structural difference comes down to how the electron clouds overlap. Every covalent bond starts with a sigma bond, where the orbitals overlap directly along the line between the two nuclei. This head-on overlap is the strongest kind. In a double bond, a second bond called a pi bond forms from orbitals that overlap above and below that line rather than directly along it. A triple bond adds a second pi bond. Pi bonds are individually weaker than sigma bonds, but stacking them on top of a sigma bond makes the overall connection between the atoms progressively shorter and harder to break.
Polar vs. Nonpolar Covalent Bonds
When two identical atoms share electrons, such as the two oxygens in an O₂ molecule, the sharing is perfectly equal. Neither atom pulls the electrons closer to itself. This is a nonpolar covalent bond.
When two different atoms bond, one usually attracts the shared electrons more strongly. This pull is called electronegativity. If the electronegativity difference between the two atoms is small (roughly 0.0 to 0.4 on the Pauling scale), the bond is still considered nonpolar. The C–H bond is a common example. Once the difference reaches about 0.5 or higher, the bond becomes polar covalent, meaning the electrons spend more time near the more electronegative atom. That atom picks up a slight negative charge, while the other atom becomes slightly positive.
Water is the classic example. Oxygen is significantly more electronegative than hydrogen, so in each O–H bond, the shared electrons are pulled toward the oxygen. This makes water a polar molecule, which is why it dissolves salts, climbs up narrow tubes, and behaves differently from nonpolar liquids like oil.
Coordinate Covalent Bonds
In a standard covalent bond, each atom contributes one electron to the shared pair. But in a coordinate (or dative) covalent bond, both electrons come from the same atom. The other atom provides an empty orbital to accept them. Once formed, a coordinate bond looks and behaves just like any other covalent bond. The distinction is only in where the electrons originated. This type of bonding is common in metal-containing compounds and in molecules like the ammonium ion, where nitrogen donates a pair of electrons to a hydrogen ion that has none to share.
When the Octet Rule Breaks
The octet rule is a useful guideline, but plenty of stable molecules violate it. These exceptions fall into three categories.
Some atoms form stable compounds with fewer than eight electrons around them. Boron is the most common example. In boron trichloride (BCl₃), the boron atom has only six electrons in its outer shell, yet the molecule exists and is perfectly stable under normal conditions. Aluminum behaves similarly.
Molecules with an odd total number of valence electrons can never give every atom a full octet, since electrons are shared in pairs. Nitrogen dioxide (NO₂) has 17 valence electrons, leaving one atom with an unpaired electron no matter how you arrange the bonds.
Atoms in the third row of the periodic table and beyond can exceed eight electrons because they have access to additional orbitals that second-row elements lack. Phosphorus pentachloride has ten electrons around phosphorus. Sulfur hexafluoride has twelve around sulfur. These expanded octets are common in compounds involving elements like phosphorus, sulfur, and xenon.
How Covalent Compounds Behave
The physical properties of covalent compounds are noticeably different from those of ionic compounds (like table salt). Covalent compounds generally have lower melting and boiling points because when you heat them, you’re only overcoming the weak attractions between separate molecules, not breaking the covalent bonds themselves. Table sugar melts at about 186°C. Table salt, an ionic compound, doesn’t melt until around 801°C.
Covalent compounds also tend to be poor electrical conductors in both solid and liquid form. Ionic compounds conduct electricity when dissolved in water or melted because their ions are free to move and carry charge. Covalent molecules are electrically neutral, so there are no free charge carriers to create a current. This is why pure water is actually a very poor conductor; it’s the dissolved ions that make tap water conductive.
Everyday Molecules Held by Covalent Bonds
Virtually every molecule in your body, your food, and the air you breathe is held together by covalent bonds. Methane (CH₄), the main component of natural gas, has four single C–H bonds arranged symmetrically around a central carbon. Water (H₂O) has two O–H single bonds with two lone pairs of electrons on the oxygen, giving it that bent shape responsible for so many of its unusual properties. Carbon dioxide (CO₂) has two C=O double bonds, making it a linear molecule with no net polarity despite each individual bond being polar.
The proteins in your muscles, the DNA in your cells, the plastics in your phone case, and the sugar in your coffee are all networks of covalent bonds. What varies is the specific atoms involved, how many electron pairs they share, and how evenly those pairs are distributed, but the underlying mechanism is always the same: atoms sharing electrons to reach a more stable, lower-energy state than they could achieve alone.

