Electron Shells and Orbitals

Electrons in atoms do not orbit like tiny planets. Instead, each electron occupies a region of space called an orbital. This orbital is described by a set of four quantum numbers. These numbers act like an address system. This address system explains why the periodic table has the shape it does. It explains why there are exactly two elements in period 1. It also explains why there are eight in period 2, and so on. Building on the The Bohr Model of the Atom, which introduced the idea of discrete energy levels, and on Quantized Energy and Photons, which showed that energy comes in packets, this article develops the full quantum-mechanical picture of where electrons "live." Instead of fixed circular orbits, electrons occupy three-dimensional probability clouds. These clouds are the s, p, d, and f orbitals. They are grouped into subshells and shells. The goal here is practical fluency. Given a shell number nn, you should be able to name every subshell it contains. You should also be able to sketch the shape of each orbital type. Finally, you should be able to count exactly how many electrons each subshell and shell can hold. This vocabulary is the direct foundation for writing Electron Configurations. It is also essential for understanding the structure of the Periodic Table and Electron Configurations.

Key takeaways
  • Four quantum numbers (nn, ll, mlm_l, msm_s) specify an electron's shell, subshell, orbital, and spin.
  • nn = shell (energy level), ll = subshell shape (s, p, d, f), mlm_l = orbital orientation, msm_s = spin (±12\pm\tfrac12).
  • Subshell capacity is always 2(2l+1)2(2l+1): s holds 2, p holds 6, d holds 10, f holds 14.
  • Shell capacity is 2n22n^2: shell 1 holds 2, shell 2 holds 8, shell 3 holds 18, shell 4 holds 32.
  • Orbital shapes are fixed: s is spherical, p is dumbbell-shaped (three perpendicular orientations), d is cloverleaf-shaped (with one exception).
  • Key idea: an orbital is a probability region indexed by (n,l,ml)(n, l, m_l), and the Pauli exclusion principle lets each orbital hold at most two electrons, of opposite spin.
The core insight

Every electron in an atom carries a unique four-number "address" (n,l,ml,ms)(n, l, m_l, m_s). The rules governing which addresses exist — not arbitrary chemistry facts — are what generate subshell capacities of 2, 6, 10, 14 and shell capacities of 2n22n^2.

The physical picture

In the Bohr model, an electron's location was pinned to a circular path at fixed radius. Quantum mechanics replaces this with a probability distribution: the orbital. An orbital is a three-dimensional region of space in which an electron has a high probability of being found; it has a definite shape, size, and orientation, but no definite path. Four quantum numbers pin down every orbital and every electron in it:

  • Principal quantum number nn = 1, 2, 3, … labels the shell and sets the overall size/energy of the orbital. Larger nn means larger, higher-energy orbitals, echoing the energy levels from the Bohr model.
  • Angular momentum quantum number ll = 0, 1, 2, … up to n−1n-1 labels the subshell and determines orbital shape. By long-standing convention, l=0,1,2,3l = 0, 1, 2, 3 are called s,p,d,fs, p, d, f.
  • Magnetic quantum number mlm_l = −l,…,0,…,+l-l, \ldots, 0, \ldots, +l labels the specific orbital within a subshell — its spatial orientation. There are 2l+12l+1 allowed values, hence 2l+12l+1 orbitals per subshell.
  • Spin quantum number msm_s = +12+\tfrac12 or −12-\tfrac12 labels the electron's intrinsic spin. This is a property of the electron, not of the orbital, and it is what allows two electrons to share one orbital.

