Each box is one orbital. An up arrow and a down arrow are the two possible electron spins. Results use the experimentally observed ground-state configurations.
Aufbau principle: electrons fill the lowest-energy subshell that still has room.
Pauli exclusion principle: an orbital holds at most two electrons, and they must have opposite spins.
Hund’s rule: in a subshell with several orbitals, electrons occupy separate orbitals with the same spin before any orbital gets a second electron.
| Subshell | Orbitals (boxes) | Maximum electrons |
|---|---|---|
| s | 1 | 2 |
| p | 3 | 6 |
| d | 5 | 10 |
| f | 7 | 14 |
1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p.
This order follows the Madelung rule: subshells fill in order of increasing (n + l), and when two subshells tie, the one with the lower n fills first. For example, 4s (4 + 0) fills before 3d (3 + 2).
Configuration: 1s2 2s2 2p4.
1s: [↑↓] 2s: [↑↓] 2p: [↑↓][↑][↑]
The four 2p electrons spread over three boxes by Hund’s rule, so oxygen has 2 unpaired electrons and is paramagnetic.
Configuration: [Ar] 4s2 3d6.
4s: [↑↓] 3d: [↑↓][↑][↑][↑][↑]
Iron has 4 unpaired electrons.
The two 4s electrons leave first, then one 3d electron, giving [Ar] 3d5.
3d: [↑][↑][↑][↑][↑]
Fe3+ has 5 unpaired electrons, the maximum possible for a d subshell, which makes it especially stable.
Although 4s fills before 3d, once the 3d subshell holds electrons it becomes lower in energy than 4s. The 4s electrons are also in the outermost shell, farther from the nucleus. So when a transition metal forms a positive ion, the electrons are removed from the highest shell (highest n) first, and within the same shell from the subshell with the higher l. That is why Fe2+ is [Ar] 3d6 and not [Ar] 4s2 3d4. Negative ions simply gain electrons in the normal Aufbau order.
A few elements do not follow the filling order exactly. A half-filled or completely filled d subshell is slightly more stable, and the energies of nearby subshells are very close, so one electron shifts from s to d. The calculator uses the observed ground states.
| Element | Expected | Observed |
|---|---|---|
| Chromium (Cr, 24) | [Ar] 4s2 3d4 | [Ar] 4s1 3d5 |
| Copper (Cu, 29) | [Ar] 4s2 3d9 | [Ar] 4s1 3d10 |
| Molybdenum (Mo, 42) | [Kr] 5s2 4d4 | [Kr] 5s1 4d5 |
| Palladium (Pd, 46) | [Kr] 5s2 4d8 | [Kr] 4d10 |
| Silver (Ag, 47) | [Kr] 5s2 4d9 | [Kr] 5s1 4d10 |
| Platinum (Pt, 78) | [Xe] 6s2 4f14 5d8 | [Xe] 6s1 4f14 5d9 |
| Gold (Au, 79) | [Xe] 6s2 4f14 5d9 | [Xe] 6s1 4f14 5d10 |
An orbital diagram shows at a glance how many electrons are unpaired. Atoms or ions with one or more unpaired electrons are paramagnetic and are weakly attracted to a magnetic field. Those with every electron paired are diamagnetic and are weakly repelled.
An orbital diagram (also called an orbital box diagram) shows how the electrons of an atom or ion are arranged in individual orbitals. Each orbital is a box, and each electron is an arrow, with up and down arrows showing the two spin directions.
An electron configuration such as 1s2 2s2 2p4 only tells you how many electrons are in each subshell. An orbital diagram also shows how those electrons are spread over the individual orbitals and whether they are paired or unpaired.
In a subshell with more than one orbital, put one electron in each box first, all with the same spin, before pairing any of them. For example, three 2p electrons are drawn as three single up arrows, not as one pair and one single.
An s subshell holds 2 electrons, p holds 6, d holds 10 and f holds 14. This comes from 1, 3, 5 and 7 orbitals, each holding a maximum of two electrons.
Replace the inner electrons with the symbol of the previous noble gas in square brackets, then write the remaining subshells. Iron, for example, is written [Ar] 4s2 3d6 instead of 1s2 2s2 2p6 3s2 3p6 4s2 3d6.
Both are used. Some textbooks write subshells in filling order (4s before 3d), others group them by shell number (3d before 4s). This calculator uses filling order. Follow the convention your teacher or exam board uses.
Disclaimer: this tool is intended for study and quick checks. Ground-state configurations are taken from the commonly accepted experimental data, and a few heavy elements are still debated. Anions are generated with the standard filling order. For exams, follow your syllabus conventions.