LabCanvas

Molecular orbital diagram generator

Pick a diatomic molecule or ion and the generator draws its molecular orbital (MO) diagram: the atomic orbitals of each atom at the sides, the bonding and antibonding molecular orbitals in the middle in the correct order, and the electrons filled by the aufbau principle, the Pauli principle and Hund’s rule. It gives the MO electron configuration, the bond order, (bonding − antibonding electrons) / 2, whether the species is paramagnetic or diamagnetic, and whether it is expected to exist. Download the diagram as SVG or PNG.

Last updated

FreeNo sign-upRuns in your browserFigures

Loading Molecular orbital diagram generator…

At a glance

Molecular orbital diagram generator at a glance
SpeciesH₂ to Ne₂; H₂⁺, He₂⁺, N₂⁺, N₂⁻, O₂⁺, O₂⁻, O₂²⁻; CO, CN⁻, NO, NO⁺, HF
Orbital orderπ2p below σ2p for Li₂ to N₂, CO and CN⁻ (s–p mixing); σ2p below π2p for O₂, F₂, Ne₂ and NO
FillingAufbau, Pauli exclusion principle and Hund’s rule
GivesMO electron configuration, bond order, unpaired electrons, paramagnetic or diamagnetic, expected to exist
LevelGeneral chemistry, following OpenStax Chemistry 2e section 8.4; energies are schematic
ExportSVG or PNG, colour or monochrome, with or without the 1s core
Runs inYour web browser; nothing is uploaded
PriceFree, no account needed

What it does

How to use the molecular orbital diagram generator

  1. Pick the molecule or ionChoose a homonuclear diatomic (H₂ to Ne₂), an ion such as O₂⁻ or N₂⁺, or a heteronuclear molecule such as CO or NO.
  2. Read the diagramAtomic orbitals sit at the sides, molecular orbitals in the middle; dashed lines show which atomic orbitals combine. Electrons fill from the bottom, two per orbital with opposite spins, one in each of a degenerate pair first.
  3. Read the resultsThe bond order, the configuration, the number of unpaired electrons (paramagnetic or diamagnetic) and whether the species should exist are given above the diagram.
  4. Style and downloadShow the 1s core if your course draws it, pick colour or monochrome and the label style, then download SVG or PNG.

How it works

In molecular orbital theory, atomic orbitals of similar energy and matching symmetry on the two atoms combine into molecular orbitals that belong to the whole molecule. Two atomic orbitals give two molecular orbitals: an in-phase bonding orbital, lower in energy than the atomic orbitals, with electron density between the nuclei, and an out-of-phase antibonding orbital (marked *), higher in energy, with a node between the nuclei. For second-row diatomics the 2s orbitals give σ2s and σ*2s; the 2p orbitals pointing along the bond give σ2p and σ*2p; the two pairs of 2p orbitals perpendicular to it give two degenerate π2p and two degenerate π*2p orbitals.

Electrons are placed in the molecular orbitals in order of increasing energy (aufbau), at most two per orbital with opposite spins (Pauli), and singly with parallel spins in degenerate orbitals before any pairs up (Hund’s rule). The bond order is

bond order = (number of bonding electrons − number of antibonding electrons) / 2

A bond order above zero means the molecule is expected to be more stable than the separate atoms; a bond order of zero (He₂, Be₂, Ne₂) means it is not expected to exist as a stable molecule. A species with unpaired electrons is paramagnetic (attracted into a magnetic field); one with all electrons paired is diamagnetic. The 1s core orbitals hold equal numbers of bonding and antibonding electrons, so they never change the bond order and are often left out.

s–p mixing. For Li₂ to N₂ the 2s and 2p orbitals are close enough in energy to mix. Mixing lowers σ2s and raises σ2p, enough that σ2p ends up above the π2p orbitals. The order is then σ2s, σ*2s, π2p, σ2p, π*2p, σ*2p. For O₂, F₂ and Ne₂ the 2s–2p gap is larger, mixing is small, and σ2p lies below π2p: σ2s, σ*2s, σ2p, π2p, π*2p, σ*2p. The generator uses the mixed order for Li₂ to N₂, N₂⁺, N₂⁻, CO and CN⁻, and the unmixed order for O₂, F₂, Ne₂, their ions and NO. For NO, O₂ and the O₂ ions the choice does not change the bond order or the magnetism.

Heteronuclear molecules. The atomic orbitals of the more electronegative atom are drawn lower in energy, so its orbitals contribute more to the bonding orbitals. In HF the hydrogen 1s orbital combines only with the fluorine 2p orbital that points along the bond; the F 2s and the two other F 2p orbitals have no partner and stay nonbonding (n), so they do not count in the bond order.

Energies in the diagrams are schematic: they show the order of the levels, not measured values. Source: Flowers P, Theopold K, Langley R, Robinson WR et al. Chemistry 2e, section 8.4 Molecular Orbital Theory. OpenStax, Houston, 2019, openstax.org/books/chemistry-2e/pages/8-4-molecular-orbital-theory.

