Electron Configuration Calculator

Enter an element symbol (Fe), name (iron), or atomic number (26) to get the full electron configuration in spdf notation and the noble-gas shorthand form, with valence count and block.

Science 118 elements spdf + noble gas Anomalies handled
Rate this calculator · 5.0 (1)

Electron Configuration

Element symbol or Z (1–118)

Instructions — Electron Configuration Calculator

  1. Enter the element symbol (e.g., Fe), its full name (iron), or its atomic number (26).
  2. The calculator builds the configuration using the Madelung (n+l) rule in the standard Aufbau order: 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p.
  3. It then applies the documented experimental anomalies — Cr, Cu, Nb, Mo, Ru, Rh, Pd, Ag, La, Ce, Gd, Pt, Au, Ac, Th, Pa, U, Np, Cm, Lr — taken from the NIST Atomic Spectra Database.
  4. The output shows the full configuration (1s² 2s² 2p⁶ …), the noble-gas shorthand ([Ar] 3d⁶ 4s²), the block (s, p, d, or f), the valence electron count, and the number of unpaired electrons (Hund estimate).

The calculator accepts uppercase or lowercase input, and atomic numbers between 1 (Hydrogen) and 118 (Oganesson).

Formulas

Each occupied subshell is written as:

n lx

where n is the principal quantum number (shell), l is the orbital letter (s, p, d, f), and x is the number of electrons in that subshell. Capacity per subshell follows from the orbital count:

  • s = 1 orbital × 2 = max 2 electrons
  • p = 3 orbitals × 2 = max 6 electrons
  • d = 5 orbitals × 2 = max 10 electrons
  • f = 7 orbitals × 2 = max 14 electrons

The order in which subshells fill is given by the Madelung rule: lower (n + l) first, ties broken by lower n. This gives:

1s < 2s < 2p < 3s < 3p < 4s < 3d < 4p < 5s < 4d < 5p < 6s < 4f < 5d < 6p < 7s < 5f < 6d < 7p

The noble-gas shorthand replaces the inner core of an atom with the symbol of the previous noble gas in brackets, e.g., iron (Fe, Z = 26) → [Ar] 3d⁶ 4s².

Reference

The six noble-gas cores used in shorthand notation are:

  • [He] = 1s² (Z = 2)
  • [Ne] = 1s² 2s² 2p⁶ (Z = 10)
  • [Ar] = [Ne] 3s² 3p⁶ (Z = 18)
  • [Kr] = [Ar] 3d¹⁰ 4s² 4p⁶ (Z = 36)
  • [Xe] = [Kr] 4d¹⁰ 5s² 5p⁶ (Z = 54)
  • [Rn] = [Xe] 4f¹⁴ 5d¹⁰ 6s² 6p⁶ (Z = 86)

The periodic table is divided into four blocks based on the subshell being filled by the outermost electrons: the s-block (groups 1–2 plus helium), the p-block (groups 13–18), the d-block (transition metals, groups 3–12), and the f-block (lanthanides and actinides). The block tells you which orbital type dominates the valence chemistry of the element.

Article — Electron Configuration Calculator

The electron configuration calculator, explained

An electron configuration lists how the electrons of an atom occupy its subshells, written as terms like 1s² 2s² 2p⁶. The calculator accepts any element from hydrogen (Z = 1) to oganesson (Z = 118) and returns both the full spdf form and the noble-gas shorthand, with anomalies for Cr, Cu, Mo, Ag, Au, Pt and others handled.

What is an electron configuration?

An electron configuration lists every occupied subshell of an atom together with how many electrons sit in each. It uses three pieces: the principal quantum number n (the shell), the orbital letter l (s, p, d, or f), and a superscript giving the electron count in that subshell. Carbon (Z = 6) is 1s² 2s² 2p². Iron (Z = 26) is 1s² 2s² 2p⁶ 3s² 3p⁶ 3d⁶ 4s².

The configuration is governed by three physical constraints. The Pauli exclusion principle caps any orbital at two electrons with opposite spins. The Aufbau principle says electrons enter the lowest-energy subshell available. Hund's rule arranges electrons inside a subshell to maximize parallel spins. Together they reproduce nearly every ground-state configuration measured in atomic spectroscopy.

Did you know