The Pauli exclusion principle states that no two electrons in the same atom can have the same four quantum numbers. Since nn, ll, mlm_l fix a specific orbital, and msm_s can only take two values, this forces a maximum of two electrons per orbital, and they must have opposite spins. Each subshell shape has a recognizable geometry. The s orbital (l=0l=0) is a sphere centered on the nucleus — the same probability density in every direction. The p orbitals (l=1l=1) are dumbbell-shaped, each with two lobes on either side of the nucleus, and there are three of them (ml=−1,0,+1m_l = -1, 0, +1) pointing along mutually perpendicular axes, conventionally labeled pxp_x, pyp_y, pzp_z. The d orbitals (l=2l=2) are mostly four-lobed "cloverleaf" shapes, and there are five (ml=−2,−1,0,1,2m_l = -2,-1,0,1,2) — four have the cloverleaf form and one (dz2d_{z^2}) has a distinct doughnut-plus-dumbbell shape, though all five are equal in energy for an isolated atom. The f orbitals (l=3l=3) have even more complex multi-lobed shapes, and there are seven of them.

Figure
Shapes of the s, p, and d orbitals, drawn as probability-density outlines
1s (l = 0) 1 orbital, spherical 2p (l = 1) 3 orbitals (px, py, pz) two lobes each, along an axis 3d (l = 2) 5 orbitals; 4-lobed "cloverleaf" shown (one of five shapes)

The subshells within a shell are filled and organized by increasing ll: for n=3n=3, the subshells are 3s, 3p, 3d in order of increasing angular-momentum quantum number (though not necessarily increasing energy once electrons are present — that subtlety belongs to configuration-building rules). The diagram below shows how the shells nest: each shell nn contains nn subshells, and each subshell contains 2l+12l+1 orbitals.

Figure
Nesting of shells, subshells, and orbitals for n = 1, 2, 3
n = 1 1s (2) n = 2 2s (2) 2p (6) n = 3 3s (2) 3p (6) 3d (10) Numbers in parentheses = max electrons Shell totals: n=1 → 2, n=2 → 8, n=3 → 18

The core relations

l=0,1,2,…,(n−1)l = 0, 1, 2, \ldots, (n-1)

where: ll is the subshell (angular momentum) quantum number and nn is the principal quantum number; this restricts shell nn to exactly nn possible subshells.

ml=−l,−(l−1),…,0,…,+(l−1),+lm_l = -l, -(l-1), \ldots, 0, \ldots, +(l-1), +l

where: mlm_l is the magnetic quantum number, giving 2l+12l+1 allowed orbital orientations for a subshell of angular momentum ll.

ms=+12 or −12m_s = +\tfrac{1}{2} \text{ or } -\tfrac{1}{2}

where: msm_s is the electron spin quantum number, an intrinsic property independent of nn, ll, mlm_l.

Nsubshell=2(2l+1)N_{\text{subshell}} = 2(2l + 1)

where: NsubshellN_{\text{subshell}} is the maximum number of electrons in a subshell of angular momentum ll (the factor 2 comes from the two spin states per orbital).

Nshell=2n2N_{\text{shell}} = 2n^2

where: NshellN_{\text{shell}} is the maximum number of electrons in shell nn, summed over all its subshells.

Derivation AFrom quantum-number rules to the 2n² shell-capacity formula

The goal is to show that summing electron counts over every allowed subshell in shell nn collapses exactly to 2n22n^2.

Step 1. Count orbitals in a single subshell. For a subshell with angular momentum quantum number ll, the allowed values of mlm_l run from −l-l to +l+l in integer steps. The number of integers in that list is

(2l)+1=2l+1(2l) + 1 = 2l+1

So a subshell of type ll contains 2l+12l+1 distinct orbitals (e.g., l=1l=1, "p," gives 2(1)+1=32(1)+1 = 3 orbitals).

Step 2. Count electrons in a single subshell. Each orbital holds at most two electrons (spin up and spin down), by the Pauli exclusion principle. So the maximum electron count in a subshell is

Nsubshell=2×(2l+1)=2(2l+1)N_{\text{subshell}} = 2 \times (2l+1) = 2(2l+1)

This gives 2 for s, 6 for p, 10 for d, 14 for f — matching the familiar capacities.

