molecalculator

Moles & Molar Mass

Electron Configuration: How to Write and Read It

Calculator No. 01-10251 · 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.

An electron configuration image is a visual representation of how electrons are arranged in an atom’s orbitals, typically shown as a diagram with boxes, arrows, or energy levels. This page explains how to read and write these configurations, what the images mean, and how to use them to predict an element’s chemical behavior.

Formula

The electron configuration is built by filling orbitals in order of increasing energy, following three rules:

  • Aufbau principle: electrons occupy the lowest-energy orbitals first. The filling order is 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p.
  • Pauli exclusion principle: each orbital holds at most two electrons, and they must have opposite spins (shown as one up arrow and one down arrow).
  • Hund’s rule: when filling a set of degenerate orbitals (like the three 2p orbitals), place one electron in each before pairing any, with parallel spins.

The notation nℓcount uses the principal quantum number n (1, 2, 3…), the subshell letter ℓ (s, p, d, f), and a superscript giving the number of electrons in that subshell. The total of all superscripts equals the atomic number Z. For shorthand, replace the filled core with the preceding noble gas in brackets, e.g., [Ar] for the 18 electrons through argon.

Worked Example

Take iron, Z = 26. Following the Aufbau order:

  1. 1s holds 2 → 1s2 (2 total)
  2. 2s holds 2 → 2s2 (4 total)
  3. 2p holds 6 → 2p6 (10 total)
  4. 3s holds 2 → 3s2 (12 total)
  5. 3p holds 6 → 3p6 (18 total)
  6. 4s fills before 3d → 4s2 (20 total)
  7. 3d holds the remaining 6 → 3d6 (26 total)

So the full configuration is 1s2 2s2 2p6 3s2 3p6 3d6 4s2, matching the calculator’s first output. The shorthand is [Ar] 3d6 4s2. For unpaired electrons, the 3d subshell has five orbitals; with six electrons, Hund’s rule gives four unpaired and one pair, so the count is 4.

Assumptions

  • The configuration is for a neutral, ground-state atom.
  • Orbital energies follow the standard Aufbau order, which holds for most elements but has exceptions for some transition metals and lanthanides.
  • The noble-gas shorthand assumes the core electrons are exactly those of the preceding noble gas.

How to Read an Electron Configuration Image

Images come in two main styles. The first is the orbital box diagram: horizontal lines or boxes represent orbitals, and arrows represent electrons. An up arrow (↑) is spin +½, a down arrow (↓) is spin −½. Paired arrows sit in the same box; unpaired arrows sit alone. The second style is the energy level diagram: vertical position shows energy, with higher orbitals drawn higher. The 4s orbital sits below 3d in energy for neutral atoms, which is why 4s fills first even though n = 4 is larger than n = 3.

To read either, count the arrows per subshell, note whether they are paired, and convert to the nℓcount notation. The image also reveals magnetism: an atom with unpaired electrons is paramagnetic (attracted to a magnetic field), while one with all paired electrons is diamagnetic.

Common Mistakes and Misconceptions

The most frequent error is writing 3d4 4s2 for chromium (Z = 24) or 3d9 4s2 for copper (Z = 29). These are exceptions: a half-filled (d5) or fully filled (d10) d subshell is lower in energy, so one electron moves from 4s to 3d. The correct configurations are [Ar] 3d5 4s1 and [Ar] 3d10 4s1. Similar exceptions occur for molybdenum, silver, gold, and several lanthanides.

A second mistake is counting the 4s electrons as part of the valence shell for transition metals. When writing ions, remove the 4s electrons before the 3d electrons. For Fe2+, remove both 4s electrons to get [Ar] 3d6, not [Ar] 3d4 4s2.

A third error is confusing the order of filling with the order of ionization. Filling follows the Aufbau diagram, but ionization removes from the highest n first because those orbitals are spatially farther from the nucleus and less tightly bound.

Why the Configuration Matters

The configuration determines an element’s position in the periodic table. The period number equals the highest principal quantum number of an occupied orbital. The block (s, p, d, f) comes from the subshell being filled. The group number for main-group elements relates to the number of valence electrons: Group 1 has one s electron, Group 2 has two, Group 13 has two s plus one p, and so on.

Valence electrons—those in the outermost shell—drive chemical bonding. Elements with the same valence configuration (e.g., all halogens end in p5) have similar reactivity. The configuration also explains periodic trends: atomic radius, ionization energy, and electronegativity all trace back to how tightly the outer electrons are held.

For spectroscopy, the configuration identifies which electron transitions are possible. The energy difference between occupied and empty orbitals matches the wavelength of light absorbed or emitted, which is the basis of atomic emission spectra and flame tests.

Limits of the Simple Model

The Aufbau order is a useful approximation, not a law. For heavier elements, relativistic effects shift orbital energies, and the order can change. For example, the 4f and 5d orbitals are very close in energy, so many lanthanides show variable configurations. The model also treats electrons as independent particles, ignoring electron-electron repulsion, which is why the chromium and copper exceptions exist.

For ions, the configuration changes with charge. Cations lose electrons from the highest n first; anions gain electrons into the lowest available orbital. The calculator here gives the neutral ground state only; for ions, adjust manually.

The noble-gas shorthand hides the core electrons, which is fine for chemistry but not for X-ray spectroscopy, where core-level transitions matter. For those cases, you need the full configuration.

Frequently Asked Questions

Why does 4s fill before 3d? In a neutral atom, the 4s orbital has a lower energy than 3d because it is more penetrating—the electron spends more time near the nucleus. Once the 3d orbitals start filling, they shield the 4s electron, raising its energy, which is why 4s electrons are lost first when forming cations.

How do I know how many unpaired electrons an atom has? Apply Hund’s rule to the partially filled subshell. For a d subshell (5 orbitals), 1–5 electrons give 1–5 unpaired; 6–10 electrons give 4–0 unpaired because pairing starts after the fifth. The calculator’s third output shows this count directly.

What does the superscript number mean? It is the number of electrons in that subshell, not the number of orbitals. For example, 2p6 means six electrons spread across the three 2p orbitals (two per orbital). The sum of all superscripts always equals the atomic number for a neutral atom.

Is there a shortcut to write configurations? Yes, use the noble-gas core. Find the noble gas before your element in the periodic table, write its symbol in brackets, then add only the orbitals beyond it. For potassium (Z = 19), that is [Ar] 4s1 instead of 1s2 2s2 2p6 3s2 3p6 4s1.

Why do some configurations look wrong? Chromium and copper are the classic examples where a half-filled or fully filled d subshell is more stable than the Aufbau prediction. The energy gain from exchange energy (parallel spins) outweighs the cost of promoting an electron from 4s to 3d. These are real, measured configurations, not errors.

Can I use this for ions? Yes, but adjust manually. For cations, remove electrons from the highest n first (4s before 3d). For anions, add electrons to the lowest available orbital. The calculator gives the neutral atom; you must modify the output for charged species.

Related

Formula used
in z | Atomic number (Z) | - | 26 | 1 | 118
out cfg | Ground-state electron configuration | - | 1s2 2s2 2p6 3s2 3p6 3d6 4s2 | 0
out core | Noble-gas shorthand | - | [Ar] 3d6 4s2 | 0
out unpaired | Unpaired electrons | - | 4 | 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 →