Skip to content
All articles

Electron configuration

How electrons fill shells and subshells, and how that builds the shape of the table.

5 min read

Electrons live in shells

The electrons in an atom are arranged in shells, or energy levels, around the nucleus. The first shell is closest to the nucleus and has the lowest energy. The shells are numbered 1, 2, 3 and so on, and are sometimes named K, L, M and N.

Each shell can hold a limited number of electrons. The rule is 2n², where n is the shell number:

Shell1 (K)2 (L)3 (M)4 (N)
Most electrons it can hold281832

For the first 20 elements, a simple picture works well: fill the first shell with 2 electrons, then the next shells with up to 8 each. Sodium has 11 electrons, arranged as 2, 8, 1. Calcium has 20, arranged as 2, 8, 8, 2. This is the picture the Bohr model on each element's page shows.

Shells are split into subshells

To go further, we need a more detailed picture. Each shell is made of one or more subshells, named s, p, d and f. Each subshell holds a fixed number of electrons:

Subshellspdf
Most electrons it can hold261014

Shell 1 has only an s subshell (1s). Shell 2 has s and p (2s, 2p). Shell 3 has s, p and d (3s, 3p, 3d). Shell 4 has all four (4s, 4p, 4d, 4f). Add up the subshells and you get the 2n² rule again: shell 3 holds 2 + 6 + 10 = 18.

Each subshell is made of orbitals, and each orbital holds at most two electrons, spinning in opposite directions. An s subshell has one orbital, p has three, d has five and f has seven.

Writing a configuration

An electron configuration lists the subshells in order, with the number of electrons in each written as a superscript. For example, carbon has 6 electrons:

1s2 2s2 2p2

This means 2 electrons in 1s, 2 in 2s and 2 in 2p. The superscripts always add up to the number of electrons.

The filling order

Electrons fill the lowest-energy subshell first. This is called the Aufbau principle, from the German word for "building up". The order is not simply shell by shell, because some subshells of a higher shell have lower energy than subshells of the shell below. Most importantly, 4s fills before 3d.

The order to learn is:

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

A handy trick is to write the subshells in rows, one shell per row, and read them along diagonal arrows from top right to bottom left.

ElementElectronsConfiguration
Hydrogen11s1
Oxygen81s2 2s2 2p4
Sodium111s2 2s2 2p6 3s1
Chlorine171s2 2s2 2p6 3s2 3p5
Potassium191s2 2s2 2p6 3s2 3p6 4s1
Iron261s2 2s2 2p6 3s2 3p6 3d6 4s2

Notice that potassium's 19th electron goes into 4s, not 3d. That is why potassium starts period 4 in group 1, below sodium. Configurations are usually written in shell order, so iron's 3d is written before 4s, even though 4s filled first.

Within a p, d or f subshell, electrons first spread out one per orbital before any of them pair up. This is called Hund's rule. It explains, for example, why nitrogen's three 2p electrons sit in three separate orbitals.

The noble gas shortcut

Long configurations get tiring to write. Since the inner electrons of an atom match the configuration of the noble gas before it, we can write that noble gas's symbol in square brackets instead. Sodium becomes [Ne] 3s1, and iron becomes [Ar] 3d6 4s2. Every element page on Easy Periodic Table shows both the full and the short form.

Two famous exceptions

A few elements do not follow the filling order exactly. The best known are chromium and copper. By the rules, chromium should be [Ar] 3d4 4s2, but it is actually [Ar] 3d5 4s1. Copper is [Ar] 3d10 4s1, not [Ar] 3d9 4s2. A half-full or completely full d subshell is especially stable, so one 4s electron moves into 3d.

How configuration builds the table

The shape of the periodic table comes straight from electron configuration:

So the periodic table is not just a list. It is a map of how electrons are arranged in atoms, and that arrangement explains the groups and the trends you have read about.

Back to all articles, or explore the elements on the table.