Step 3. List the subshells present in shell nn. Shell nn permits l=0,1,2,…,n−1l = 0, 1, 2, \ldots, n-1 — that is, exactly nn subshells, one for each integer from 0 up to n−1n-1.

Step 4. Sum electron capacity over all subshells in the shell.

Nshell=∑l=0n−12(2l+1)N_{\text{shell}} = \sum_{l=0}^{n-1} 2(2l+1)

Expand the sum by separating constants:

Nshell=2∑l=0n−1(2l+1)=2[2∑l=0n−1l+∑l=0n−11]N_{\text{shell}} = 2\sum_{l=0}^{n-1}(2l+1) = 2\left[2\sum_{l=0}^{n-1} l + \sum_{l=0}^{n-1} 1\right]

The sum of the first n−1n-1... integers starting at 0 is a standard result:

∑l=0n−1l=(n−1)n2\sum_{l=0}^{n-1} l = \frac{(n-1)n}{2}

and the count term is simply

∑l=0n−11=n\sum_{l=0}^{n-1} 1 = n

Substituting both:

Nshell=2[2⋅n(n−1)2+n]=2[n(n−1)+n]N_{\text{shell}} = 2\left[2\cdot\frac{n(n-1)}{2} + n\right] = 2\left[n(n-1) + n\right]

Step 5. Simplify.

Nshell=2[n2−n+n]=2n2N_{\text{shell}} = 2\left[n^2 - n + n\right] = 2n^2

This confirms the compact formula Nshell=2n2N_{\text{shell}} = 2n^2, and it was derived purely from counting rules on ll, mlm_l, and msm_s — no extra assumption was needed.

Limiting check. For n=1n=1, only l=0l=0 (1s) exists, giving 2(1)2=22(1)^2 = 2 electrons — matching the two electrons of helium's first shell exactly, with no p, d, or f subshells to worry about.

Worked examples

Example 1 — Cataloging shell n=4n = 4. Find every subshell in shell 4, the orbital count in each, and confirm the shell total. Step 1: allowed ll values are 0,1,2,30, 1, 2, 3 (since ll runs from 0 to n−1=3n-1 = 3), corresponding to 4s, 4p, 4d, 4f. Step 2: orbital counts, using 2l+12l+1:

l=0: 2(0)+1=1 orbital (4s)l=0:\ 2(0)+1 = 1 \text{ orbital (4s)}
l=1: 2(1)+1=3 orbitals (4p)l=1:\ 2(1)+1 = 3 \text{ orbitals (4p)}
l=2: 2(2)+1=5 orbitals (4d)l=2:\ 2(2)+1 = 5 \text{ orbitals (4d)}
l=3: 2(3)+1=7 orbitals (4f)l=3:\ 2(3)+1 = 7 \text{ orbitals (4f)}

Step 3: electron capacities, using 2(2l+1)2(2l+1):

4s:2,4p:6,4d:10,4f:144s: 2,\quad 4p: 6,\quad 4d: 10,\quad 4f: 14

Step 4: sum and compare to the formula.

2+6+10+14=322 + 6 + 10 + 14 = 32
2n2=2(4)2=322n^2 = 2(4)^2 = 32

Both routes agree: shell 4 holds a maximum of 32 electrons, distributed across 1+3+5+7 = 16 total orbitals (each orbital holding 2 electrons, 16×2=3216 \times 2 = 32, consistent).

Example 2 — Assigning quantum numbers to a specific electron. Consider an electron sitting in a 3d orbital with ml=−1m_l = -1 and spin down. Write its full quantum-number set and verify it is an allowed combination. Step 1: identify nn. The "3" in "3d" gives

n=3n = 3

Step 2: identify ll. The letter "d" corresponds to l=2l = 2 (s=0, p=1, d=2, f=3). Step 3: check mlm_l is allowed. For l=2l=2, allowed values are ml=−2,−1,0,1,2m_l = -2, -1, 0, 1, 2. The stated value ml=−1m_l = -1 is within this list, so it is valid. Step 4: check that ll is allowed for this nn. Since ll must satisfy l≤n−1l \le n - 1,

