Electron Configuration Calculator

Iron has 26 electrons, and they are not scattered at random around the nucleus. They sit in a definite order: 1s2 2s2 2p6 3s2 3p6 4s2 3d6. That string is the electron configuration of iron, and it tells you at a glance how many electrons each shell and subshell holds, how many electrons iron can use for bonding, and why iron sits in the d-block in period 4. This free electron configuration calculator works out that string, and the same facts, for any element from hydrogen (Z 1) to oganesson (Z 118).

At the defaults, iron (Z 26), the full configuration is 1s2 2s2 2p6 3s2 3p6 4s2 3d6, and the noble gas shorthand is [Ar] 3d6 4s2. Iron has 8 valence electrons and 4 unpaired electrons. The calculator also draws two pictures of the atom: a shell diagram with one dot per electron on rings for each shell, and an orbital box diagram with up and down arrows showing how the electrons sit in the valence subshells. Both pictures redraw themselves every time you change the element.

Your Element

Enter either the atomic number from 1 to 118 or the element symbol, from H to Og. If both boxes are filled in, the symbol wins. The calculator gives the ground state configuration of the neutral atom, following the Aufbau filling order with the 20 verified exceptions applied.

Iron (Fe), Z = 26 Fe Shells: 2, 8, 14, 2 electrons Orbital diagram (valence subshells) 4s2 electrons3d6 electrons Noble-gas shorthand: [Ar] 3d6 4s2
Your element
Element
Atomic Number (Z)
Block
Period
The configuration
Full Electron Configuration
Noble-Gas Shorthand
Valence Electrons
Unpaired Electrons
Aufbau Exception
Chromium and copper are the famous exceptions: each moves one electron from the 4s subshell into the 3d subshell, giving a half filled 3d5 or a filled 3d10. This calculator applies all 20 verified exceptions, which are listed in the formula section of the article below.
Atomic NumberElementFull ConfigurationNoble-Gas Shorthand

The first 20 elements, hydrogen to calcium, in Aufbau order. The highlighted row is the element you entered. Chromium, at 24, is the first element where the simple order breaks down, so it sits just outside this table.

Powered by Techraxy

Creator & Reviewer

Faiq Ur Rahman

Founder & CEO, Techraxy

Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.

Share:

Rate this Tool

User Ratings:

0
0 out of 5 stars (based on 0 reviews)
Excellent
Very good
Average
Poor
Terrible

ADVERTISEMENT

ADVERTISEMENT

What is an Electron Configuration Calculator?

An electron configuration calculator is a tool that works out how the electrons of an atom are arranged among its shells and subshells. A shell is the set of states that share a principal quantum number n, and a subshell is the set of states within a shell that share an azimuthal quantum number l. The labels s, p, d and f stand for l values 0, 1, 2 and 3. A subshell holds at most 2 electrons in s, 6 in p, 10 in d and 14 in f, because a subshell with quantum number l has 2l plus 1 orbitals and each orbital holds at most 2 electrons of opposite spin. That last rule is the Pauli exclusion principle: no two electrons in one atom can share the same set of four quantum numbers.

Three rules decide where the electrons go in the ground state, which is the lowest energy arrangement. The Aufbau principle says electrons fill the lowest energy subshells first, in the order 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p. That order follows the Madelung rule: subshells fill by increasing n plus l, and ties are broken by lower n, which is why 4s fills before 3d even though 3 has a smaller principal quantum number than 4. The Pauli principle caps each orbital at 2 electrons. Hund’s rule says that within a subshell, electrons occupy the orbitals singly first, with parallel spins, and only start pairing once every orbital holds one electron. That is why the p subshell starts pairing on its fourth electron, the d subshell on its sixth and the f subshell on its eighth.

The calculator reports five things beyond the configuration itself. The noble gas shorthand replaces the core electrons with the symbol of the preceding noble gas in square brackets, so iron becomes [Ar] 3d6 4s2. The valence electrons are the electrons available for bonding. The unpaired electrons are the singly occupied orbitals counted by Hund’s rule. The block is s, p, d or f, set by the subshell of the last electron added, and the period is the highest principal quantum number among the occupied subshells. Helium is the one oddity of the block rule: it is an s-block atom, 1s2, even though it is conventionally placed with the noble gases.

