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.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
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.

Writing the configuration of iron for a chemistry exam
Atomic number 26, full notation
Iron gives 1s2 2s2 2p6 3s2 3p6 3d6 4s2. The 3d subshell has 6 electrons, leaving it partially filled — which is why iron readily forms Fe2+ (loses 4s electrons first) and Fe3+ (then one 3d). Understanding this helps predict iron's common oxidation states.
Spotting the chromium exception before an exam catches you out
Atomic number 24, full notation
Aufbau predicts 3d4 4s2, but the actual configuration is 3d5 4s1. One electron migrates from 4s to 3d to achieve a half-filled d subshell, which is energetically favorable. This is one of the most commonly tested exceptions — students who memorize the rule rather than the exception lose marks.
A lab technician quickly checking noble gas shorthand for a report
Atomic number 47 (Silver), noble gas shorthand
Silver shows [Kr] 4d10 5s1 rather than the Aufbau-predicted [Kr] 4d9 5s2. This is another filled-d exception. Noble gas notation makes the valence region immediately visible without listing the full 47-electron string, which is exactly what a report or publication needs.
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?

What is the Aufbau principle and why do some elements break it?
The Aufbau principle says electrons fill the lowest available energy orbital first, following the 1s, 2s, 2p, 3s sequence. A handful of elements — most notably chromium and copper — deviate because a half-filled or fully filled d subshell is slightly lower in energy than the predicted arrangement, so one electron shifts from the outer s orbital into the d subshell. These are called Aufbau exceptions and must be memorized for most chemistry courses.
How do I find the number of valence electrons from the electron configuration?
For main-group elements (s and p blocks), valence electrons are those in the highest principal quantum number shell. For carbon (1s2 2s2 2p2), that is 4 electrons in n=2. For transition metals (d block), valence electrons include the outer s electrons plus the d electrons in the shell below — which is why transition metals can have variable valence. The calculator shows this count directly below the configuration.
What does noble gas shorthand notation mean in an electron configuration?
Noble gas shorthand replaces the inner-core electrons with the symbol of the preceding noble gas in square brackets, then lists only the outer electrons. For potassium, the full notation is 1s2 2s2 2p6 3s2 3p6 4s1, but the noble gas shorthand is [Ar] 4s1 because argon accounts for the first 18 electrons. This makes it faster to read the chemically relevant valence region and is standard notation in textbooks and journals.

Need something this doesn't cover?

Suggest a tool — we'll build it →