Bond Order Calculator – Molecular Orbitals, Resonance and Bond Length
Bond order is the number of shared electron pairs between two atoms: 1 for a single bond, 2 for a double bond, 3 for a triple bond, and fractions when electrons are spread over several bonds. This bond order calculator works it out the two ways chemistry courses teach it: from a molecular orbital (MO) diagram for diatomic molecules and ions built from H through Ne, and from resonance structures for polyatomic species such as nitrate, ozone, sulfate and benzene.
The MO bond order formula
In MO theory the atomic orbitals of the two atoms combine into bonding orbitals (σ, π), which are lower in energy, and antibonding orbitals (σ*, π*), which are higher. Electrons fill them in order of energy, two per orbital, with one electron in each orbital of a degenerate π pair before any pairing (Hund's rule). Then:
Bond order = (bonding electrons − antibonding electrons) / 2
For O₂ (16 electrons) that is (10 − 6) / 2 = 2. The calculator counts all electrons, core included, but the core does not change the answer. The 1s orbitals of the two atoms form σ1s and σ*1s, and their four electrons fill both levels, so they cancel. This is why textbooks write the core as KK and count valence electrons only. Both methods give the same bond order.
The s–p mixing switch at 14 electrons
For light diatomics the 2s and 2p orbitals interact, which pushes σ2p above π2p. Up to 14 electrons (B₂, C₂, N₂, CO, CN⁻, NO⁺) the calculator uses this s–p mixed order. Above 14 electrons (O₂, F₂, NO) it uses the unmixed order, with σ2p below π2p. This split by electron count is the standard textbook simplification. The ordering never changes the bond order, because the swap only reorders two bonding levels. It can change the magnetism, though. With mixing, B₂ has one electron in each π2p orbital, so it is paramagnetic. Without mixing, its two σ2p electrons pair up and it would be diamagnetic. Experiment shows B₂ is paramagnetic, and this is the classic evidence for s–p mixing. You can try both orders with the override control.
Why O₂ is paramagnetic
The Lewis structure of O₂ shows a double bond with every electron paired, which predicts a diamagnetic molecule. Liquid oxygen, however, sticks to the poles of a magnet. The MO diagram explains this. The last two electrons go into the degenerate π*2p pair, one per orbital and with parallel spins. That leaves two unpaired electrons, a triplet ground state, and still a bond order of 2. Removing an electron gives O₂⁺, with bond order 2.5. Adding electrons gives O₂⁻ (1.5) and O₂²⁻ (1).
Resonance averaging
When one Lewis structure can't describe a molecule, the real bonding is a resonance hybrid of several equivalent structures. For a set of n equivalent bonds, take any one structure with s single, d double and t triple bonds:
Bond order = (s + 2d + 3t) / n
Nitrate has one double and two single N–O bonds, so 4/3 ≈ 1.33. Ozone and the carboxylate group of acetate give 3/2, and so do the six C–C bonds of benzene. The number of contributing structures for a central atom is n! / (s! d! t!), which gives 3 for nitrate. A ring is different: benzene has only 2 Kekulé structures. The calculator also gives the average formal charge on each terminal atom, V − 8 + BO, and the formal charge on the central atom that balances the overall charge.
Octet vs expanded octet: sulfate and phosphate
For central atoms in period 3 and below, textbooks disagree. The octet structure of sulfate has four S–O single bonds. That gives bond order 1 and a +2 formal charge on sulfur. The formal-charge-minimised structure adds two S=O double bonds. That gives bond order 3/2 and zero charge on S. Phosphate shows the same split, 1 against 5/4. Many general-chemistry courses teach the second picture. Modern bonding analyses find little d-orbital involvement and favour polar single bonds. The measured bond lengths fall between the two, so the calculator shows both side by side.