How to Use the Electron Configuration Calculator

Enter the atomic number from 1 to 118, or the element symbol, from H to Og. Either box works on its own. If both boxes are filled in, the symbol wins, so clear the symbol box if you want to work from the number alone. The calculator updates as you type, and the Calculate button runs it again at any time. Typing a number fills in its symbol automatically, and typing a symbol fills in its number.

Read the results in order. The element line gives the name, the symbol and the atomic number. The block and period lines place the element in the periodic table. The full configuration lists every occupied subshell in filling order, and the noble gas shorthand lists the subshells beyond the preceding noble gas, grouped by shell. Valence electrons and unpaired electrons are counted as described in the formula section below. The last line says whether the element is one of the 20 verified exceptions to the Aufbau order, and if it is, it shows what the simple order would have predicted.

The First 20 Elements tab puts hydrogen to calcium side by side with their full configurations and shorthand forms, and the highlighted row is the element you entered. The Compare tab is a reference table: it stays filled in even if the main tab shows an error, and the highlight simply disappears until you enter a valid element again. If you enter a number outside 1 to 118, a decimal number, or a symbol that is not a real element, the calculator shows an error message and dashes out the result fields. The Reset button restores iron, Z 26.

Electron Configuration Calculator Formula

The filling order is 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p, with capacities 2, 6, 10 and 14 for s, p, d and f subshells. Fill each subshell to its capacity before moving to the next, until all Z electrons are placed. For iron, Z 26, that gives 1s2, then 2s2, 2p6, 3s2, 3p6, 4s2, and the remaining 6 electrons go into 3d, giving 1s2 2s2 2p6 3s2 3p6 4s2 3d6. The superscripts add up to 26, which is a useful check on any configuration: if they do not add up to Z, something is wrong.

The noble gas shorthand drops the core and keeps the rest, with the remaining subshells grouped by shell, in order of increasing n and then increasing l. For iron the core is argon, 1s2 2s2 2p6 3s2 3p6, and the rest is 4s2 and 3d6, grouped by shell as [Ar] 3d6 4s2. Some textbooks write [Ar] 4s2 3d6 instead, in filling order. Both orders describe the same atom: the order of writing is not fixed, and only the occupancies have physical meaning. This calculator uses the shell grouped order throughout, which is the order used in the Wikipedia table of element configurations, and it says so wherever the shorthand appears.

Unpaired electrons are counted subshell by subshell with Hund’s rule. A subshell with m orbitals and e electrons has e unpaired electrons while e is at most m, and 2m minus e once pairing starts. For iron, the 3d subshell has 5 orbitals and 6 electrons, so it has 10 minus 6, which is 4 unpaired electrons, and every other subshell is full or empty, so the total is 4. For oxygen, the 2p subshell has 3 orbitals and 4 electrons, so it has 6 minus 4, which is 2 unpaired electrons.

Valence electrons here are the electrons in the outermost shell plus the electrons in the (n minus 1)d subshell. That convention makes the count match the group number for the d-block: iron has 2 plus 6, which is 8, chromium has 1 plus 5, which is 6, and copper has 1 plus 10, which is 11. Zinc, cadmium and mercury are the exception: their filled d10 subshell behaves as core, so only the two ns electrons count, and zinc has 2 valence electrons. For the f-block the count is the outermost shell plus the (n minus 1)d electrons, with f electrons not counted, so lanthanum, cerium and gadolinium come out at 3 and thorium at 4. For the s-block and p-block the count is simply the electrons in the outermost shell: sodium has 1, chlorine has 7, neon has 8.

