Electron configuration notation is a shorthand way of writing how electrons are arranged in the energy levels, sublevels, and orbitals of an atom. You enter the element’s atomic number, and the notation shows the order in which its electrons fill those levels, following the Aufbau principle, Hund’s rule, and the Pauli exclusion principle. The result is a compact string like 1s² 2s² 2p⁶ that tells you exactly where every electron sits.
Formula
The configuration is built from the orbital filling order, which is determined by the (n + ℓ) rule: orbitals fill in order of increasing n + ℓ, and when two orbitals have the same n + ℓ, the one with the smaller n fills first. The order is:
- 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p
Each orbital holds a maximum of 2 electrons (Pauli exclusion principle). The s sublevel has 1 orbital (2 electrons), p has 3 orbitals (6 electrons), d has 5 orbitals (10 electrons), and f has 7 orbitals (14 electrons). The notation writes the principal quantum number n, then the sublevel letter, then a superscript showing how many electrons occupy that sublevel. For iron (Z = 26), the full configuration is:
1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d⁶
This calculator generates that string directly from the atomic number. It also gives the noble-gas shorthand (e.g., [Ar] 4s² 3d⁶ for iron) and counts the unpaired electrons, which are the ones that determine an atom’s magnetic behavior.
Worked Example
Using the default atomic number Z = 26 (iron):
- Fill 1s: 2 electrons (total 2)
- Fill 2s: 2 electrons (total 4)
- Fill 2p: 6 electrons (total 10)
- Fill 3s: 2 electrons (total 12)
- Fill 3p: 6 electrons (total 18)
- Fill 4s: 2 electrons (total 20) — note 4s fills before 3d
- Fill 3d: remaining 6 electrons (total 26)
The result is 1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d⁶. The noble-gas shorthand replaces the first 18 electrons (the argon core) with [Ar], giving [Ar] 4s² 3d⁶. The 3d sublevel has 5 orbitals; with 6 electrons, Hund’s rule says they occupy each orbital singly before pairing, so 4 orbitals have one electron and 1 orbital has a pair — giving 4 unpaired electrons. Iron is therefore paramagnetic.
Assumptions
- The configuration follows the Aufbau principle for neutral ground-state atoms.
- No exceptions are applied automatically; see the Common Mistakes section for chromium and copper.
- The noble-gas shorthand uses the nearest preceding noble gas (He, Ne, Ar, Kr, Xe, Rn, Og).
- Unpaired electron count assumes Hund’s rule (maximum multiplicity).
How to Read the Notation
Each term has three parts. The number is the principal quantum number (shell), the letter is the sublevel type (s, p, d, f), and the superscript is the electron count in that sublevel. For example, in 2p⁶, the “2” means the second shell, “p” means the p sublevel, and “⁶” means six electrons fill all three p orbitals. The sum of all superscripts must equal the atomic number. If you add 2 + 2 + 6 + 2 + 6 + 2 + 6 for iron, you get 26.
The noble-gas shorthand is a time-saver for large atoms. Instead of writing 1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d¹⁰ 4p⁶ 5s² 4d¹⁰ 5p⁶ 6s² for cesium (Z = 55), you write [Xe] 6s¹. The brackets represent the full configuration of the preceding noble gas, and only the electrons beyond that core are written out.
How to Choose the Correct Order
The most common error is filling 3d before 4s. The (n + ℓ) rule explains why 4s (n + ℓ = 4 + 0 = 4) fills before 3d (n + ℓ = 3 + 2 = 5). For the same n + ℓ value, the lower n fills first: 3d (5) before 4p (5), and 4d (6) before 5p (6). A reliable shortcut is the diagonal rule, where you follow arrows drawn diagonally across the periodic table’s block layout.
For the f-block elements (lanthanides and actinides), the 4f sublevel fills after 6s and before 5d. For example, cerium (Z = 58) is [Xe] 6s² 4f¹ 5d¹, not [Xe] 6s² 4f², because a half-filled d sublevel is slightly more stable. The calculator handles these by following the standard order, but you should verify any f-block element against a reference table.
Common Mistakes and Exceptions
Two elements break the simple Aufbau order: chromium (Z = 24) and copper (Z = 29). Chromium is [Ar] 4s¹ 3d⁵, not [Ar] 4s² 3d⁴, because a half-filled d sublevel (5 electrons in 5 orbitals) is more stable than a full 4s and 4 electrons in d. Copper is [Ar] 4s¹ 3d¹⁰, not [Ar] 4s² 3d⁹, because a completely filled d sublevel is extra stable. Other exceptions exist among the transition metals (niobium, molybdenum, ruthenium, rhodium, palladium, silver, platinum, gold) and some f-block elements. The calculator follows the simple order, so for these elements you must manually adjust the last two sublevels.
Another common mistake is confusing the order of filling with the order of removal. When forming cations, electrons are removed from the highest n value first, not the last sublevel filled. For iron(III), you remove two 4s electrons and one 3d electron, giving [Ar] 3d⁵, not [Ar] 4s² 3d³. This is because the 4s orbital is higher in energy than 3d once both are occupied.
Why It Matters in Chemistry
The configuration predicts an element’s chemical behavior. The electrons in the outermost shell (the valence electrons) determine how an atom bonds. For main-group elements, the valence electrons are the s and p electrons in the highest n. For transition metals, the (n−1)d electrons also participate. For example, iron’s [Ar] 4s² 3d⁶ shows 8 valence electrons, which explains its common +2 and +3 oxidation states (losing the 4s² and one or more 3d electrons).
The unpaired electron count predicts magnetic properties. Atoms with unpaired electrons are paramagnetic (attracted to a magnetic field); atoms with all electrons paired are diamagnetic (weakly repelled). Oxygen (Z = 8) has two unpaired electrons in its 2p sublevel, which is why liquid oxygen is strongly attracted to magnets. This property is also essential in interpreting electron spin resonance (ESR) spectra and in designing magnetic materials.
Limits of the Notation
The notation describes a simplified, average picture. It treats electrons as occupying fixed orbitals, but in reality, electron positions are probabilistic (described by wavefunctions). The Aufbau principle works for ground-state neutral atoms but fails for some ions and excited states. For example, the configuration of an excited helium atom (one electron in 1s, one in 2s) is written 1s¹ 2s¹, but the actual energy depends on electron-electron repulsion, which the simple notation does not capture.
For very heavy elements (Z > 100), relativistic effects alter orbital energies, and the simple (n + ℓ) rule becomes unreliable. These elements are studied computationally, and their configurations are confirmed experimentally rather than predicted from first principles. The notation also does not show the shape or orientation of orbitals, which requires separate diagrams (s is spherical, p is dumbbell-shaped along x, y, z axes, etc.).
Frequently Asked Questions
Why does 4s fill before 3d? Because the 4s orbital has a lower energy than 3d, as determined by the (n + ℓ) rule: 4s has n + ℓ = 4, while 3d has n + ℓ = 5. Lower energy fills first. However, once both are occupied, the 3d orbital is actually lower in energy, which is why electrons are removed from 4s first when forming cations.
What is the difference between electron configuration and orbital diagram? The configuration is a compact text notation (1s² 2s² 2p⁶), while an orbital diagram uses boxes or circles for each orbital with arrows for each electron. The diagram shows unpaired electrons visually and makes Hund’s rule obvious. The configuration tells you the count but not the spin arrangement.
How do I write the configuration for an ion? Start with the neutral atom’s configuration, then remove electrons from the highest principal quantum number first (not the last sublevel written). For a cation like Fe²⁺, remove two 4s electrons from [Ar] 4s² 3d⁶ to get [Ar] 3d⁶. For an anion like O²⁻, add electrons to the next available orbital: O is [He] 2s² 2p⁴, so O²⁻ is [He] 2s² 2p⁶.
Why is chromium’s configuration an exception? Chromium is [Ar] 4s¹ 3d⁵ instead of [Ar] 4s² 3d⁴ because a half-filled d sublevel (one electron in each of five orbitals) has lower energy due to reduced electron-electron repulsion and exchange energy stabilization. The same logic explains copper’s [Ar] 4s¹ 3d¹⁰.
Can this calculator handle all 118 elements? Yes, for Z from 1 to 118 it generates the standard Aufbau configuration. However, for elements with known exceptions (Cr, Cu, Nb, Mo, Ru, Rh, Pd, Ag, Pt, Au, and several f-block elements), you must manually adjust the result. The calculator’s unpaired electron count also assumes the simple order, so it will be wrong for those exceptions.
What does the superscript number mean? It is the number of electrons in that sublevel, not the number of orbitals. For example, 2p⁶ means 6 electrons in the p sublevel, which has 3 orbitals holding 2 electrons each. The maximum superscripts are s², p⁶, d¹⁰, and f¹⁴.
Related
Formula used
in z | Atomic number (Z) | - | 26 | 1 | 118 out config | Electron configuration | - | configstr(z) | 0 out noble | Noble-gas shorthand | - | noble(z) | 0 out unpaired | Unpaired electrons | - | unpaired(z) | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- PCR Primer Tm Calculation: How to Compute It
- Molecules to Moles Conversion Steps1.0000 mol
- Mean Rate of Reaction: How to Calculate It0.0050 mol/s
- Propane Vapor Pressure Calculator178.7 kPa
- mRNA vs Mature mRNA: Key Differences4,750
- Mass Fraction to Mole Fraction Calculator0.5195 fraction