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.
- What it does
- Draws the molecular orbital diagram of a diatomic molecule or ion (H₂ to Ne₂, O₂⁻, N₂⁺, CO, NO, CN⁻, HF) with electrons filled, bond order and magnetism, as SVG or PNG.
- Formula
- Aufbau, Pauli and Hund’s rule filling; π2p below σ2p (s–p mixing) for Li₂–N₂, CO, CN⁻; bond order = (bonding − antibonding electrons) ÷ 2 (OpenStax Chemistry 2e, 8.4).
- Example
- O₂ has 12 valence electrons: (σ2s)²(σ*2s)²(σ2p)²(π2p)⁴(π*2p)², bond order = (8 − 4) ÷ 2 = 2, paramagnetic with 2 unpaired electrons.
Last updated
Loading Molecular orbital diagram generator…
At a glance
| Species | H₂ 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 |
| Filling | Aufbau, Pauli exclusion principle and Hund’s rule |
| Gives | MO electron configuration, bond order, unpaired electrons, paramagnetic or diamagnetic, expected to exist |
| Level | General chemistry, following OpenStax Chemistry 2e section 8.4; energies are schematic |
| Export | SVG or PNG, colour or monochrome, with or without the 1s core |
| Runs in | Your web browser; nothing is uploaded |
| Price | Free, no account needed |
What it does
How to use the molecular orbital diagram generator
- 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.
- 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.
- 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.
- 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
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 takes 2 and σ*2s takes 2 (8 left).
- σ2p takes 2 (6 left).
- The two π2p orbitals take 4 (2 left).
- The last 2 go into the two degenerate π*2p orbitals, one in each with parallel spins (Hund’s rule).
Configuration:
| Species | Valence electrons | Bond order | Magnetism |
|---|---|---|---|
| H₂ | 2 | 1 | Diamagnetic |
| He₂ | 4 | 0 (not stable) | Diamagnetic |
| Li₂ | 2 | 1 | Diamagnetic |
| Be₂ | 4 | 0 (not stable) | Diamagnetic |
| B₂ | 6 | 1 | Paramagnetic, 2 unpaired |
| C₂ | 8 | 2 | Diamagnetic |
| N₂ | 10 | 3 | Diamagnetic |
| O₂ | 12 | 2 | Paramagnetic, 2 unpaired |
| F₂ | 14 | 1 | Diamagnetic |
| Ne₂ | 16 | 0 (not stable) | Diamagnetic |
| O₂⁺ | 11 | 2.5 | Paramagnetic, 1 unpaired |
| O₂⁻ (superoxide) | 13 | 1.5 | Paramagnetic, 1 unpaired |
| O₂²⁻ (peroxide) | 14 | 1 | Diamagnetic |
| N₂⁺ | 9 | 2.5 | Paramagnetic, 1 unpaired |
| CO, CN⁻, NO⁺ | 10 | 3 | Diamagnetic |
| NO | 11 | 2.5 | Paramagnetic, 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:
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:
Does He₂ exist?
Not as a stable molecule. He₂ has 4 electrons: 2 in σ1s and 2 in σ*1s, so the bond order is
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
Link to this tool
Using it in a protocol, lab wiki or course page? Copy a link or citation.
<a href="https://www.labcanvas.com/tools/molecular-orbital-diagram-generator">Molecular orbital diagram generator</a> (LabCanvas)LabCanvas. Molecular orbital diagram generator [online tool]. https://www.labcanvas.com/tools/molecular-orbital-diagram-generatorMake the whole figure in LabCanvas
Vector figure editor, slides, 3D models, protein structures and Prism-style graphs, in your browser.
Get started