MO diagrams
An MO diagram shows how the atomic orbitals of two atoms combine into molecular orbitals: the atomic orbitals (AO) of each atom at the sides, the molecular orbitals (MO) in the middle, dashed lines from each MO to the orbitals it is built from, and the electrons filled in as half-arrows. Under it, the bond order is worked out and the magnetism is stated.
Insert an MO diagram
Section titled “Insert an MO diagram”- Select Insert > MO Diagram….
- Type a diatomic molecule or ion: from H2 to Ne2 (
O2,N2+,O2-,O2 2-for the peroxide ion,He2), orCO,CN-,NO,NO+,HForOH-. - Check the line under the box. It gives the number of valence electrons and which order of molecular orbitals applies, or says why the diagram cannot be drawn.
- Choose the options. The preview shows the diagram as it will be inserted.
- Press Enter or click Insert.
The diagram is placed below the drawings already on the canvas (at the center of the view when the canvas is empty) and stays selected; the insert is one undo step. To change it later, double-click it, or right-click it and select Edit Figure….

Options
Section titled “Options”| Option | Choices |
|---|---|
| Orbitals | Boxes (the default) or Lines: each orbital a short level line with the electrons across it, as many general chemistry books draw them. The dashed lines then meet the level lines’ ends. |
| Degenerate boxes | Separate, joined by ties (the default) or Joined in one strip with shared walls. Boxes only. |
| Electrons | Half-arrows or Full arrows. |
| Show | Worksheet draws empty boxes and leaves out the bond order and the magnetism. Electrons in the atomic orbitals fills the boxes at the sides with each neutral atom’s valence electrons. Energy axis, Notes and Title. |
The Style section of the window sets the figure’s font, text size, line thickness and color, and can set the orbital labels in italic (σ, π, 2p), as many textbooks print them. Follow the theme draws the figure black, and white in dark mode; a chosen color stays the same in both. A figure takes the document’s structure style when it is inserted; Match document style takes it again after the document’s style has changed. Dragging a figure’s handles scales all of it.
What the diagram shows
Section titled “What the diagram shows”- Valence orbitals only. For Li2 to Ne2, the 1s core orbitals are not drawn; the note under the diagram says so.
- The order of the molecular orbitals follows the textbook rule. From Li2 to N2, mixing of the 2s and 2p orbitals puts π2p below σ2p. From O2 to Ne2, σ2p lies below π2p. An ion keeps the order of its neutral molecule.
- Electrons fill the molecular orbitals from the bottom, one electron in each orbital of a degenerate pair before either takes a second (Hund’s rule).
- Bond order is worked out as (bonding electrons − antibonding electrons) / 2. A bond order of 0, as in He2, means no bond is predicted.
- Magnetism: unpaired electrons make the molecule paramagnetic. O2 has two, which no Lewis structure shows.
- Ions: the atoms at the sides are drawn neutral, and a note says how many electrons the ion has more or fewer.
The heights are qualitative. The atomic orbitals stand at heights from the experimental orbital potential energies that general and inorganic chemistry books print (J. B. Mann, T. L. Meek and L. C. Allen, J. Am. Chem. Soc. 2000, 122, 2780), compressed, so the 2s-2p gap grows from B2 to Ne2 as it does in the atoms; the axis has no numbers. Every valence orbital drawn here is in that table. Li and Be have no occupied 2p, so the table has no value for it: their 2p is placed at the 2s-2p gap of boron, the note says so.
Heteronuclear diatomics
Section titled “Heteronuclear diatomics”For CO, CN-, NO, NO+, HF and OH-, the less electronegative atom is on the left and the more electronegative on the right, and each column is headed with its atom: AO (C), AO (O). The orbitals of the more electronegative atom lie lower, so most bonding MOs lie mostly on that atom and the antibonding MOs mostly on the other (the exception is the HOMO of CO and its partners, below).
The heights follow the same rules as the homonuclear diagrams:
-
Each atom keeps the 2s-2p gap it has in its own homonuclear diagram, so the O 2s-2p gap in CO is as tall as in O2. Diagrams set side by side on a page agree about each atom.
-
The two atoms are placed so that the steps between neighboring atomic orbitals keep the order of their energies: a smaller energy step is never drawn taller than a larger one. In CO, the C 2s and the O 2p are close in energy, and the drawing shows it.
-
CO, CN-, NO+ and NO use the order of N2, with σ2p above π2p. In CO, the HOMO σ2p lies mostly on carbon, which is why CO binds to metals through carbon. The radicals CN and CO+ have the same HOMO with one electron in it, so their unpaired electron lies mostly on carbon too, and the notes say so.
-
HF and OH-: the H 1s combines only with the 2p orbital that points along the bond. The 2s and the other two 2p orbitals have no partner and are drawn as nonbonding levels, labeled n, joined only to their own atom.
For CO and HF, the order matches the photoelectron spectrum, and the note under the diagram gives the measured ionization energies. For CN-, NO, NO+, and OH-, the note says that the order is the textbook model of the isoelectronic molecule.
Hückel diagrams
Section titled “Hückel diagrams”A Hückel diagram shows the pi levels of a conjugated hydrocarbon in simple Hückel theory: each level at its energy α + xβ, the electrons filled in, the HOMO and LUMO named, and the delocalization energy worked out. β is negative, so the bonding levels lie below α.
- To use a molecule you drew, select it (or one of its atoms).
- Select Insert > Hückel Diagram…. The window reads the selected molecule’s pi system. Charges and radical dots set the electron count: a carbocation next to the pi system brings no pi electron, a carbanion brings two, and a radical one.
- Or type a named system:
ethylene,allyl cation,allyl radical,allyl anion,butadiene,pentadienyl cation,pentadienyl anion,hexatriene,cyclopropenyl cation,cyclobutadiene,cyclopentadienyl anion,cyclopentadienyl cation,benzene,tropylium,cyclooctatetraene,benzyl radical,benzyl cation,benzyl anion, ornaphthalene. Some other names work too, such asethene,1,3-butadiene,cyclopentadienide, andcot. - Press Enter or click Insert.
Under the levels, the diagram gives the number of pi electrons and the delocalization energy in units of β, measured against the largest set of separate double bonds (benzene: 2β). For a single planar ring it states Hückel’s 4n + 2 rule. Where simple Hückel theory misleads, a note says so (square cyclobutadiene, planar cyclooctatetraene).
A heteroatom whose lone pair joins the pi system (as in aniline or phenoxide) and a triple bond are not supported; the window says so when the selection has them.

