ToolNestr

Electron Configuration Calculator

Find the full electron configuration for any element (Z = 1–118), following the Aufbau filling order, plus its noble-gas shorthand notation and valence electron count. Two 3D diagrams show electron shells filling up and compare the Aufbau exception where 4s fills before 3d, with charts showing subshell capacities and filling order.

Reviewed by the ToolNestr Editorial Team — July 2026

Disclaimer: This tool is provided for educational purposes to support learning in chemistry. It is not a substitute for professional laboratory, safety, or dosage calculations.
Chemistry

Pick a preset, or enter an atomic number directly.

Full electron configuration
Noble-gas shorthand
Valence electrons

Filling order in 3D

1. Electron shells filling outward

Nested shells around a central nucleus, each holding progressively more electrons as atomic number increases.

2. The 4s-before-3d exception

The 4s subshell (outer, amber) sits at slightly lower energy than the 3d subshell (inner, indigo) — so it fills first.

Electron configuration graphs

Subshell capacity by type
Cumulative electron count along the Aufbau order

How it works

The core idea in one line: electrons fill available orbitals from lowest energy to highest, and because orbital energies don't line up neatly with shell number, the real filling order (1s,2s,2p,3s,3p,4s,3d,...) zig-zags in a way that surprises students expecting strict numerical order.

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

the Aufbau filling order — not simple shell-by-shell order

s = 2, p = 6, d = 10, f = 14

maximum electrons per subshell type

Each subshell type holds a fixed number of electrons based on its orbital count (s:1, p:3, d:5, f:7 orbitals, each holding 2 electrons), giving maximum capacities of 2, 6, 10, and 14 respectively. Filling proceeds strictly by increasing energy level along the Aufbau order, adding electrons subshell by subshell until the atom's full electron count is reached. Noble-gas shorthand simply replaces everything up through the most recent completed noble-gas configuration with that gas's symbol in brackets, since that inner 'core' never participates in ordinary bonding.

Worked example 1 — oxygen (Z = 8)

Given: Oxygen has atomic number Z = 8. Find its full electron configuration and valence electron count.

Fill order: 1s² (2 total) → 2s² (4 total) → 2p⁴ (8 total, done)
Full configuration: 1s²2s²2p⁴
Valence electrons: 2s²2p⁴ = 6 valence electrons (shell n=2)

Oxygen needs 2 more electrons to fill its outer shell to a stable 8 — exactly why it so readily forms 2⁻ ions or two covalent bonds.

Worked example 2 — iron (Z = 26, an Aufbau-order example)

Given: Iron has atomic number Z = 26. Find its full electron configuration, noting the 4s-before-3d filling order.

Fill order: 1s²(2) 2s²(4) 2p⁶(10) 3s²(12) 3p⁶(18) 4s²(20) 3d⁶(26, done)
Full configuration: 1s²2s²2p⁶3s²3p⁶4s²3d⁶ (often reordered by shell as 1s²2s²2p⁶3s²3p⁶3d⁶4s²)
Noble-gas shorthand: [Ar]4s²3d⁶
Valence electrons: 4s² = 2 (the outermost shell, n=4) — the 3d⁶ electrons are inner but chemically relevant for bonding

This is the classic Aufbau exception: 4s fills before 3d during buildup, even though 3d is conventionally written first when listing the final configuration by shell number.

Subshell capacities and filling order

Each subshell type holds a fixed maximum number of electrons, based on how many orbitals it contains.

SubshellOrbitalsMax electrons
s12
p36
d ★510
f714

★ Each orbital holds a maximum of 2 electrons (opposite spins), so capacity = orbitals × 2 — this is where every subshell's maximum electron count comes from.

Where electron configuration actually matters

📊 Predicting chemical reactivity

An element's valence electron configuration predicts how many bonds it tends to form and how reactive it is — elements with nearly full or nearly empty outer shells (like halogens and alkali metals) are typically the most reactive.

🧲 Magnetic properties of materials

Unpaired electrons in partially filled d or f subshells (common in transition metals and lanthanides) give materials like iron and neodymium their magnetic properties — a direct consequence of their electron configuration.

🔬 Spectroscopy and atomic emission

When electrons absorb energy and jump between subshells, then fall back down, they emit light at specific wavelengths — the basis of atomic emission spectroscopy, flame tests, and neon signage.

📐 Understanding periodic table blocks

The periodic table's s-block, p-block, d-block, and f-block regions directly correspond to which subshell type is being filled last for elements in that region — electron configuration is the reason the table has the shape it does.

Common misconceptions

"Electrons fill shell 3 completely before any electrons enter shell 4."

This is one of the most common electron-configuration misconceptions — the 4s subshell actually fills before 3d, due to its slightly lower energy. Filling follows the Aufbau order (1s,2s,2p,3s,3p,4s,3d,4p,...), not strict numerical shell order.

"Valence electrons always equal the total electron count."

Only the electrons in the outermost occupied shell count as valence electrons — inner, already-filled shells (called the core) do not participate in ordinary bonding, even though they are still part of the atom's total electron count.

"Every element's configuration follows the Aufbau order exactly, with no exceptions."

A handful of elements (notably Chromium and Copper) deviate from the predicted Aufbau order because a half-filled or fully-filled d subshell provides extra stability — Chromium is [Ar]4s¹3d⁵ rather than the naively predicted [Ar]4s²3d⁴.

