Skip to main content
Calcimator

Electron Configuration Generator

Generate the electron configuration for any element by atomic number. Follows the Aufbau principle to fill s, p, d, and f orbitals.

About this calculator

This calculator builds electron configurations from the Aufbau principle, filling subshells in the standard n+l (Madelung) energy order -- 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s... -- the same sequence chemistry textbooks diagram as the diagonal filling rule, not simply shell-by-shell. It then applies the 20 experimentally-confirmed exceptions to strict Aufbau filling at Z <= 103 -- cross-checked against the ground-state configurations in NIST's Atomic Spectra Database, the standard reference for experimentally measured atomic energy levels -- (chromium, copper, niobium, molybdenum, ruthenium, rhodium, palladium, silver, lanthanum, cerium, gadolinium, platinum, gold, actinium, thorium, protactinium, uranium, neptunium, curium, and lawrencium), each promoting an electron into a more stable half-filled or fully-filled d- or f-subshell -- so, for example, chromium (Z=24) correctly shows 4s1 3d5, not the naive 4s2 3d4. Valence Electrons uses the group-number convention taught throughout general chemistry: electrons added since the preceding noble-gas core, until this element's own outermost p subshell starts filling. For main-group (s/p-block) elements this reduces to the familiar "outermost shell only" count; for transition metals it includes the (n-1)d electrons, matching the element's periodic-table group number -- iron ([Ar]3d6 4s2, group 8) has 8 valence electrons, scandium ([Ar]3d1 4s2, group 3) has 3. The same convention extended to lanthanides/actinides (including their (n-2)f electrons) is a defensible reading but a less universally standardized one than the d-block rule.

Core Electrons is simply the remainder -- Total Electrons minus Valence Electrons. Unpaired Electrons applies Hund's rule (maximal-multiplicity filling) to every partially-filled subshell in the configuration and sums the results, so an element with two simultaneously partially-filled subshells (like gadolinium's half-filled 4f7 plus singly-occupied 5d1) is counted correctly across both, not just the last-filled one. Noble Gas? flags only the seven closed-shell atomic numbers (2, 10, 18, 36, 54, 86, 118) where the last subshell fills completely at a shell boundary. Atomic Number is rounded to the nearest whole number and clamped to 1-118; a value outside that range or a non-numeric input returns the nearest boundary element (hydrogen or oganesson) rather than an error.

Inputs

Results

Electron Configuration

1s2 2s2 2p6 3s2 3p6 4s2 3d6

Valence Electrons

8

Total Electrons26
Core Electrons18
Highest Shell (n)4
Unpaired Electrons4
Noble Gas?No

Figures current as of 2026. Source: National Institute of Standards and Technology, NIST Standard Reference Database 78, Atomic Spectra Database, "Ground States and Ionization Energies"

How to Use This Calculator
  1. Enter the atomic number of the element (1–118).
  2. The calculator applies the Aufbau principle with Madelung energy ordering.
  3. Review the full electron configuration string and orbital filling order.
  4. Use this to predict chemical reactivity, valence electron count, and period/group placement.

What each input means

Atomic Number (Z)
Atomic number of the element (1 = Hydrogen, 26 = Iron, 79 = Gold). Rounded and clamped to 1-118 -- out-of-range or non-numeric input returns the nearest boundary element rather than an error.

How this is calculated

Formula

Aufbau: 1s → 2s → 2p → 3s → 3p → 4s → 3d → ...

Worked example, using the default values

  1. Identify Input Parameters
    1 parameter
    Atomic Number (Z) = 26 = 1 input(s) provided
  2. Calculate Electron Configuration
    Electron Configuration
    1s2 2s2 2p6 3s2 3p6 4s2 3d6 = 1s2 2s2 2p6 3s2 3p6 4s2 3d6
  3. Calculate Valence Electrons
    Valence Electrons
    8 = 8
  4. Calculate Total Electrons
    Total Electrons = Z
    26 = 26
  5. Calculate Core Electrons
    Core Electrons
    18 = 18

Figures and sources

Engine last updated . Checked against 7 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Why does Iron (Z=26) show 8 valence electrons instead of 2?

Valence Electrons follows the group-number convention: electrons added since the preceding noble-gas core (here, argon, Z=18) count as valence until the element's own outermost p subshell begins filling. Iron's configuration is [Ar]3d6 4s2 -- no 4p electrons yet -- so all 8 electrons added since argon (the 4s2 and the 3d6) count as valence, matching iron's periodic-table group (group 8). Core Electrons is the remaining 18, exactly argon's electron count.

Does this calculator handle the chromium/copper exceptions to Aufbau filling?

Yes. It applies all 20 experimentally-confirmed ground-state exceptions at Z <= 103, cross-checked against NIST's Atomic Spectra Database (the standard reference for measured atomic ground states and ionization energies): chromium, copper, niobium, molybdenum, ruthenium, rhodium, palladium, silver, lanthanum, cerium, gadolinium, platinum, gold, actinium, thorium, protactinium, uranium, neptunium, curium, and lawrencium. Chromium (Z=24) shows 4s1 3d5 and copper (Z=29) shows 4s1 3d10 -- the experimentally observed configurations, not the naive 4s2 3d4 / 4s2 3d9 that strict Aufbau filling alone would predict. Beyond Z=103, superheavy elements are short-lived and synthetic, so this calculator reports the theoretical Aufbau/Madelung order for them rather than a further hand-verified exception list.

How accurate is the Unpaired Electrons count?

It applies Hund's rule -- electrons spread singly across all orbitals in a subshell before any pairing -- to every partially-filled subshell in the ground-state configuration and sums the result, which is the standard way to count unpaired electrons for a multi-electron atom. This correctly handles elements with more than one simultaneously partially-filled subshell, such as gadolinium (4f7 5d1: 7 unpaired from the half-filled f subshell plus 1 from the d subshell, 8 total). It does not model relativistic or spin-orbit-coupling exceptions beyond the ground-state configuration itself.

What does Noble Gas? actually check?

It flags exactly seven atomic numbers -- 2, 10, 18, 36, 54, 86, and 118 -- where an electron shell closes completely at that Z under strict Aufbau filling. It does not attempt any broader chemical-reactivity judgment; it's purely a lookup against those seven noble-gas atomic numbers, so an element one proton away from any of them (like fluorine at Z=9 or sodium at Z=11) correctly reports false even though both are close neighbors of neon.

What happens if I enter an atomic number outside 1-118, or a decimal?

Atomic Number is rounded to the nearest whole number, then clamped to the periodic table's actual range of 1-118. A value of 0, a negative number, or a blank field returns hydrogen's configuration (1s1); a value of 119 or higher returns oganesson (Z=118) and reports Noble Gas? as Yes. The calculator does not raise an error for an out-of-range input, so a caller feeding it through the API or embed should validate the value first if it needs to distinguish "hydrogen" from "invalid input."

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Science & Physics.