l≤n−1=3−1=2l \le n - 1 = 3 - 1 = 2

and indeed l=2l = 2 satisfies this exactly (it's the largest allowed ll for n=3n=3, confirming 3d is the highest-ll subshell in shell 3 — there is no 3f). Step 5: assign spin. "Spin down" means

ms=−12m_s = -\tfrac12

Final quantum-number set:

(n,l,ml,ms)=(3, 2, −1, −12)(n, l, m_l, m_s) = (3,\ 2,\ -1,\ -\tfrac12)

This is a fully legal, unique address — no other electron in the same atom may share all four numbers.

Limiting cases & common traps

SituationWhat happensWhy
n=1n=1Only s subshell exists (l=0l=0 only)ll must be ≤n−1=0\le n-1 = 0
Large nn (e.g., n=5n=5)Up to g subshell (l=4l=4) is mathematically allowedbut real atoms never fill l=4l=4 in their ground states at accessible ZZ
l=0l = 0 (any nn)Always exactly 1 orbital, 2 electrons max2l+1=12l+1 = 1 regardless of nn
Confusing nn and llWriting "2d" or "1p"Illegal: ll cannot equal or exceed nn

The chemist behind it

The quantum-number scheme for orbitals emerged from the collaborative reworking of atomic theory in the 1920s, as physicists replaced Bohr's fixed circular orbits with the probabilistic orbitals of quantum mechanics. Wolfgang Pauli's 1925 exclusion principle was the decisive ingredient: by declaring that no two electrons could share all four quantum numbers, he explained why electrons do not all collapse into the lowest orbital, and thereby explained the layered shell structure that gives the periodic table its shape.

Origins · 1 minWolfgang Pauli and how this was discovered
WP
Wolfgang Pauli
1900–1958 · Developed the exclusion principle in 1925 while working on why atomic spectra showed no more than two electrons per orbital state; the principle earned him the 1945 Nobel Prize in Physics and became the theoretical basis for subshell capacities, atomic structure, and later, the stability of matter itself

Ask the tutor: If an atom's shell 3 is only partially filled, which subshell — 3s, 3p, or 3d — gets its electrons first, and why doesn't the 2n22n^2 formula alone answer that?

Why do p orbitals come in sets of three?

Because for l=1l=1, the magnetic quantum number mlm_l can take the values −1,0,+1-1, 0, +1 — three integers — giving three distinct spatial orientations, conventionally aligned along the x, y, and z axes. This follows directly from the 2l+12l+1 rule, not from any separate assumption about three-dimensional space.

Does a higher n always mean higher energy?

Within a given atom, orbitals with higher nn generally sit at higher energy, echoing the shell picture from the Bohr model. However, once multiple electrons are present, subshell energies can overlap between shells (for example, 4s often fills before 3d) — a detail that becomes important when building Electron Configurations but does not change the quantum-number rules themselves.

What physically distinguishes an orbital from a shell?

A shell is the entire collection of subshells sharing one principal quantum number nn. A subshell is a group of orbitals sharing the same nn and ll. An orbital is a single spatial probability distribution specified by one particular (n,l,ml)(n, l, m_l) combination, capable of holding at most two electrons.

Can two electrons in the same orbital have the same spin?

No. The Pauli exclusion principle forbids it: since both electrons would already share nn, ll, and mlm_l, they must differ in msm_s, meaning one is spin-up (+12+\tfrac12) and the other spin-down (−12-\tfrac12).

Why does the d subshell have five orbitals instead of some other number?

Because l=2l=2 for d orbitals, and the formula 2l+12l+1 gives 2(2)+1=52(2)+1 = 5. This same formula explains every subshell count: s (1), p (3), d (5), f (7) — always an odd number, since 2l+12l+1 is odd for any integer ll.