The terms s, p, d, and f are historical spectroscopic abbreviations for "sharp," "principal," "diffuse," and "fundamental" — names given to line series in the 1880s, decades before quantum mechanics gave them meaning as orbital angular momentum labels.

Aufbau order and the Madelung rule

The Madelung rule, also called the n + l rule, gives the standard filling order. Subshells fill from lowest n + l upward; when two share the same n + l, the one with lower n fills first. So 3d (n + l = 5) fills after 4s (n + l = 4), but before 4p. The full sequence runs 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p.

The rule is a useful approximation, not a law of physics. Real orbital energies depend on nuclear charge and the partial screening of inner electrons. Past Z = 20, two named subshells often sit close enough in energy that the strict order breaks down, which is where anomalies appear.

Madelung order — memorize this once
1s 2s 2p 3s 3p 4s 3d
4p 5s 4d 5p 6s 4f 5d
6p 7s 5f 6d 7p

Reading spdf notation

The format n lx tells you three things at once. The leading digit (n) is the shell number, the letter is the subshell type, and the superscript is the electron count. Sulfur is 1s² 2s² 2p⁶ 3s² 3p⁴ — the superscripts sum to 16, matching Z.

Each subshell has a fixed capacity from 2(2l + 1): one orbital with two spins for s, three for p, five for d, seven for f. The caps are 2, 6, 10, and 14. A configuration that exceeds those numbers (3p⁷, 3d¹¹) is wrong by construction.

  • 1s = 2 electrons max (1 orbital)
  • 2p = 6 electrons max (3 orbitals: 2px, 2py, 2pz)
  • 3d = 10 electrons max (5 orbitals)
  • 4f = 14 electrons max (7 orbitals)
  • Total electrons in the configuration must equal the atomic number Z
  • Order follows Madelung n + l, but the written form is conventionally sorted by shell

Noble-gas shorthand explained

The noble-gas shorthand condenses an atom's filled inner shells into the symbol of the previous noble gas, in square brackets. Sodium (Z = 11) compresses from 1s² 2s² 2p⁶ 3s¹ to [Ne] 3s¹. Iron is [Ar] 3d⁶ 4s². The bracketed part stands for the full configuration of the noble gas, so [Ar] = 1s² 2s² 2p⁶ 3s² 3p⁶.

Six noble-gas cores are in regular use: [He], [Ne], [Ar], [Kr], [Xe], and [Rn]. The shorthand never changes the physics, but for a transition metal or a lanthanide it cuts the written length by roughly two thirds and makes the valence electrons jump out of the formula.

Tip

When the calculator gives you a shorthand like [Xe] 4f⁷ 6s², everything outside the bracket is the valence shell — those are the electrons that interact with neighbouring atoms in bonding and reactions.

Electron configuration anomalies

Roughly twenty elements have ground states that disagree with strict Madelung filling. The textbook cases are chromium (Z = 24) and copper (Z = 29). Naive Aufbau predicts [Ar] 3d⁴ 4s² and [Ar] 3d⁹ 4s². The measured ground states are [Ar] 3d⁵ 4s¹ and [Ar] 3d¹⁰ 4s¹. A half-filled 3d⁵ or full 3d¹⁰ gains enough exchange-energy stabilization to overcome the small 4s–3d gap.

The same pattern repeats one row down. Molybdenum mirrors chromium with [Kr] 4d⁵ 5s¹, and silver mirrors copper with [Kr] 4d¹⁰ 5s¹. Palladium goes further, putting both 5s electrons into 4d for [Kr] 4d¹⁰ with no 5s occupancy at all.

Cr
Predicted (Aufbau)
[Ar] 3d⁴ 4s²
Strict filling
Cr
Observed (NIST)
[Ar] 3d⁵ 4s¹
Half-filled d⁵

Anomalies in the f-block follow the same logic. Gadolinium (Z = 64) shows [Xe] 4f⁷ 5d¹ 6s², parking the eighth f-block electron in 5d. Platinum, gold, lanthanum, thorium, uranium, curium, and lawrencium each have documented exceptions, applied here from the NIST spectra database.

Not every chemistry textbook lists all the anomalies

