⚛️
General Chemistry11 min read

Electron Configuration and Quantum Numbers: How to Write Them and Why They Matter

By ChemistryIQ Team · March 17, 2026

Direct Answer

An electron configuration describes where every electron in an atom lives — which energy level, which sublevel, and which orbital. You build it using three rules: the aufbau principle (fill lowest energy orbitals first), the Pauli exclusion principle (maximum two electrons per orbital with opposite spins), and Hund's rule (fill all orbitals in a sublevel singly before pairing). The four quantum numbers (n, l, ml, ms) define the exact state of each electron: n = energy level (1, 2, 3...), l = sublevel shape (0=s, 1=p, 2=d, 3=f), ml = specific orbital (-l to +l), and ms = spin (+1/2 or -1/2). Electron configuration directly determines an element's chemical properties, periodic table position, and bonding behavior.

The Orbital Filling Order: Why 4s Fills Before 3d

Orbitals do not fill in the order you would expect if you just counted up energy levels. The actual filling order is: 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p. Notice that 4s fills before 3d, and 5s fills before 4d. This is because orbital energy depends on both the principal quantum number (n) and the angular momentum quantum number (l), not just n.

The diagonal rule (or Madelung's rule) gives you the filling order: draw the sublevels in rows (1s / 2s 2p / 3s 3p 3d / 4s 4p 4d 4f / ...) and draw diagonal arrows from upper-right to lower-left. Following the arrows gives the correct order. This looks more complicated than it is — after writing 10-15 configurations, you will have it memorized.

Each sublevel holds a specific number of electrons: s holds 2, p holds 6, d holds 10, f holds 14. These numbers come directly from the number of orbitals in each sublevel (1, 3, 5, 7 respectively) times 2 electrons per orbital. Knowing these capacities lets you quickly determine where you are in the filling sequence.

Example: Carbon (atomic number 6, 6 electrons). Fill in order: 1s² 2s² 2p². The first 2 electrons go to 1s, the next 2 to 2s, and the remaining 2 to 2p. Since 2p has 3 orbitals and Hund's rule says to fill singly before pairing, the two 2p electrons occupy two different p orbitals with parallel spins.

The Four Quantum Numbers: What Each One Means

Every electron in an atom is described by a unique set of four quantum numbers. Think of them as an address system: the quantum numbers tell you the building (n), the floor (l), the apartment (ml), and which bed in the apartment (ms).

The principal quantum number (n) identifies the energy level or shell. Values: 1, 2, 3, 4, ... Higher n means higher energy and larger average distance from the nucleus. The maximum number of electrons in shell n is 2n².

The angular momentum quantum number (l) identifies the sublevel or shape of the orbital. For a given n, l ranges from 0 to n-1. l=0 is an s orbital (spherical), l=1 is p (dumbbell), l=2 is d (cloverleaf), l=3 is f (complex). So n=3 has l = 0, 1, 2 — meaning it contains s, p, and d sublevels.

The magnetic quantum number (ml) identifies which specific orbital within the sublevel. For a given l, ml ranges from -l to +l. So for l=1 (p sublevel), ml = -1, 0, +1 — three p orbitals, which we label px, py, and pz. For l=2 (d sublevel), ml = -2, -1, 0, +1, +2 — five d orbitals.

The spin quantum number (ms) describes the electron's spin direction: +1/2 (spin up) or -1/2 (spin down). The Pauli exclusion principle states that no two electrons in the same atom can have all four quantum numbers identical — which is why each orbital holds exactly two electrons (same n, l, ml, but different ms).

Exam question type: what set of quantum numbers is possible for an electron in a 3p orbital? Answer: n=3, l=1, ml can be -1, 0, or +1, ms can be +1/2 or -1/2. Any combination within these ranges is valid. n=3, l=2 is NOT 3p — that would be 3d. ChemistryIQ generates quantum number validation problems that test exactly this kind of reasoning.

Shortcut Notation and the Noble Gas Core

Writing full electron configurations gets tedious for heavy elements. Xenon (54 electrons) would be: 1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d¹⁰ 4p⁶ 5s² 4d¹⁰ 5p⁶. The shortcut: identify the nearest noble gas with fewer electrons and use its symbol in brackets to represent its complete configuration. For Barium (56 electrons): [Xe] 6s². The [Xe] represents all 54 core electrons, and you only write the valence electrons explicitly.

This is not just a convenience — it reveals the chemistry. The electrons after the noble gas core are the valence electrons, and valence electrons determine chemical behavior. Barium has 2 valence electrons in the 6s sublevel, which is why it is in Group 2 and forms Ba²⁺ by losing those 2 electrons.

The periodic table IS the electron configuration. Period number = highest occupied principal quantum number. Group number (for main group elements) = number of valence electrons. Block (s, p, d, f) = sublevel being filled. If you understand electron configuration, the periodic table stops being a lookup chart and becomes a logic system.

The Exceptions That Exams Always Test

Two elements have electron configurations that violate the straightforward aufbau filling: chromium (Cr, Z=24) and copper (Cu, Z=29). You would predict Cr is [Ar] 4s² 3d⁴ and Cu is [Ar] 4s² 3d⁹. But the actual configurations are Cr: [Ar] 4s¹ 3d⁵ and Cu: [Ar] 4s¹ 3d¹⁰.

The reason: half-filled and fully-filled d sublevels have extra stability due to exchange energy (a quantum mechanical effect related to the number of electron pairs with parallel spins). A half-filled d⁵ configuration has 10 exchange pairs; a d⁴ has only 6. The energy gained from the additional exchange stabilization exceeds the small energy cost of promoting one 4s electron to 3d. The same logic applies to copper: d¹⁰ (fully filled, 45 exchange pairs) is more stable than d⁹ (36 exchange pairs).

These exceptions extend down the periodic table: molybdenum (Mo) has the same exception as chromium, and silver (Ag) has the same as copper. Gold (Au) also has [Xe] 4f¹⁴ 5d¹⁰ 6s¹ rather than the predicted 5d⁹ 6s².

Another common exam topic: electron configurations of ions. When forming cations, electrons are removed from the highest n first, not from the last sublevel filled. Iron (Fe) is [Ar] 4s² 3d⁶. Fe²⁺ is [Ar] 3d⁶ — the two 4s electrons are removed first, not the 3d electrons. This trips up students who expect to remove from 3d because it was the last sublevel to fill. Remember: 4s fills before 3d, but 4s empties before 3d.

Need Help with Your Chemistry Problems?

Snap a photo of any equation, structure, or diagram for instant step-by-step solutions at three detail levels.

Download ChemistryIQ

FAQs

Common questions about electron configuration and quantum numbers

In a neutral atom, 4s is slightly lower in energy than 3d due to greater penetration toward the nucleus. But once the 3d orbitals are occupied, the additional nuclear charge stabilizes 3d more than 4s — in the ion, 3d is lower in energy than 4s. So when forming a cation, 4s electrons (now higher energy) leave first. This reversal confuses students because it seems to contradict the filling order, but filling order and ionization order are governed by different energy considerations.

Find the element on the periodic table. Count backward to the nearest noble gas — that is your core. Then fill sublevels across the row(s) after that noble gas: s-block elements add s electrons, d-block adds d electrons (with n-1), p-block adds p electrons. Example: Bromine (Z=35) is in Period 4, Group 17. Core: [Ar]. Then: 4s² 3d¹⁰ 4p⁵. The periodic table gives you the configuration directly.

Yes. ChemistryIQ generates problems covering configuration writing, quantum number validation, noble gas shortcut notation, ion configurations, and the chromium/copper exceptions with step-by-step explanations.

More Articles