Electron Configuration Calculator
What is the electron configuration of any element by atomic number?
Enter an element's atomic number or select it by name to get its full ground-state electron configuration, abbreviated noble gas notation, valence electron count, and periodic table block. Useful for chemistry coursework, exam prep, and quick reference.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Picture a multi-story car park. Each floor has a limited number of spaces, and drivers must fill the lowest available floor before moving to the next. Electrons behave similarly — they occupy the lowest-energy orbital available before filling higher ones. The order is not simply 1s, 2s, 2p, 3s, 3p, 3d. Energy levels overlap: the 4s orbital fills before 3d because, for most atoms, 4s sits at lower energy than 3d when all other electrons are present.
The filling sequence follows what is called the Aufbau (building-up) principle, supplemented by the n+l rule: fill orbitals in order of increasing n+l value, and when two orbitals share the same n+l, fill the one with the lower n first. This gives the diagonal mnemonic pattern you see on periodic table posters. The result is the ground-state configuration — the lowest total energy arrangement.
Once electrons are assigned to orbitals, the configuration is written as a string of subshell tokens: the principal quantum number, the subshell letter (s, p, d, or f), and a superscript for the electron count. The final token in the string identifies which block of the periodic table the element belongs to. An element ending in s belongs to the s block, ending in p to the p block, ending in d to the d block, and so on. This block assignment directly predicts chemical behavior, bonding patterns, and which electrons are easiest to remove.
When To Use This
Right tool, right situation
Use this tool when you need to verify a ground-state neutral atom configuration for coursework, exam preparation, or a quick sanity check before writing a reaction mechanism. It is also useful when determining which block an element belongs to — which predicts magnetic properties (d-block elements are often paramagnetic), oxidation state patterns, and periodic trends in atomic radius and ionization energy.
This tool is not appropriate for calculating configurations of ions. If you need Fe3+ or Cl-, you must manually remove or add electrons from the neutral configuration the tool provides, applying the correct ionization rule (remove s before d for cations). It also does not account for excited-state configurations, spin states, or the relativistic effects that become significant for elements beyond period 6 — configurations for elements 104 through 118 are theoretical predictions and some remain experimentally unconfirmed.
Common Mistakes
Why results sometimes look wrong
The most common mistake is applying the filling order to electron removal as well. When a transition metal loses electrons to form a cation, the s electrons go first — not the d electrons — because the 3d orbitals drop below 4s in energy once the atom is ionized. Iron loses its 4s2 electrons to become Fe2+, giving [Ar] 3d6, not [Ar] 3d4 4s2. Students who write Fe2+ configurations using the filling order get this backwards and lose marks.
A second frequent error is ignoring the known exceptions. Chromium and copper are the two most tested at the introductory level, but the periodic table contains roughly 20 elements where Aufbau prediction fails. Relying on the filling rules alone for elements 41 (Nb), 42 (Mo), 46 (Pd), 47 (Ag), 57 (La), 64 (Gd), 78 (Pt), and 79 (Au) will produce an incorrect answer.
A subtler mistake is confusing valence electrons with the total electron count in the outer shell. For zinc (Z=30), the 3d subshell is fully filled and largely inert in bonding — so zinc behaves like a 2-valence-electron element (just 4s2) despite having 10 electrons in 3d. Counting all outer-n electrons without checking whether the subshell is chemically active overstates reactivity.
The Math
Worked examples and deeper derivation
The filling order derives from the n+l rule. Assign each subshell a priority score equal to n (principal quantum number) plus l (angular momentum quantum number, where s=0, p=1, d=2, f=3). Lower score fills first; ties are broken by lower n. So 4s has score 4+0=4, and 3d has score 3+2=5 — 4s fills first.
Each subshell holds a maximum of 2(2l+1) electrons: s holds 2, p holds 6, d holds 10, f holds 14. The calculator walks through the filling sequence, subtracting each subshell capacity from the remaining electron count until all Z electrons are placed.
For noble gas shorthand, the tool identifies the largest noble gas with atomic number less than Z, reads its full configuration as the core, and strips those tokens from the full string. The remaining tokens form the valence portion, prefixed with the noble gas symbol in brackets.
Valence electron counting uses block assignment: for s- and p-block elements, count electrons where n equals the highest n in the configuration. For d-block elements, count outer s plus (n-1)d electrons. For f-block elements, count outer s electrons only for the standard definition, though some contexts include f electrons.
Expert Unlock
The thing most explanations skip
The Aufbau model treats electron-electron repulsion as an average field, which breaks down for heavier elements. Relativistic effects — particularly the contraction of s orbitals at high nuclear charge — alter the energy ordering of 5d versus 4f for lanthanides and 6d versus 5f for actinides. This is why lanthanum and actinium are sometimes placed in the f-block and sometimes in the d-block depending on which criterion (electron configuration vs. chemical behavior) takes priority. The configurations this tool uses for exceptions are experimentally verified ground states, but for elements 104 to 118 they represent the best available quantum chemical predictions, not direct spectroscopic confirmation.
Why does my element not follow the Aufbau filling order?
Need something this doesn't cover?
Suggest a tool — we'll build it →