Worked example: the MO diagram of O₂

O₂, step by step. Each oxygen atom has 6 valence electrons (2s² 2p⁴), so O₂ has 12 valence electrons. Oxygen uses the unmixed order, with σ2p below π2p.

  1. σ2s takes 2 and σ*2s takes 2 (8 left).
  2. σ2p takes 2 (6 left).
  3. The two π2p orbitals take 4 (2 left).
  4. The last 2 go into the two degenerate π*2p orbitals, one in each with parallel spins (Hund’s rule).

Configuration: (σ2s)²(σ*2s)²(σ2p)²(π2p)⁴(π*2p)². Bonding electrons: 2 + 2 + 4 = 8; antibonding: 2 + 2 = 4. Bond order = (8 − 4) / 2 = 2, a double bond, as in the Lewis structure. But the two π* electrons are unpaired, so O₂ is paramagnetic with 2 unpaired electrons, which the Lewis structure (all electrons paired) cannot explain: liquid oxygen is attracted to a magnet.

Bond order and magnetism of diatomic molecules and ions (valence electrons)
SpeciesValence electronsBond orderMagnetism
H₂21Diamagnetic
He₂40 (not stable)Diamagnetic
Li₂21Diamagnetic
Be₂40 (not stable)Diamagnetic
B₂61Paramagnetic, 2 unpaired
C₂82Diamagnetic
N₂103Diamagnetic
O₂122Paramagnetic, 2 unpaired
F₂141Diamagnetic
Ne₂160 (not stable)Diamagnetic
O₂⁺112.5Paramagnetic, 1 unpaired
O₂⁻ (superoxide)131.5Paramagnetic, 1 unpaired
O₂²⁻ (peroxide)141Diamagnetic
N₂⁺92.5Paramagnetic, 1 unpaired
CO, CN⁻, NO⁺103Diamagnetic
NO112.5Paramagnetic, 1 unpaired

Along O₂⁺, O₂, O₂⁻, O₂²⁻ each added electron goes into a π* orbital, so the bond order falls from 2.5 to 2, 1.5 and 1, and the O–O bond gets longer and weaker.

Frequently asked questions

How do you draw a molecular orbital diagram?

Draw the valence atomic orbitals of each atom at the sides (2s and three 2p for second-row atoms). In the middle, draw the molecular orbitals in order of energy: σ2s, σ*2s, then π2p below σ2p for Li₂ to N₂ or σ2p below π2p for O₂ to Ne₂, then π*2p and σ*2p. Join each molecular orbital to the atomic orbitals it comes from with dashed lines, count the valence electrons and fill them from the bottom, two per orbital, one in each degenerate orbital first.

Why is O₂ paramagnetic?

O₂ has 12 valence electrons. After σ2s, σ*2s, σ2p and π2p are filled, the last two electrons go into the two degenerate π*2p orbitals, one in each with parallel spins (Hund’s rule). Those two unpaired electrons make O₂ paramagnetic, which a Lewis structure with all electrons paired cannot explain.

What is the bond order of N₂?

Three. N₂ has 10 valence electrons: (σ2s)²(σ*2s)²(π2p)⁴(σ2p)². That is 8 bonding and 2 antibonding electrons, so the bond order is (8 − 2) / 2 = 3, a triple bond. All electrons are paired, so N₂ is diamagnetic.

Why does the order of σ2p and π2p change?

In Li₂ to N₂ the 2s and 2p orbitals are close in energy and mix (s–p mixing). Mixing pushes σ2p up above the π2p orbitals. From O₂ on, the 2s–2p energy gap is larger, mixing is small, and σ2p lies below π2p as simple overlap predicts.

How do you calculate bond order from an MO diagram?

Count the electrons in bonding orbitals and in antibonding (*) orbitals, subtract and divide by two: bond order = (bonding − antibonding) / 2. Nonbonding electrons, such as the fluorine lone pairs in HF, are not counted. Core 1s electrons cancel, so you can use valence electrons only.

Does He₂ exist?

Not as a stable molecule. He₂ has 4 electrons: 2 in σ1s and 2 in σ*1s, so the bond order is (2 − 2) / 2 = 0 and there is no net bonding. He₂⁺, with one antibonding electron fewer, has a bond order of 0.5 and has been observed.

Is B₂ paramagnetic or diamagnetic?

Paramagnetic, with 2 unpaired electrons. Because of s–p mixing in B₂, the π2p orbitals lie below σ2p, so the last two of its 6 valence electrons go one each into the two π2p orbitals. Its bond order is (4 − 2) / 2 = 1. The paramagnetism of B₂ is the experimental evidence for the mixed order.

Make the whole figure in LabCanvas

Vector figure editor, slides, 3D models, protein structures and Prism-style graphs, in your browser.

Get started