molecalculator

Moles & Molar Mass

Electron Configuration Energy Levels Explained

Calculator No. 01-9613 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

Electron configuration energy levels describe the fixed distances from an atom’s nucleus where electrons are likely to be found, organized into shells (principal energy levels) and subshells (s, p, d, f). You enter an atomic number or element symbol, and the calculator returns the full electron configuration in standard notation, showing how electrons fill each energy level according to the Aufbau principle.

Formula

The electron configuration is built by filling orbitals in order of increasing energy, following the Aufbau principle (“building-up” rule). The order is given by the Madelung rule: orbitals fill by increasing (n + l), where n is the principal quantum number and l is the azimuthal quantum number (0 for s, 1 for p, 2 for d, 3 for f). When two orbitals have the same (n + l), the one with lower n fills first.

The maximum number of electrons in a subshell is 2(2l + 1): s holds 2, p holds 6, d holds 10, f holds 14. The maximum in a principal shell n is 2n² (2, 8, 18, 32…). The configuration is written as a sequence like 1s² 2s² 2p⁶, where the superscript is the electron count in that subshell.

Worked Example

For iron (Fe, Z = 26), the calculator returns: 1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d⁶.

Step-by-step filling:

  • 1s: 2 electrons (total 2)
  • 2s: 2 electrons (total 4)
  • 2p: 6 electrons (total 10)
  • 3s: 2 electrons (total 12)
  • 3p: 6 electrons (total 18)
  • 4s: 2 electrons (total 20) — note 4s fills before 3d because (4+0) = 4 < (3+2) = 5
  • 3d: 6 electrons (total 26)

Sum of superscripts: 2+2+6+2+6+2+6 = 26, matching Z. The 4s is written before 3d in the standard notation, even though 3d is filled after 4s in energy order.

Assumptions

  • The Aufbau principle applies to ground-state (lowest energy) configurations of neutral atoms.
  • The Madelung rule is used for filling order; exceptions exist for some transition metals and lanthanides (e.g., Cr, Cu, Nb) due to half-filled or fully filled subshell stability.
  • No relativistic effects are considered; these become significant for heavy elements (Z > 70) and can alter configurations.
  • The configuration is for isolated atoms, not ions or atoms in chemical bonds.

How to Read the Result

The configuration tells you which energy levels are occupied and how many electrons each holds. The outermost (highest n) electrons are the valence electrons, which determine chemical reactivity. For example, iron’s valence configuration is 4s² 3d⁶, giving common oxidation states +2 (losing 4s²) and +3 (losing one 3d electron as well). The periodic table is arranged so that elements in the same group share similar outer configurations (e.g., all alkali metals end in ns¹).

Why Energy Levels Matter

Energy levels explain atomic spectra: when an electron absorbs a photon, it jumps to a higher level; when it falls back, it emits light at a specific wavelength. The Rydberg formula predicts the wavelengths for hydrogen’s visible lines (Balmer series) using the difference between energy levels. In chemistry, the energy levels dictate bond formation, ionization energies, and atomic radii. For example, the first ionization energy of lithium (520 kJ/mol) is low because the 2s electron is far from the nucleus, while neon’s high ionization energy (2081 kJ/mol) reflects its full octet.

Common Mistakes and Misconceptions

  • Filling 3d before 4s: Many students write 1s² 2s² 2p⁶ 3s² 3p⁶ 3d⁶ 4s² for iron, but the standard notation lists 4s before 3d because 4s is lower in energy when empty. The order of writing is by increasing n, not filling order.
  • Assuming 3d fills after 4p: The actual order is 4s → 3d → 4p, not 4s → 4p → 3d. The (n+l) rule gives 4s (4+0=4), 3d (3+2=5), 4p (4+1=5); for equal (n+l), lower n wins, so 3d before 4p.
  • Overlooking exceptions: Chromium (Z=24) is [Ar] 4s¹ 3d⁵, not 4s² 3d⁴, because a half-filled d subshell is more stable. Copper (Z=29) is [Ar] 4s¹ 3d¹⁰. These exceptions are common in transition metals.
  • Using the wrong notation for ions: For cations, remove electrons from the highest n first (e.g., Fe²⁺ removes 4s², not 3d⁶). For anions, add electrons to the outermost subshell.

Alternatives and Related Concepts

Besides the full configuration, you can write noble gas shorthand (e.g., [Ar] 4s² 3d⁶ for iron) to save space. Orbital diagrams show each electron as an arrow in boxes, following Hund’s rule (one electron per orbital before pairing). Quantum numbers (n, l, ml, ms) give a complete description of each electron. For ions, the configuration changes, and for excited states, electrons occupy higher levels than the ground state predicts.

Frequently Asked Questions

Why does 4s fill before 3d?

Because the 4s orbital has a lower energy than 3d when they are empty, due to penetration and shielding effects. The (n+l) rule predicts 4s (4+0=4) before 3d (3+2=5). However, once electrons are added, the 3d subshell drops in energy, so in transition metal cations, 4s electrons are removed first.

What is the maximum number of electrons in each energy level?

The maximum is 2n², where n is the principal quantum number. So the first level holds 2, the second 8, the third 18, the fourth 32. But in practice, the outermost level never exceeds 8 electrons for ground-state atoms (except for some heavy elements), because the next level starts filling before the previous is full.

How do I write the electron configuration for an ion?

Start with the neutral atom’s configuration, then remove or add electrons. For cations, remove from the highest n subshell first (e.g., Fe²⁺: remove 4s², giving [Ar] 3d⁶). For anions, add to the outermost subshell (e.g., O²⁻: add to 2p, giving 1s² 2s² 2p⁶).

What are valence electrons and how do I find them?

Valence electrons are the electrons in the outermost principal energy level (highest n). For main-group elements, they are the s and p electrons in that level. For transition metals, the valence includes the outermost s electrons and sometimes the d electrons. For iron, the 4s² and 3d⁶ are considered valence, giving 8 total.

Why are there exceptions to the Aufbau principle?

Exceptions occur because half-filled and fully filled subshells have extra stability due to exchange energy and reduced electron-electron repulsion. For example, chromium becomes 4s¹ 3d⁵ instead of 4s² 3d⁴, and copper becomes 4s¹ 3d¹⁰ instead of 4s² 3d⁹. These are observed experimentally, not predicted by simple rules.

How does electron configuration relate to the periodic table?

The periodic table is organized by electron configuration. Each row (period) corresponds to a principal energy level. Columns (groups) share the same valence configuration: group 1 ends in s¹, group 2 in s², groups 13-18 in p¹ to p⁶, transition metals in d orbitals, and lanthanides/actinides in f orbitals. This explains trends in reactivity and properties.

Related

Formula used
in z | Atomic number (Z) | - | 26 | 1 | 118
out config | Electron configuration | - | 1s2 2s2 2p6 3s2 3p6 4s2 3d6 | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →