Oxygen and nitrogen look like similar gases in a bottle, yet one holds its atoms together with a double bond and the other with a triple bond, and that difference decides how reactive each gas is. Bond order is the number that says how many bonds hold two atoms together, and molecular orbital theory gives a way to work it out from electron counts: count the electrons in bonding orbitals, subtract the electrons in antibonding orbitals, and divide by two. This free bond order calculator does that arithmetic for any diatomic molecule or ion, and reads the result as a bond type and a stability verdict.
At the defaults, oxygen, O2, with 10 bonding electrons and 6 antibonding electrons, has a bond order of 2.0, a double bond, in a stable molecule. The same formula says nitrogen, N2, with 10 bonding and 4 antibonding electrons, has a bond order of 3.0, a triple bond, and helium dimer, He2, with 2 bonding and 2 antibonding electrons, has a bond order of 0, which means no bond at all, and the molecule does not exist. This calculator states its counting convention openly, because two textbooks can quote different electron counts for the same molecule and still agree on the bond order, as explained below.
Count every electron in a bonding molecular orbital as bonding and every electron in an antibonding molecular orbital (marked with a star, such as sigma star) as antibonding, including the filled 1s core. The core contributes 2 bonding and 2 antibonding electrons, so it cancels out: counting valence electrons only gives the same bond order. Get the counts from the molecule's molecular orbital electron configuration, filled from the lowest energy up.
Please check the inputs: bonding and antibonding electrons must be whole numbers from 0 to 20.
| Molecule | Bonding Electrons | Antibonding Electrons | Bond Order | Bond Type |
|---|
Bond orders of common diatomic molecules from their molecular orbital electron configurations. Counts include the filled 1s core, which contributes 2 bonding and 2 antibonding electrons and cancels out, so valence-only counts give the same bond order. The highlighted row matches the counts you entered. N2 and CO share the same counts, 10 bonding and 4 antibonding, so both rows highlight together.
ADVERTISEMENT
Founder & CEO, Techraxy
Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.
User Ratings:
ADVERTISEMENT
ADVERTISEMENT
A bond order calculator is a tool that turns the electron counts from a molecular orbital diagram into a single number: the bond order. The formula is bond order equals bonding electrons minus antibonding electrons, divided by 2. Bonding orbitals are the low energy molecular orbitals formed when atomic orbitals combine constructively, with electron density sitting between the two nuclei. Antibonding orbitals, marked with a star, such as sigma star, are the high energy partners, with a node between the nuclei, and their electrons cancel the stabilisation that bonding electrons provide. Two electrons make one bond, which is why the difference is divided by two.
The idea matters because the simple Lewis picture of shared electron pairs cannot describe every molecule. Lewis structures give whole numbers of bonds only, so they cannot explain nitric oxide, NO, which has a bond order of 2.5, halfway between a double and a triple bond, or the hydrogen molecular ion, H2+, which has a bond order of 0.5, a half bond. Molecular orbital theory handles both, because it counts electrons in orbitals that spread over the whole molecule rather than assigning each pair to a single bond. It also explains why O2 is magnetic: its last two electrons sit unpaired in antibonding pi star orbitals, so liquid oxygen is attracted to a magnet, while nitrogen, with all its electrons paired, is not.
Bond order also tracks bond strength and bond length. As bond order rises, the bond gets shorter and stronger, so a triple bond is shorter and harder to break than a double bond between the same two atoms, and a double bond is shorter and stronger than a single bond. The calculator reads bond orders of 1, 2 and 3 as single, double and triple bonds, and fractional orders as sitting between the two whole numbers on either side.
One convention needs stating, because it is the most common source of confusion. This calculator counts all electrons in bonding and antibonding orbitals, including the filled 1s core. For a second period molecule the core contributes 2 bonding and 2 antibonding electrons, which cancel in the subtraction, so counting valence electrons only gives the same bond order. Nitrogen is 10 bonding and 4 antibonding by the full count, or 8 bonding and 2 antibonding by the valence count, and both give (10 minus 4) divided by 2, which is 3, and (8 minus 2) divided by 2, which is also 3. The compare tab uses the full counts, so B2 appears as 6 bonding and 4 antibonding, and C2 as 8 bonding and 4 antibonding, where a valence only table would show 4 and 2, and 6 and 2. The bond orders are the same either way.
Enter the number of bonding electrons and the number of antibonding electrons as whole numbers from 0 to 20. Both come from the molecule’s molecular orbital electron configuration: fill the molecular orbitals from the lowest energy up, following the Aufbau principle, the Pauli exclusion principle and Hund’s rule, then count the electrons in orbitals without a star as bonding and the electrons in orbitals with a star as antibonding. The calculator updates as you type, and the Calculate button runs it again at any time.
Read the results in order. The bond order is the headline number, shown to one decimal place, so it can be a whole number or a half, such as 2.5. The bond type names it: single, double or triple bond, half bond, between two bond types, or no bond. Stability says whether the species can exist: any bond order above 0 is a stable bound species, a bond order of 0 means no stable bond and the molecule does not exist, and a negative bond order is flagged as unphysical, as explained in the formula section. Net bonding electrons is bonding minus antibonding, the numerator before the division, and total electrons is the sum of the two counts, so you can check your counting against the molecule’s electron total.
The diagram shows two atoms joined by a bond, beside a molecular orbital energy level diagram. The lower green box is the bonding levels and the upper red box is the antibonding levels, and each dot is one electron, so the dots fill and empty as you change the counts. The lines between the atoms grow from one to three as the bond order rises, with a half strength line for a fractional bond order, and the bond strength bar below grows with the bond order. A bond order of 0 leaves no lines between the atoms and an empty bar.
The Common Molecules tab lists nine diatomic molecules with their bonding and antibonding counts and bond orders, from H2 at 1.0 to N2 and CO at 3.0. The row matching the counts you entered is highlighted, and N2 and CO highlight together, because both have 10 bonding and 4 antibonding electrons.
The formula is bond order equals bonding electrons minus antibonding electrons, divided by 2. Written out for the defaults, oxygen: 10 minus 6 is 4, divided by 2 is 2.0, a double bond. For nitrogen: 10 minus 4 is 6, divided by 2 is 3.0, a triple bond. For helium dimer: 2 minus 2 is 0, divided by 2 is 0.0, no bond.
A negative result needs a decision, and this calculator states it openly. If antibonding electrons outnumber bonding electrons, the arithmetic gives a negative bond order, for example 4 bonding and 6 antibonding gives (4 minus 6) divided by 2, which is minus 1.0. A negative bond order has no physical meaning for a bound molecule, because it would mean the antibonding electrons have more than cancelled the bonding ones. The calculator shows the computed negative value so the arithmetic stays visible, and reads it as no stable bond, with a warning in the results. It is not an input error: the counts are valid numbers, and the warning is the answer.
The inputs are whole numbers from 0 to 20. Negative counts, decimal counts and counts above 20 are rejected with an error message, and the result fields dash out until the inputs are fixed. The upper limit of 20 covers every second period diatomic molecule and ion, since the largest, Ne2, has 20 electrons in total, and the calculator is built for diatomic species, where the molecular orbital picture gives a single bond order for one bond.
Take nitrogen, N2, the worked example for the triple bond. First write the molecular orbital electron configuration, filling from the lowest energy up: sigma 1s squared, sigma star 1s squared, sigma 2s squared, sigma star 2s squared, pi 2p to the fourth, sigma 2p squared. Count the bonding electrons: sigma 1s has 2, sigma 2s has 2, pi 2p has 4, sigma 2p has 2, which is 10 bonding electrons. Count the antibonding electrons: sigma star 1s has 2 and sigma star 2s has 2, which is 4 antibonding electrons. Apply the formula: 10 minus 4 is 6, divided by 2 is 3.0. The bond order of N2 is 3.0, a triple bond, in a stable molecule. The valence only count agrees: 8 bonding and 2 antibonding gives (8 minus 2) divided by 2, which is also 3.0.
For comparison, oxygen, O2, has the configuration sigma 1s squared, sigma star 1s squared, sigma 2s squared, sigma star 2s squared, sigma 2p squared, pi 2p to the fourth, pi star 2p squared. That is 10 bonding electrons and 6 antibonding electrons, so (10 minus 6) divided by 2 is 2.0, a double bond. Removing one antibonding electron gives O2+, with 10 bonding and 5 antibonding electrons, so (10 minus 5) divided by 2 is 2.5, between a double and a triple bond, and the O2+ bond is shorter and stronger than the O2 bond, even though the ion has one fewer electron.
The first benefit is knowing whether a molecule can exist at all. He2 has 2 bonding and 2 antibonding electrons, so its bond order is 0, and molecular orbital theory predicts it does not exist as a stable molecule, which matches experiment: helium is found as single atoms, never as He2. The same test says Be2 and Ne2, both with bond order 0, do not exist either, while H2, with a bond order of 1.0, does. A Lewis structure cannot make that prediction, because it has no way to say that two helium atoms refuse to bond.
The second benefit is reading bond strength and length off a single number. A bond order of 3 means a shorter, stronger bond than a bond order of 2 between the same atoms, and a bond order of 2.5 sits between the two. That is why N2, with a bond order of 3.0, is famously unreactive and hard to break apart, while F2, with a bond order of 1.0, has a weak bond that breaks easily. The calculator gives the number, and the diagram’s bond strength bar makes the ranking visible.
The third benefit is handling the cases where the Lewis picture breaks down. Fractional bond orders, half bonds in ions such as H2+ and He2+, and the paramagnetism of O2 all come out of the molecular orbital picture naturally. NO, with a bond order of 2.5, is a real gas with a bond that is genuinely between a double and a triple bond, and no Lewis structure with whole bonds can describe it. The calculator treats those cases the same way as the simple ones, with no special handling.
The fourth benefit is checking your own molecular orbital diagram. If you have filled the orbitals for a molecule and want to know whether the counts are right, the bond order is a quick check: the total electrons should match the molecule’s electron count, and the bond order should match the known value, such as 3.0 for N2 and CO, 2.0 for O2 and C2, and 1.0 for H2, B2 and F2. The compare tab puts those known values side by side, so a miscount shows up at once.
Count the electrons in bonding molecular orbitals and the electrons in antibonding molecular orbitals, then apply bond order equals bonding electrons minus antibonding electrons, divided by 2. For O2, with 10 bonding and 6 antibonding electrons, that is (10 minus 6) divided by 2, which is 2.0. Get the counts from the molecule’s molecular orbital electron configuration, filling the orbitals from the lowest energy up.
It means the bonding and antibonding electrons are equal, so there is no net bond, and the molecule is predicted not to exist as a stable species. He2 has 2 bonding and 2 antibonding electrons, so (2 minus 2) divided by 2 is 0, and helium is found as single atoms, never as He2. Be2 and Ne2 also have a bond order of 0 and do not exist as stable molecules.
Because the bond order is half the net number of bonding electrons, and that net number can be odd. NO has 10 bonding and 5 antibonding electrons, so (10 minus 5) divided by 2 is 2.5, between a double and a triple bond. The Lewis picture, which only allows whole numbers of bonds, cannot describe this, but molecular orbital theory can, because it counts individual electrons rather than electron pairs.
The bond order of O2 is 2.0, a double bond. Its molecular orbital configuration gives 10 bonding electrons and 6 antibonding electrons, so (10 minus 6) divided by 2 is 2.0. The two antibonding pi star electrons are unpaired, which is why O2 is paramagnetic and liquid oxygen is attracted to a magnet. Removing one antibonding electron gives O2+, with a bond order of 2.5 and a stronger bond.
Yes, between the same two atoms a higher bond order means a shorter and stronger bond, because more net bonding electrons hold the nuclei together more tightly. A triple bond is shorter and harder to break than a double bond, which is shorter and stronger than a single bond. The comparison only holds for the same pair of atoms: a single bond between two heavy atoms can be weaker than a triple bond between two light ones, so bond order ranks bonds between the same atoms, not across different elements.
Wikipedia — Bond order, with the molecular orbital definition, the formula, and the bond orders of common diatomic molecules.
LibreTexts — Molecular orbital theory and bond order, with the formula, the H2 and He2 worked examples, and the prediction that a bond order of 0 means the molecule does not exist.
Wikipedia — Molecular orbital, with bonding and antibonding orbitals, the bond order formula, and how the electron configuration is built.
LibreTexts — Molecular orbital theory, with orbital filling order, s-p mixing, and the bond orders and magnetism of B2, C2, N2, O2 and F2.
This calculator works out a bond order from the bonding and antibonding electron counts you enter, using the molecular orbital theory formula, and it is for learning chemistry and checking homework only. It applies to diatomic molecules and ions, where one bond order describes the single bond between the two atoms. For polyatomic molecules, and for molecules with resonance structures, bond order is defined differently, so do not use this calculator for those. The counts must come from a correct molecular orbital electron configuration: if the counts are wrong, the bond order will be wrong too, so check the total electrons against the molecule’s electron count before trusting the answer. Bond order predicts relative bond strength and length between the same two atoms, but it is not a direct measurement of bond energy. A negative bond order is unphysical and means no stable bond can form, not a real negative bond.
Last updated: 29 November 2026
ADVERTISEMENT
ADVERTISEMENT