Twenty elements do not follow the simple filling order, and the calculator applies all of them, using the measured ground states from the Wikipedia electron configuration table. They are chromium (24) [Ar] 3d5 4s1, copper (29) [Ar] 3d10 4s1, niobium (41) [Kr] 4d4 5s1, molybdenum (42) [Kr] 4d5 5s1, ruthenium (44) [Kr] 4d7 5s1, rhodium (45) [Kr] 4d8 5s1, palladium (46) [Kr] 4d10, silver (47) [Kr] 4d10 5s1, lanthanum (57) [Xe] 5d1 6s2, cerium (58) [Xe] 4f1 5d1 6s2, gadolinium (64) [Xe] 4f7 5d1 6s2, platinum (78) [Xe] 4f14 5d9 6s1, gold (79) [Xe] 4f14 5d10 6s1, actinium (89) [Rn] 6d1 7s2, thorium (90) [Rn] 6d2 7s2, protactinium (91) [Rn] 5f2 6d1 7s2, uranium (92) [Rn] 5f3 6d1 7s2, neptunium (93) [Rn] 5f4 6d1 7s2, curium (96) [Rn] 5f7 6d1 7s2, and lawrencium (103) [Rn] 5f14 7s2 7p1. In most of them one electron moves from an s subshell into a d subshell to reach a half filled or filled d subshell. Palladium goes further and leaves its 5s subshell empty altogether. Nickel is listed as [Ar] 4s2 3d8, the standard listing; a 4s1 3d9 form is disputed in the literature and is not used here. The configurations of the heaviest elements, beyond hassium (108), are predicted rather than measured, and lawrencium’s 7p1 electron is a relativistic effect.

Worked Example

Take oxygen, Z 8. Fill the subshells in order: 1s takes 2 electrons, leaving 6; 2s takes 2, leaving 4; 2p takes the remaining 4, since it can hold 6. The full configuration is 1s2 2s2 2p4, and the superscripts add up to 8, which checks out. The preceding noble gas is helium, 1s2, so the shorthand is [He] 2s2 2p4.

The valence electrons are the outermost shell, n 2, which holds 2 plus 4, which is 6. The unpaired electrons come from the 2p subshell: it has 3 orbitals and 4 electrons, so one orbital is paired and two hold single electrons, giving 2 unpaired electrons. That is why oxygen is paramagnetic and forms two bonds. The block is p, because the last electron added went into 2p, and the period is 2, because the highest principal quantum number is 2.

Benefits of Using an Electron Configuration Calculator

The first benefit is reading the periodic table instead of memorising it. The configuration tells you the period from the highest shell, the block from the last subshell filled, and the group from the valence count for the main group and d-block elements. Sodium is 1s2 2s2 2p6 3s1, so it is period 3, s-block, with 1 valence electron, which is exactly where group 1 sits. Once you can read those three facts off a configuration, the shape of the table stops being arbitrary.

The second benefit is predicting how an element bonds. Valence electrons are the electrons an atom can share or lose, so chlorine with 7 valence electrons wants one more to complete its shell, and calcium with 2 valence electrons loses both to reach the argon core. The unpaired count adds the magnetic picture: oxygen with 2 unpaired electrons is paramagnetic, while neon with none is diamagnetic. The calculator gives both numbers together, so the bonding and the magnetism come from the same input.

The third benefit is getting the exceptions right. Chromium and copper are the two exceptions every chemistry exam asks about, and they are the two most calculators get wrong, because the simple filling order gives [Ar] 4s2 3d4 and [Ar] 4s2 3d9 while the measured ground states are [Ar] 3d5 4s1 and [Ar] 3d10 4s1. This calculator applies all 20 verified exceptions and says so on the result line, showing what the simple order would have predicted next to the real ground state, so you can see the difference rather than taking it on trust.

The fourth benefit is seeing the rules instead of just reading them. The orbital box diagram puts one box per orbital and fills the arrows by Hund’s rule: one up arrow per box first, then down arrows from the left. Change iron to manganese and the paired arrow in the 3d row disappears; change oxygen to nitrogen and the 2p row goes from two singles and a pair to three singles. The shell diagram does the same for the shells: every electron you add is a dot on a ring, so the picture changes with every input.

Frequently Asked Questions

How do you write the electron configuration of iron?

Fill the subshells in Aufbau order until all 26 electrons are placed: 1s takes 2, 2s takes 2, 2p takes 6, 3s takes 2, 3p takes 6, 4s takes 2, and the remaining 6 go into 3d. The full configuration is 1s2 2s2 2p6 3s2 3p6 4s2 3d6. The shorthand replaces the argon core, 1s2 2s2 2p6 3s2 3p6, with [Ar], giving [Ar] 3d6 4s2 in this calculator, or [Ar] 4s2 3d6 in filling order. Iron has 8 valence electrons and 4 unpaired electrons, and it sits in the d-block in period 4.