"Noble-gas shorthand changes an element's actual electron count."

Shorthand notation is purely a writing convenience — [Ne]3s¹ for sodium represents exactly the same 11 electrons as the full 1s²2s²2p⁶3s¹, just with the noble-gas core abbreviated.

Formula sources & further reading

The formulas here are standard, traceable to:

  • OpenStax, Chemistry 2e — Chapter 6, "Electronic Structure and Periodic Properties of Elements" (free, peer-reviewed). openstax.org
  • Brown, LeMay & Bursten, Chemistry: The Central Science — Chapter 6, Electronic Structure of Atoms.
  • Zumdahl & Zumdahl, Chemistry — Electron configurations and the Aufbau principle.

Configurations follow the standard Aufbau filling order. A small number of known exceptions (e.g. Cr, Cu, and some heavier elements) are not special-cased in this calculator's default output — check a reference table for those specific elements.

How to use this calculator

1

Enter the atomic number

Type Z from 1 to 118, or pick a preset element.

2

Read the configuration

The full configuration, shorthand, and valence count appear instantly.

3

Compare on the chart

See subshell capacities and how the filling order departs from simple shell order.

Related tools

Frequently asked questions

What is the Aufbau principle?

The Aufbau principle states that electrons fill the lowest-energy orbitals available first, following the order 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p — not simply shell-by-shell in numerical order.

Why does 4s fill before 3d?

Even though shell 3 is "lower" than shell 4, the 4s orbital happens to sit at a slightly lower energy level than 3d for the elements where this matters, so electrons occupy 4s first. This is one of several well-known Aufbau ordering exceptions.

How many electrons fit in each subshell?

s subshells hold up to 2 electrons, p subshells hold up to 6, d subshells hold up to 10, and f subshells hold up to 14 — these capacities come directly from the number of orbitals available in each subshell type (1, 3, 5, and 7 orbitals respectively, times 2 electrons each).

What is noble-gas shorthand notation?

Instead of writing out every filled subshell, noble-gas shorthand replaces the electron configuration of the nearest preceding noble gas with its symbol in brackets — for example, Sodium (Z=11) is written [Ne]3s¹ instead of 1s²2s²2p⁶3s¹.

What are valence electrons?

Valence electrons are the electrons in an atom's outermost occupied shell, which largely determine its chemical bonding behavior. For main-group elements, this is simply the electrons in the highest-numbered s and p subshells; transition metals have some added nuance because their (n−1)d electrons can also participate in bonding.

All tool categories

🧪 Chemistry (50 tools)
⏲️ Half-Life Calculator🔬 Molar Mass Calculator🧪 Molarity Calculator💨 Ideal Gas Law Calculator🔄 Combined Gas Law Calculator🌈 pH Calculator💧 Dilution Calculator🧴 Percent Concentration Calculator🌫️ PPM Calculator🧊 Molality Calculator⚗️ Normality Calculator🎈 Boyle's Law Calculator🔺 Charles's Law Calculator🌡️ Gay-Lussac's Law Calculator🧮 Chemical Equation Balancer⚖️ Limiting Reagent Calculator🎯 Percent Yield Calculator🔵 pOH Calculator🧫 Theoretical Yield Calculator🥼 Actual Yield Calculator🧬 Molecular Formula Calculator🔢 Mole Ratio Calculator🧿 Empirical Formula Calculator🧯 Henderson-Hasselbalch (Buffer) Calculator🫧 Neutralization Reaction Calculator💉 Titration Calculator🔁 Equilibrium Constant (Keq) Calculator⏳ Reaction Rate Calculator🌌 Avogadro's Number Calculator🧭 Reaction Quotient (Q) Calculator🌋 Enthalpy Calculator🥽 Calorimetry Calculator🎲 Entropy Calculator⚛️ Ka/Kb Equilibrium Constant Calculator🌬️ Dalton's Law (Partial Pressure) Calculator➡️ Gibbs Free Energy Calculator🔗 Bond Energy Calculator🔋 Nernst Equation Calculator🏔️ Arrhenius Equation Calculator☢️ Isotope Calculator🔘 Atom Calculator🔷 Electron Configuration Calculator🔌 Cell EMF Calculator🪫 Faraday's Law of Electrolysis Calculator♨️ Boiling Point Elevation Calculator❄️ Freezing Point Depression Calculator🔠 Interactive Periodic Table🔶 Atomic Mass Calculator⏱️ Rate Constant Calculator🫙 Vapor Pressure Calculator
🌐 Networking & IP Tools (36 tools)
🧮 Everyday (26 tools)
💪 Health & Fitness (30 tools)
💰 Finance (34 tools)
🔢 Math (23 tools)
📄 PDF Tools (10 tools)
🎨 Creators (12 tools)
💻 Developers (24 tools)
⚡ Engineering & Science (24 tools)
⚛️ Physics (48 tools)
🧬 Biology (50 tools)
🏠 Construction & Home Improvement (105 tools)
👗 Clothing & Garment Tools (68 tools)
🍳 Cooking & Baking (9 tools)
🚗 Automotive (26 tools)
🖼️ Image Tools (13 tools)
🔐 Security & Hash (15 tools)
📝 Text Tools (15 tools)
🔍 SEO Tools (11 tools)
🔄 Converters (69 tools)
🕐 Time & Date (15 tools)
📊 Chart Generators (11 tools)
🕌 Islamic Tools (16 tools)