Computed MO levels
Section titled “Computed MO levels”Compute > MO Levels computes the valence molecular orbitals of the selected molecule with GFN2-xTB in the browser and draws their energies on the canvas. The molecule is built in 3D (hydrogens that are not drawn are added) and relaxed first, as for an IR spectrum. Select one molecule first. When MO Levels is unavailable, its tooltip says why.
The figure has a true energy axis in eV: the six highest occupied levels and up to four empty levels within 8 eV of the LUMO, degenerate levels side by side, HOMO and LUMO named, and the gap between them. The figure is titled with the molecule’s formula. Levels left out are counted in the note under the figure.
- These are semi-empirical orbital energies from a minimal valence basis. The order of the top levels is usually right; the spacing and the values are not ionization energies, and the empty levels are only qualitative. The note under every figure says so.
- For molecules with a measured photoelectron spectrum (N2, CO, HF, HCl, CH4, NH3, CO2, H2O, formaldehyde), the note compares the pattern of the top levels with the measured order. GFN2-xTB gets it right for CO, HF, CH4 and NH3 and wrong for N2 and CO2; those figures carry a warning.
- Only closed-shell molecules: a radical (an odd number of electrons) is refused, with the reason.
Double-click the figure to change how it is drawn; to compute the levels again, select the molecule and use Compute > MO Levels again.
From a script
Section titled “From a script”The script command mo draws the same diagrams: mo O2, mo N2+, mo "O2 2-", Hückel diagrams with mo benzene or mo stilbene method: huckel for a drawn molecule named stilbene, and computed levels with mo water method: xtb for a drawn molecule named water. See Commands.