molecalculator

Moles & Molar Mass

Electron Configuration Sequence: How It Works

Calculator No. 01-10817 · 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 sequence lists the distribution of electrons among an atom’s orbitals, written in order of increasing principal quantum number and subshell type (1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, etc.). To write one, you fill orbitals following the Aufbau principle, Pauli exclusion principle, and Hund’s rule, and the sequence ends when you’ve placed all electrons for that element.

Formula

The electron configuration is built by filling orbitals in order of increasing energy, which is approximated by the n + ℓ rule: an orbital with lower (n + ℓ) fills first; if two have the same (n + ℓ), the one with lower n fills first. Each orbital holds a maximum of 2 electrons (Pauli exclusion), and degenerate orbitals (same subshell) are filled singly before pairing (Hund’s rule).

The sequence of subshells in order of filling is:

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

Each subshell type holds a fixed number of electrons: s = 2, p = 6, d = 10, f = 14. The configuration is written as a series of subshell labels with superscripts indicating electron counts, e.g., 1s2 2s2 2p6.

Worked Example

For iron (Z = 26), the default in the calculator, we fill orbitals in order:

  1. 1s2 (2 electrons, total 2)
  2. 2s2 (2, total 4)
  3. 2p6 (6, total 10)
  4. 3s2 (2, total 12)
  5. 3p6 (6, total 18)
  6. 4s2 (2, total 20)
  7. 3d6 (6, total 26)

So the full configuration is 1s2 2s2 2p6 3s2 3p6 4s2 3d6. The noble-gas shorthand uses the preceding noble gas (argon, Z=18) as [Ar], giving [Ar] 4s2 3d6.

Assumptions

  • The Aufbau order is the standard one for ground-state neutral atoms.
  • No exceptions are applied automatically (see below for chromium and copper).
  • The configuration is for the neutral atom, not ions.

How to Read the Sequence

Each part of the notation tells you two things: the principal energy level (the number) and the subshell shape (s, p, d, f). The superscript is the number of electrons in that subshell. For example, 2p4 means four electrons in the p subshell of the second shell. The sequence is not just a list—it encodes the atom’s energy levels and helps predict chemical behavior. The outermost electrons (highest n, and sometimes the d electrons) are the valence electrons that participate in bonding.

Common Mistakes and Misconceptions

  • Order of filling vs. order of writing: For transition metals, the 4s fills before 3d, but when writing the configuration for atoms, the 3d is written before 4s (e.g., [Ar] 3d6 4s2 for iron). The calculator here writes in filling order, which is the sequence you see in many textbooks.
  • Exceptions to the Aufbau rule: Chromium (Z=24) and copper (Z=29) have half-filled or fully filled d subshells because that arrangement is lower in energy. The actual configurations are [Ar] 3d5 4s1 and [Ar] 3d10 4s1, not the simple filling order. The calculator does not apply these exceptions; you must know them.
  • Ions: When forming cations, electrons are removed from the highest n orbital first, not the last filled. For example, Fe2+ removes two 4s electrons, giving [Ar] 3d6.

Why the Sequence Matters

The electron configuration sequence is the foundation of the periodic table’s structure. Elements in the same group have the same number of valence electrons, which explains their similar chemical properties. The sequence also determines an atom’s size, ionization energy, and electronegativity trends. For example, the fact that potassium (Z=19) has [Ar] 4s1 explains why it is an alkali metal with a +1 oxidation state, similar to sodium ([Ne] 3s1).

How to Use the Calculator

Enter the atomic number (Z) of any neutral element from 1 to 118. The calculator outputs the full configuration and the noble-gas shorthand. For most elements, the simple Aufbau order works; for exceptions like chromium and copper, you’ll need to adjust manually. The calculator is a quick reference for homework, exam prep, or checking your own work.

Frequently Asked Questions

Why does 4s fill before 3d?

Because the 4s orbital has a lower energy than 3d in neutral atoms, as predicted by the (n+ℓ) rule: for 4s, n+ℓ = 4+0 = 4; for 3d, n+ℓ = 3+2 = 5. Lower energy means it fills first. However, once electrons are present, the 3d orbitals drop in energy, which is why transition metals lose 4s electrons first when ionizing.

What is the electron configuration of oxygen?

Oxygen (Z=8) fills 1s, 2s, then 2p: 1s2 2s2 2p4. The two unpaired p electrons (Hund’s rule) make oxygen a diradical, which is why it readily forms two bonds.

How do I write the configuration for an ion?

Start with the neutral atom’s configuration, then remove electrons from the highest principal quantum number (n) first. For example, Ca (Z=20) is [Ar] 4s2; Ca2+ is [Ar] because both 4s electrons are removed. For transition metals, remove ns electrons before (n-1)d electrons.

What is the difference between electron configuration and orbital diagram?

An electron configuration is a shorthand notation listing subshells and electron counts. An orbital diagram goes further, showing each orbital as a box and electrons as arrows, depicting spin and pairing. Both represent the same quantum mechanical state, but the diagram gives more visual detail.

Why do some configurations deviate from the predicted order?

Because the (n+ℓ) rule is an approximation. In reality, electron-electron repulsions and exchange energy can make half-filled or fully filled d subshells more stable. Chromium and copper are classic examples. These exceptions are learned by memorization, not prediction.

Can the configuration predict magnetic properties?

Yes. Atoms with unpaired electrons are paramagnetic (attracted to a magnetic field), while those with all paired electrons are diamagnetic. For example, Fe has four unpaired d electrons, making it strongly magnetic in bulk, whereas Zn ([Ar] 3d10 4s2) has all paired electrons and is diamagnetic.

Related

Formula used
in z | Atomic number Z | - | 26 | 1 | 118
out conf | Electron configuration | - | config(z) | 0
out noble | Noble-gas shorthand | - | noble(z) | 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 →