Bond order tells you how many net bonds hold two atoms together, and it comes straight out of how many electrons molecular orbital (MO) theory puts into bonding orbitals versus antibonding orbitals.The formula is
\[\text{Bond order} = \frac{1}{2}\left(N_b - N_a\right)
\]
where \(\displaystyle N_b\) is the total number of electrons occupying
bonding molecular orbitals and \(\displaystyle N_a\) is the total number occupying
antibonding molecular orbitals. An electron in a bonding orbital pulls the two nuclei together; one in an antibonding orbital pushes them apart — so the difference, halved, is the net number of bonds.
To use this formula you first need the electrons in each molecule sorted into the right molecular orbitals, in the right energy order. This is the step people get wrong:
the energy order of the MOs is not the same for every diatomic.For \(\displaystyle \mathrm{Li_2}\) through \(\displaystyle \mathrm{N_2}\) (fewer than $\displaystyle 15$ electrons, where the \(\displaystyle 2s\) and \(\displaystyle 2p\) orbitals mix and push \(\displaystyle \sigma 2p_z\) upward), the order is
\[\sigma 1s < \sigma^*1s < \sigma 2s < \sigma^*2s < \pi 2p_x = \pi 2p_y < \sigma 2p_z < \pi^*2p_x = \pi^*2p_y < \sigma^*2p_z
\]
For \(\displaystyle \mathrm{O_2}, \mathrm{F_2}, \mathrm{Ne_2}\) (heavier, where that mixing is too weak to matter), \(\displaystyle \sigma 2p_z\) drops back
below the \(\displaystyle \pi 2p\) pair:
\[\sigma 1s < \sigma^*1s < \sigma 2s < \sigma^*2s < \sigma 2p_z < \pi 2p_x = \pi 2p_y < \pi^*2p_x = \pi^*2p_y < \sigma^*2p_z
\]
Using the \(\displaystyle \mathrm{N_2}\) order for \(\displaystyle \mathrm{O_2}\) (or vice versa) fills orbitals in the wrong sequence and gives the wrong bond order — so it's worth checking which molecule you're filling before you start.
\(\displaystyle \mathrm{N_2}\) — $\displaystyle 14$ electrons ($\displaystyle 7$ + $\displaystyle 7$)Filling the first order above:
\[\sigma 1s^2\ \sigma^*1s^2\ \sigma 2s^2\ \sigma^*2s^2\ (\pi 2p_x^2\ \pi 2p_y^2)\ \sigma 2p_z^2
\]
Bonding electrons: \(\displaystyle \sigma1s(2) + \sigma2s(2) + \pi2p(4) + \sigma2p_z(2) = 10\)
Antibonding electrons: \(\displaystyle \sigma^*1s(2) + \sigma^*2s(2) = 4\)
\[\text{Bond order} = \frac{1}{2}(10-4) = 3
\]
A bond order of $\displaystyle 3$ is exactly the triple bond \(\displaystyle \mathrm{N \equiv N}\) you'd draw from the Lewis structure — MO theory and Lewis theory agree here.
\(\displaystyle \mathrm{O_2}\) — $\displaystyle 16$ electrons ($\displaystyle 8$ + $\displaystyle 8$)Now use the second (heavier-molecule) order, with \(\displaystyle \sigma2p_z\) filled
before \(\displaystyle \pi2p\):
\[\sigma 1s^2\ \sigma^*1s^2\ \sigma 2s^2\ \sigma^*2s^2\ \sigma 2p_z^2\ (\pi 2p_x^2\ \pi 2p_y^2)\ (\pi^*2p_x^1\ \pi^*2p_y^1)
\]
The last two electrons go into the two degenerate \(\displaystyle \pi^*2p\) orbitals
singly (Hund's rule), which is exactly why \(\displaystyle \mathrm{O_2}\) is paramagnetic.
Bonding electrons: \(\displaystyle \sigma1s(2) + \sigma2s(2) + \sigma2p_z(2) + \pi2p(4) = 10\)
Antibonding electrons: \(\displaystyle \sigma^*1s(2) + \sigma^*2s(2) + \pi^*2p(2) = 6\)
\[\text{Bond order} = \frac{1}{2}(10-6) = 2
\]
A bond order of $\displaystyle 2$ matches the double bond \(\displaystyle \mathrm{O=O}\).
\(\displaystyle \mathrm{O_2^+}\) — $\displaystyle 15$ electronsThis is \(\displaystyle \mathrm{O_2}\) with one electron removed. Electrons are always removed from the
highest-energy occupied orbital, which for \(\displaystyle \mathrm{O_2}\) is \(\displaystyle \pi^*2p\). So one of the two singly-occupied \(\displaystyle \pi^*2p\) electrons is taken away, leaving only one electron in \(\displaystyle \pi^*2p\):
Bonding electrons: still \(\displaystyle 10\)
Antibonding electrons: \(\displaystyle \sigma^*1s(2) + \sigma^*2s(2) + \pi^*2p(1) = 5\)
\[\text{Bond order} = \frac{1}{2}(10-5) = 2.5
\]
Removing an antibonding electron
raises the bond order above that of neutral \(\displaystyle \mathrm{O_2}\) — this is why \(\displaystyle \mathrm{O_2^+}\) has a shorter, stronger bond than \(\displaystyle \mathrm{O_2}\) itself, even though it has fewer electrons overall.
\(\displaystyle \mathrm{O_2^-}\) — $\displaystyle 17$ electronsThis is \(\displaystyle \mathrm{O_2}\) with one extra electron added. It goes into the same \(\displaystyle \pi^*2p\) set, pairing up with one of the two electrons already there:
Bonding electrons: still \(\displaystyle 10\)
Antibonding electrons: \(\displaystyle \sigma^*1s(2) + \sigma^*2s(2) + \pi^*2p(3) = 7\)
\[\text{Bond order} = \frac{1}{2}(10-7) = 1.5
\]
Adding an antibonding electron
lowers the bond order below that of \(\displaystyle \mathrm{O_2}\), so \(\displaystyle \mathrm{O_2^-}\) (superoxide) has a weaker, longer bond than \(\displaystyle \mathrm{O_2}\).
Putting the four together, bond order falls as more electrons enter the antibonding \(\displaystyle \pi^*2p\) set:
\[\mathrm{N_2}\ (3) > \mathrm{O_2^+}\ (2.5) > \mathrm{O_2}\ (2) > \mathrm{O_2^-}\ (1.5)
\]
Answer: Bond order is \(\displaystyle \dfrac{1}{2}(N_b - N_a)\), half the difference between electrons in bonding and antibonding molecular orbitals. Bond order of \(\displaystyle \mathrm{N_2} = 3\); \(\displaystyle \mathrm{O_2} = 2\); \(\displaystyle \mathrm{O_2^+} = 2.5\); \(\displaystyle \mathrm{O_2^-} = 1.5\).