Tool · orbital diagram
Electron configuration builder
Pick an element or add electrons one by one. Orbitals fill in order of energy; each box is one orbital and holds at most two electrons with opposite spins.
Boxes run from left to right in Madelung (n + l) filling order. Within a subshell, electrons first enter each orbital singly with parallel spins (Hund’s rule).
Frequently asked questions
How do you write an electron configuration?
Electrons are placed from the lowest-energy orbital upwards: 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p… Each orbital is followed by the number of electrons in it, written as a superscript. Oxygen, for example, is 1s² 2s² 2p⁴.
Why does 4s fill before 3d?
In potassium and calcium the 4s orbital is lower in energy than 3d. The filling order is summed up by the Madelung (n + l) rule: the orbital with the smaller n + l fills first, and if two are equal, the one with the smaller n comes first.
Are there exceptions to the rule?
Yes. In some elements, such as chromium and copper, a half-filled or completely filled d subshell is more stable, so one electron moves from 4s to 3d: chromium is [Ar] 3d⁵ 4s¹ and copper is [Ar] 3d¹⁰ 4s¹. This page flags every exception.
What does the noble gas in square brackets mean?
It is a shorthand. [Ar] stands for the configuration of argon, 1s² 2s² 2p⁶ 3s² 3p⁶, so iron can be written as [Ar] 3d⁶ 4s² instead of listing every inner orbital.
Real electron configurations: PubChem. Values for elements 104–118 are calculated, not measured. See also: electron configuration in the glossary, s, p, d and f blocks, the seven periods, molar mass calculator.