Why is chromium an exception to the Aufbau order?

The simple filling order predicts [Ar] 4s2 3d4 for chromium, Z 24. The measured ground state is [Ar] 3d5 4s1: one electron moves from the 4s subshell into the 3d subshell, giving a half filled d subshell with 5 electrons. A half filled subshell is unusually stable because of the exchange interaction between electrons with parallel spins, and that stability outweighs the small cost of promoting the electron from 4s to 3d. Copper does the same thing for a filled subshell, [Ar] 3d10 4s1, and molybdenum, silver and gold follow the same pattern in the heavier series.

How many valence electrons does zinc have, and why does copper have 11?

Zinc has 2 valence electrons. Its configuration is [Ar] 3d10 4s2, and the filled 3d10 subshell behaves as part of the core, so only the two 4s electrons count. Copper has 11 because this calculator counts the outermost shell plus the (n minus 1)d electrons, giving 4s1 plus 3d10, which is 11, the group number of copper. Some textbooks count only the single 4s electron of copper and call the answer 1. Both conventions exist, and the difference is a matter of definition, not of measurement: the configuration itself, [Ar] 3d10 4s1, is the same either way.

How do you count unpaired electrons?

Use Hund’s rule inside each subshell: put one electron in each orbital first, then start pairing. A subshell with m orbitals and e electrons has e unpaired electrons while e is at most m, and 2m minus e once pairing starts. Oxygen has 4 electrons in the three 2p orbitals, so it has 6 minus 4, which is 2 unpaired electrons. Iron has 6 electrons in the five 3d orbitals, so it has 10 minus 6, which is 4 unpaired electrons. Gadolinium has the most of any element, 8, from its 4f7 subshell with 7 unpaired electrons plus its single 5d electron.

Why does this calculator write [Ar] 3d6 4s2 for iron when my textbook writes [Ar] 4s2 3d6?

Both are correct. The order of writing the subshells in a configuration is not fixed: only the occupancies have physical meaning. Your textbook writes the subshells in filling order, 4s before 3d, because that is the order the electrons were added. This calculator groups the subshells by shell, 3d before 4s, which is the order used in the Wikipedia table of element configurations. The two strings describe the same atom with the same 26 electrons, and the calculator uses the shell grouped order for every element so that its shorthand is consistent from hydrogen to oganesson.

Calculator Sources

Wikipedia — Electron configuration, with the notation, the condensed noble gas form, the Madelung filling order, the statement that the writing order is not fixed, and the table of ground state configurations including all 20 exceptions.

Wikipedia — Aufbau principle, with the building up rule, the Madelung order by increasing n plus l, and the exceptions for chromium, copper and the heavier elements.

LibreTexts — Aufbau principle, with the three rules that fix the ground state, Hund’s rule of maximum multiplicity, and the worked configurations for carbon and nickel.

Royal Society of Chemistry — Periodic table, with the element data, the block layout of the table, and the ground state configurations behind the block assignment.

NIST — Periodic table from the NIST Handbook, with the measured ground state configurations used as the reference for the element data.

Disclaimer

This calculator gives the ground state electron configuration of a neutral atom, using the Aufbau filling order with the 20 verified exceptions listed in the formula section. It does not cover ions: removing or adding electrons changes the configuration, and the order in which electrons are removed is not the reverse of the filling order, so do not use these results for Fe2+, Cu+ or any other ion. The configurations of the heaviest elements, beyond hassium (108), are predicted rather than measured, and the configuration of lawrencium reflects relativistic effects. The valence electron count follows the convention stated in the formula section, outermost shell plus the (n minus 1)d electrons, with the group 12 exception for zinc, cadmium and mercury; other textbooks count valence electrons differently for copper and the f-block, so check the convention your course uses before quoting a number. The shorthand groups subshells by shell, so iron appears as [Ar] 3d6 4s2 here and as [Ar] 4s2 3d6 in some textbooks: both describe the same atom. Use this calculator for study, homework and checking your own working, and confirm any result that matters for an exam or a publication against a reference table.

Last updated: 29 November 2026

ADVERTISEMENT

ADVERTISEMENT