Introductory texts often mention only Cr and Cu. A few add Mo, Ag, and Au. The full count past Z = 40 is closer to twenty, and the gas-phase ground states for the heaviest actinides are still being refined experimentally. If a homework key disagrees with this calculator, it is usually the textbook leaning on the simplified rule.

Hund's rule and the Pauli principle

The Pauli exclusion principle says no two electrons in an atom can share all four quantum numbers (n, l, ml, ms). Practically that caps each orbital at two electrons with opposite spins. Hund's rule then says that within a single subshell, electrons spread out singly with parallel spins before any of them pair up.

Nitrogen (Z = 7) is the classic example. Its 2p subshell has three electrons, and Hund places each in a different p orbital with the same spin: 2px¹ 2py¹ 2pz¹. That gives nitrogen its unpaired electrons and its paramagnetism — the same exchange-energy effect that drives the d-block anomalies.

Electron configuration of ions

To write an ion's configuration, start from the neutral atom and adjust. Cations lose electrons from the highest-n s subshell first, then from d or p as needed. Fe is [Ar] 3d⁶ 4s², but Fe²⁺ is [Ar] 3d⁶ — the two 4s electrons leave before any 3d ones. Fe³⁺ is [Ar] 3d⁵, a stable half-filled d⁵.

Anions add electrons into the next available subshell. Chloride (Cl⁻) gains one electron to fill 3p⁶, becoming isoelectronic with argon: [Ne] 3s² 3p⁶. Oxide (O²⁻) gains two to reach the neon configuration. Isoelectronic species share configurations despite having different nuclear charges.

Common electron configuration mistakes

The most frequent error is forgetting that 4s fills before 3d but is removed before 3d during ionization. The order reflects a real shift: in a neutral potassium atom, 4s is the lowest available orbital, while in a transition-metal cation 3d has dropped below 4s in energy.

Other recurring mistakes: writing 2d (d starts at n = 3); writing 3f (f starts at n = 4); exceeding subshell capacity; or missing the Cr/Cu/Mo/Ag/Au/Pt anomalies. Check the totals — superscripts always sum to Z.

FAQ

At neutral Z values around potassium and calcium, the 4s orbital lies slightly lower in energy than 3d because s orbitals penetrate the core electron cloud more effectively. Once the d-block begins, however, 3d drops below 4s, which is why ionization removes 4s electrons first.
The standard anomalies are Cr ([Ar] 3d⁵ 4s¹), Cu ([Ar] 3d¹⁰ 4s¹), Nb, Mo, Ru, Rh, Pd, Ag, La, Ce, Gd, Pt, Au, Ac, Th, Pa, U, Np, Cm, and Lr. They occur because half-filled and fully-filled d and f subshells gain extra stability from exchange energy.
The Madelung (or n+l) rule states that orbitals are filled in order of increasing n + l, with ties broken by lower n. It reproduces the Aufbau sequence 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p.
Start from the neutral atom configuration. For cations, remove electrons first from the highest-n s subshell, then from d or p as needed. For anions, add electrons to the next available subshell using the same Aufbau order. Example: Fe²⁺ is [Ar] 3d⁶ (the two 4s electrons leave first).
It compresses the inner core of an atom by replacing it with the previous noble gas in square brackets. For example, sulfur (Z = 16) is written [Ne] 3s² 3p⁴ instead of 1s² 2s² 2p⁶ 3s² 3p⁴. The two forms describe the same configuration.
An s subshell holds 2 electrons, a p subshell holds 6, a d subshell holds 10, and an f subshell holds 14. The cap follows from 2(2l+1): two spins per orbital, with 2l+1 orbitals per subshell.
The Pauli exclusion principle forbids any two electrons in the same atom from sharing all four quantum numbers — so an orbital holds at most two electrons (with opposite spins). Hund's rule then says that, within a degenerate subshell, electrons spread out singly with parallel spins before pairing up.
A half-filled 3d⁵ configuration maximizes the number of parallel spins, which gives a stabilizing exchange interaction larger than the cost of promoting one electron from 4s to 3d. Copper does the analogous trick for a full 3d¹⁰.
The block is set by the last subshell to receive electrons. Hydrogen and helium plus groups 1–2 are s-block; groups 13–18 are p-block; transition metals (groups 3–12) are d-block; lanthanides and actinides are f-block.