Where Exploration Meets Excellence
Jupiter Academy · Lesson

Quantum Numbers and Orbitals

quantum numbers and orbitals
quantum numbers and orbitalsAI-generated representative image

Quantum numbers are the address system of the atom, and like any good address they work in layers: the shell tells you the general neighbourhood, the subshell narrows the street, the magnetic number fixes the house, and the spin number identifies which of two residents lives there. This lesson, the thirteenth in a twenty-part course on the structure of the atom, takes the quantum mechanical model developed in the previous session and turns it into a practical labelling scheme. Where the earlier lesson established that electrons are described by wave functions rather than planetary paths, this one shows precisely how three integers and one half-integer extract every measurable feature of an orbital from that wave function.

A nucleus at the centre with concentric shells labelled n, a subshell region labelled l, an orbital orientation labelled m_l, and two opposite spin arrows labelled m_s, with the allowed values of each number listed beside it.
The four quantum numbers act like layers of an address, each narrowing down where an electron lives in an atom.Digital illustration created with Zartom Composer · Rahul Anand

The four quantum numbers — principal ##n##, azimuthal ##l##, magnetic ##m_l## and spin ##m_s## — are not arbitrary bookkeeping devices. Each arises from a specific mathematical condition imposed on the solutions of the Schrödinger equation, and each carries physical meaning that can be tested in the laboratory. The principal number governs size and energy, the azimuthal number governs shape and orbital angular momentum, the magnetic number governs orientation in space, and the spin number governs the intrinsic angular momentum that produces magnetism in bulk matter. Mastery here means being able to move fluently in both directions: from a set of numbers to a description of the orbital, and from an orbital description back to its numbers.

By the end of this lesson you should be able to test any proposed set of quantum numbers for validity in seconds, count the orbitals and electron capacity of any shell, explain why the 3d subshell holds five orbitals while the 3p holds three, and connect the spin quantum number to the Stern–Gerlach experiment and to the magnetic behaviour of transition metals. These skills underpin everything that follows: the shapes of atomic orbitals in the next lesson, and the electron configuration rules that close the course.

The Four Quantum Numbers and What Each One Controls

The Four Quantum Numbers and What Each One Controls
The Four Quantum Numbers and What Each One ControlsAI-generated representative image

An atomic orbital is not a container with walls but a region of space in which the probability of finding an electron is high. Orbitals of different size, shape and orientation correspond to different probability distributions, and quantum numbers are the precise labels that distinguish them. Every orbital in an atom is designated by three numbers, ##n##, ##l## and ##m_l##, while a fourth number, ##m_s##, completes the description of the electron that occupies it. The first three describe the orbital itself; the fourth describes the electron's own internal state.

The logic of the scheme is hierarchical, and this hierarchy is the single most useful fact to internalise. The value of ##n## sets the menu of allowed ##l## values; each ##l## sets the menu of allowed ##m_l## values; and ##m_s## is independent of all three, taking only the values ##+\tfrac{1}{2}## or ##-\tfrac{1}{2}##. Because each number is constrained by the one before it, not every combination of integers corresponds to a real orbital. Recognising which combinations are permitted is the practical heart of this lesson.

The Principal Quantum Number n: Shell, Size and Energy

The principal quantum number is a positive integer taking the values ##n = 1, 2, 3, \ldots## and it identifies the shell, denoted by the letters K, L, M, N and so on. It determines the size of the orbital and, to a large extent, its energy. A larger ##n## means a larger orbital, an electron located on average further from the nucleus, and therefore a higher energy, since energy must be supplied to move a negatively charged electron away from a positively charged nucleus. For the hydrogen atom and hydrogen-like species such as ##\text{He}^+## and ##\text{Li}^{2+}##, energy and size depend on ##n## alone.

The number of allowed orbitals in a shell grows as ##n^2##, a result worth deriving rather than memorising. The nth shell contains ##n## subshells, and a subshell with azimuthal number ##l## contains ##2l+1## orbitals. Summing over all subshells gives the total orbital count for the shell:

A curve of n squared against n from 1 to 6, showing orbital counts 1, 4, 9, 16, 25 and 36, illustrating the quadratic growth of orbitals per shell.
The number of orbitals in a shell rises as the square of the principal quantum number, giving 1, 4, 9 and 16 for the first four shells.Digital illustration created with Zartom Composer · Rahul Anand
###\sum_{l=0}^{n-1}(2l+1) = n^2###

For ##n = 1## this gives one orbital; for ##n = 2##, four; for ##n = 3##, nine; and for ##n = 4##, sixteen. Since each orbital accommodates at most two electrons of opposite spin, the maximum electron capacity of a shell is ##2n^2##, the familiar sequence 2, 8, 18, 32 that governs the periods of the periodic table.

The Azimuthal Quantum Number l: Subshells and Shape

The azimuthal quantum number, also called the orbital angular momentum or subsidiary quantum number, defines the three-dimensional shape of the orbital. For a given value of ##n##, the permitted values of ##l## run from 0 to ##n-1##, so a shell with principal number ##n## contains exactly ##n## subshells. When ##n = 1## the only value is ##l = 0##; when ##n = 2## the values are 0 and 1; when ##n = 3## they are 0, 1 and 2. Each value of ##l## is represented by a letter: ##s## for 0, ##p## for 1, ##d## for 2, ##f## for 3, and then ##g## and ##h## for 4 and 5.

The azimuthal number also fixes the magnitude of the orbital angular momentum carried by an electron in that subshell, through the relation ##L = \sqrt{l(l+1)}\,\hbar##, where ##\hbar## is the reduced Planck constant. An electron in an ##s## orbital (##l = 0##) therefore has zero orbital angular momentum, while a ##p## electron carries ##\sqrt{2}\,\hbar##. In multi-electron atoms, ##l## also influences the energy of the orbital, which is why the 2s and 2p subshells of the same shell are not exactly degenerate in atoms heavier than hydrogen.

A curve of the square root of l(l+1) in units of h-bar against l from 0 to 4, with marked values 0, 1.41, 2.45, 3.46 and 4.47, showing that s electrons have zero orbital angular momentum.
The orbital angular momentum grows as the square root of l(l+1), so an s electron carries none while higher subshells carry steadily more.Digital illustration created with Zartom Composer · Rahul Anand
Subshell Map

Permissible Values of l and Subshell Notation

Each principal shell contains n subshells, labelled by the azimuthal quantum number.

n Allowed l Values and Subshells
1 l = 0 → 1s
2 l = 0, 1 → 2s, 2p
3 l = 0, 1, 2 → 3s, 3p, 3d
4 l = 0, 1, 2, 3 → 4s, 4p, 4d, 4f
Note:
  • The number of subshells in a shell equals n.
  • Letters beyond f (g, h) follow alphabetically for l = 4, 5.

The Magnetic Quantum Number and Spatial Orientation

The Magnetic Quantum Number and Spatial Orientation
The Magnetic Quantum Number and Spatial OrientationAI-generated representative image

The magnetic orbital quantum number ##m_l## describes the spatial orientation of an orbital with respect to a standard set of coordinate axes. For any subshell defined by a value of ##l##, there are ##2l+1## permitted values of ##m_l##, running from ##-l## through zero to ##+l##. For ##l = 0## the only value is ##m_l = 0##, giving one ##s## orbital. For ##l = 1## the values are ##-1, 0, +1##, giving three ##p## orbitals. For ##l = 2## the values are ##-2, -1, 0, +1, +2##, giving five ##d## orbitals. The pattern continues: seven ##f## orbitals, nine ##g## orbitals, eleven ##h## orbitals.

Two structural facts deserve emphasis. First, the values of ##m_l## are derived from ##l##, and the values of ##l## are derived from ##n##; the numbers cascade downward and never upward. Second, the number of orbitals in a subshell equals the number of permitted ##m_l## values, which is why the orbital count and the magnetic quantum number count are always identical. An orbital described by ##n = 2##, ##l = 1##, ##m_l = 0## is therefore one of the three ##p## orbitals in the second shell, distinguished from its two companions only by orientation.

Counting Orbitals and Electrons in Any Shell

Because the three orbital quantum numbers are constrained in sequence, the total number of orbitals in a shell can be counted systematically and checked against ##n^2##. The table below assembles the full census for the first four shells, including the electron capacity that follows from the Pauli restriction of two electrons per orbital. Reading across a row shows how a single shell fragments into subshells and then into individual orbitals, each of which is a distinct region of space with its own orientation.

Census

Orbital and Electron Census by Shell

Orbital totals follow n² and electron capacity follows 2n².

Shell (n) Subshells and Orbital Counts Total Orbitals (n²) Max Electrons (2n²)
1 (K) 1s (1) 1 2
2 (L) 2s (1) + 2p (3) 4 8
3 (M) 3s (1) + 3p (3) + 3d (5) 9 18
4 (N) 4s (1) + 4p (3) + 4d (5) + 4f (7) 16 32
Note:
  • Each orbital holds a maximum of two electrons with opposite spins.
  • The 2n² capacity explains the period lengths of the periodic table.

Degeneracy and the Hydrogen Atom

When several orbitals share the same energy they are said to be degenerate. In the hydrogen atom, the energy depends only on ##n##, so all orbitals of a given shell are degenerate regardless of their ##l## and ##m_l## values: the 2s and the three 2p orbitals of hydrogen sit at exactly the same energy. This degeneracy is a consequence of the pure ##1/r## Coulomb potential and is lifted in multi-electron atoms, where electron–electron repulsion and penetration effects split the subshells so that 2s lies below 2p.

Degeneracy also appears within a subshell in every atom. The three ##p## orbitals of a given shell are degenerate in the absence of an external field, as are the five ##d## orbitals, because the ##m_l## values differ only in orientation and not in energy. Applying a magnetic field removes this degeneracy, splitting the levels by an amount proportional to ##m_l## — the Zeeman effect — which is precisely why ##m_l## earned the name magnetic quantum number. The number of split components observed in a spectrum therefore reveals the value of ##l## for the level involved.

Electron Spin and the Fourth Quantum Number

Electron Spin and the Fourth Quantum Number
Electron Spin and the Fourth Quantum NumberAI-generated representative image

The three orbital quantum numbers define an orbital's energy, shape and orientation, but they cannot explain the fine structure of line spectra in multi-electron atoms, where some lines appear as closely spaced doublets and triplets. This suggests more energy levels than the three numbers predict. In 1925, George Uhlenbeck and Samuel Goudsmit proposed a fourth quantum number, the electron spin quantum number ##m_s##, arising from the electron's intrinsic spin angular momentum — an internal property analogous to the Earth spinning on its axis while revolving around the Sun.

Spin angular momentum is a vector quantity that can adopt only two orientations relative to a chosen axis, distinguished by ##m_s = +\tfrac{1}{2}## or ##m_s = -\tfrac{1}{2}##. These two spin states are conventionally drawn as an upward arrow ↑ (spin up) and a downward arrow ↓ (spin down). Two electrons with different ##m_s## values are said to have opposite spins, and the Pauli exclusion principle dictates that an orbital cannot hold more than two electrons, which must have opposite spins. This single rule generates the entire architecture of the periodic table.

The Stern–Gerlach Experiment as Evidence for Spin

Direct evidence for space quantisation and spin came from the Stern–Gerlach experiment of 1922, in which a beam of silver atoms passed through a non-uniform magnetic field and struck a detector plate. Classical physics predicted a continuous smear, because the atomic magnetic moments should be randomly oriented. Instead, the beam split into exactly two discrete spots, demonstrating that the magnetic moment can take only two orientations relative to the field. The result was initially interpreted in terms of orbital angular momentum, but the silver atom's ground state has ##l = 0##, so the splitting could only arise from the electron's intrinsic spin.

A diagram of the Stern-Gerlach experiment: an oven emits silver atoms, a collimating slit forms a beam, the beam crosses a non-uniform magnet and splits into two spots on a detector plate, labelled spin up and spin down.
Silver atoms pass through a non-uniform magnetic field and split into exactly two beams, one for each spin state.Digital illustration created with Zartom Composer · Rahul Anand
A beam of silver atoms leaves an oven, passes between the poles of a non-uniform magnet, and hits a detector plate where it splits into two discrete spots instead of a continuous smear.
Situation of the problem: a silver atom beam passes through a non-uniform magnetic field and strikes a detector plate.Digital illustration created with Zartom Composer · Rahul Anand

The experiment is a landmark because it converts an abstract quantum number into a measurable deflection. The two spots correspond directly to ##m_s = +\tfrac{1}{2}## and ##m_s = -\tfrac{1}{2}##, and the magnitude of the splitting confirms the spin magnetic moment. The same physics explains why substances containing unpaired electrons are paramagnetic and are drawn into a magnetic field, while those with all electrons paired are diamagnetic and are weakly repelled. The magnetic behaviour of transition metal compounds, and the contrast between high-spin and low-spin complexes, traces back to this fourth quantum number.

Summary

The Four Quantum Numbers at a Glance

What each number fixes, its allowed values, and the property it controls.

Quantum Number Allowed Values Property Determined
n (principal) 1, 2, 3, … Shell, size, energy
l (azimuthal) 0 to n−1 Subshell, shape, angular momentum
m_l (magnetic) −l to +l Orientation in space
m_s (spin) +½ or −½ Electron spin, magnetic moment
Note:
  • n, l and m_l together define one orbital.
  • m_s distinguishes the two electrons that may share an orbital.

Orbital Versus Orbit: Why the Distinction Matters

An orbit, as proposed by Bohr, is a circular path around the nucleus along which an electron moves. The Heisenberg uncertainty principle makes a precise description of such a path impossible, so Bohr orbits have no real physical meaning and their existence can never be demonstrated experimentally. An atomic orbital, by contrast, is a quantum mechanical concept referring to the one-electron wave function ##\psi## in an atom, characterised by the three quantum numbers ##n##, ##l## and ##m_l## and depending on the coordinates of the electron.

The wave function ##\psi## has, by itself, no physical meaning; it is the square of the wave function, ##|\psi|^2##, that carries physical significance. At any point in an atom, ##|\psi|^2## gives the probability density at that point — the probability per unit volume. Multiplying ##|\psi|^2## by a small volume element yields the probability of finding the electron in that volume, and summing these products over a region gives the total probability of finding the electron there. This is how the probable distribution of an electron in an orbital is constructed.

Valid and Invalid Quantum Number Sets

The most reliable way to consolidate the rules is to test proposed sets of quantum numbers against them. A set is valid only if every number obeys its own constraint and the constraints are respected in sequence: ##n## must be a positive integer, ##l## must lie between 0 and ##n-1##, ##m_l## must lie between ##-l## and ##+l##, and ##m_s## must be either ##+\tfrac{1}{2}## or ##-\tfrac{1}{2}##. A single violation anywhere in the set invalidates the whole set, because the numbers describe one orbital and one electron together.

Consider ##n = 2##, ##l = 1##, ##m_l = -1##, ##m_s = +\tfrac{1}{2}##. Every constraint is satisfied: ##l = 1## is permitted for ##n = 2##, ##m_l = -1## is permitted for ##l = 1##, and the spin is one of the two allowed values. This set describes one electron in a 2p orbital. Now consider ##n = 2##, ##l = 2##, ##m_l = 0##, ##m_s = +\tfrac{1}{2}##. Here ##l = 2## is not permitted when ##n = 2##, since ##l## cannot exceed ##n-1##, so the set is invalid and no such orbital exists.

Worked Examples and Common Mistakes

Take ##n = 3##, ##l = 0##, ##m_l = 1##, ##m_s = -\tfrac{1}{2}##. The value ##l = 0## restricts ##m_l## to 0 alone, so ##m_l = 1## is impossible and the set is invalid. Take ##n = 4##, ##l = 3##, ##m_l = -3##, ##m_s = +\tfrac{1}{2}##: this is valid and describes a 4f orbital. Take ##n = 1##, ##l = 0##, ##m_l = 0##, ##m_s = +\tfrac{1}{2}##: valid, describing the single 1s orbital. A frequent error is to allow ##m_l## to exceed ##l##, or to permit ##l = n##, both of which are forbidden.

A boxed set of four quantum numbers n = 3, l = 0, m_l = 1, m_s = −½ with the allowed ranges for each number shown beside it.
Situation of the problem: a proposed set of four quantum numbers to be checked against the allowed constraints.Digital illustration created with Zartom Composer · Rahul Anand

Another common mistake is to treat ##m_s## as an orbital label rather than an electron label. The first three numbers define the orbital; ##m_s## distinguishes the two electrons that may occupy it. A set with ##m_s = 1## or ##m_s = 0## is therefore invalid. Students also confuse the number of orbitals in a subshell with the number of electrons: a ##d## subshell has five orbitals but holds ten electrons, and a ##p## subshell has three orbitals but holds six. Keeping the orbital count and the electron count distinct prevents most errors in configuration problems.

Diagnostics

Validity Check of Proposed Quantum Number Sets

Testing each set against the sequential constraints on n, l, m_l and m_s.

Set (n, l, m_l, m_s) Verdict Reason
2, 1, −1, +½ Valid All constraints satisfied; a 2p electron
2, 2, 0, +½ Invalid l cannot equal n
3, 0, 1, −½ Invalid m_l exceeds l
4, 3, −3, +½ Valid A 4f electron
1, 0, 0, 1 Invalid m_s must be ±½
Note:
  • Check constraints in order: n, then l, then m_l, then m_s.
  • A single violation invalidates the entire set.

Historical Origins and the Quantum Mechanical Framework

The quantum numbers did not arrive as a single coherent scheme but accumulated over roughly three decades of spectroscopy and theory. Bohr's 1913 model introduced the principal quantum number to explain the hydrogen spectrum, and Sommerfeld extended it with an azimuthal number to account for fine structure. The magnetic quantum number emerged from the analysis of spectral lines split in magnetic fields, the Zeeman effect, while the spin number arrived last, in 1925, from the study of doublet lines and the Stern–Gerlach result. Each number was forced upon physicists by experimental data before its theoretical basis was understood.

The full justification came with the Schrödinger equation, whose solutions for the hydrogen atom naturally yield three integer quantum numbers as boundary conditions on the wave function. The principal number arises from the requirement that the wave function vanish at infinity, the azimuthal number from the requirement that it be single-valued in angle, and the magnetic number from the same angular condition applied to the azimuthal coordinate. Spin, however, is not contained in the non-relativistic Schrödinger equation; it required the Dirac equation of 1928, which predicted spin naturally and explained its magnetic moment.

Orbital Angular Momentum and Its Consequences

The azimuthal quantum number is the quantum signature of orbital angular momentum, and its consequences reach far beyond atomic structure. Because ##L = \sqrt{l(l+1)}\,\hbar##, an electron in an ##s## orbital carries no orbital angular momentum and produces no orbital magnetic moment, which is why the Stern–Gerlach splitting of silver could not be attributed to orbital motion. The ##z##-component of angular momentum is quantised as ##L_z = m_l\hbar##, so the orientation of the angular momentum vector is restricted to discrete values — the space quantisation that the Stern–Gerlach experiment revealed directly.

These relations explain selection rules in spectroscopy: transitions between orbitals are allowed only when ##\Delta l = \pm 1##, which is why spectral lines correspond to specific subshell changes. They also underpin the behaviour of electrons in magnetic fields, the design of magnetic materials, and the interpretation of molecular orbital diagrams. The quantum numbers are therefore not merely labels for examination purposes; they encode the conservation laws and symmetries that govern how atoms interact with light and with magnetic fields.

From Quantum Numbers to Electron Configuration

The rules developed here feed directly into the electron configuration rules that close the course. The Pauli exclusion principle, which forbids two electrons from sharing all four quantum numbers, limits each orbital to two electrons of opposite spin. The Aufbau principle fills orbitals in order of increasing energy, and Hund's rule places electrons singly in degenerate orbitals before pairing them. Every one of these rules is expressed in the language of ##n##, ##l##, ##m_l## and ##m_s##, and every configuration you will write is a list of occupied quantum number sets.

A short computational check reinforces the counting rules and prepares you for configuration problems. The script below enumerates all valid orbital sets for a given principal quantum number and verifies the ##n^2## result, then counts the maximum electron capacity. Running it for several values of ##n## makes the combinatorial structure of the quantum number scheme concrete and provides a reliable way to check your own manual counts during revision.


def orbitals_in_shell(n):
    """List all valid (n, l, m_l) orbital sets for a given shell."""
    orbitals = []
    for l in range(0, n):                 # l runs from 0 to n-1
        for m_l in range(-l, l + 1):      # m_l runs from -l to +l
            orbitals.append((n, l, m_l))
    return orbitals

for n in range(1, 5):
    sets = orbitals_in_shell(n)
    print(f"n = {n}: {len(sets)} orbitals, "
          f"max electrons = {2 * len(sets)}")
    assert len(sets) == n ** 2            # verify the n^2 rule

The output confirms the sequence 1, 4, 9 and 16 orbitals for the first four shells, with capacities of 2, 8, 18 and 32 electrons. Notice how the inner loop over ##m_l## depends on ##l##, which itself depends on ##n##: this nested dependence is the computational expression of the hierarchical constraint that governs the whole scheme. Once you can write and read such a loop, the rules cease to be facts to memorise and become a structure you can reason with.

Consolidation: Applying Quantum Numbers with Confidence

The four quantum numbers together provide a complete specification of an electron's state in an atom. The principal number ##n## defines the shell, determines the size of the orbital and, to a large extent, its energy. The azimuthal number ##l## identifies the subshell and determines the shape of the orbital, with ##2l+1## orbitals of each type in a subshell — one ##s##, three ##p##, five ##d##. The magnetic number ##m_l## designates the orientation of the orbital, taking ##2l+1## values for a given ##l##. The spin number ##m_s## completes the picture with its two values, ##+\tfrac{1}{2}## and ##-\tfrac{1}{2}##.

Fluency with these numbers means being able to move in both directions without hesitation. Given ##n = 3##, ##l = 2##, ##m_l = +1##, you should immediately recognise a 3d orbital, one of five in that subshell, in the third shell, which contains nine orbitals in total. Given the instruction to write the configuration of a chlorine atom, you should be able to place seventeen electrons into quantum number sets, respecting Pauli, Aufbau and Hund, and to state the spin of the unpaired electron in the outermost ##p## subshell. This bidirectional fluency is what the next lesson on orbital shapes will assume.

Preparing for Orbital Shapes

The next lesson turns the azimuthal quantum number into pictures. Having established that ##l = 0## gives a single spherical ##s## orbital, ##l = 1## gives three mutually perpendicular ##p## orbitals, and ##l = 2## gives five ##d## orbitals with more elaborate geometry, the shapes lesson will show how these orientations arise from the angular part of the wave function. The ##m_l## values you have learned here are precisely the labels that distinguish the individual members of each set, so the visual material will map directly onto the numbers.

Before moving on, verify your understanding with three checks. First, confirm that a ##4d## subshell contains five orbitals and holds ten electrons. Second, explain why the set ##n = 3##, ##l = 3##, ##m_l = 0## is impossible. Third, state the maximum number of electrons in the ##n = 3## shell and justify it using ##2n^2##. If all three answers come without hesitation, you are ready for the shapes of atomic orbitals and for the configuration rules that follow.

Three numbered panels: a 4d subshell with its orbital and electron count left blank, the set n = 3, l = 3, m_l = 0 marked with a question mark, and the n = 3 shell with its maximum electron count left blank.
Situation of the problem: three checks on subshell capacity, an impossible set, and shell electron count.Digital illustration created with Zartom Composer · Rahul Anand
Reference

Subshell Capacity Reference

Orbital counts and electron capacities for each subshell type.

Subshell l Orbitals (2l+1) Max Electrons
s 0 1 2
p 1 3 6
d 2 5 10
f 3 7 14
Note:
  • Orbital count follows 2l+1; electron capacity is double that.
  • These capacities drive the structure of the periodic table.
History

Quantum Numbers in Context: Historical Milestones

How each quantum number entered physics through experiment and theory.

Year Development Quantum Number Introduced
1913 Bohr model of hydrogen n
1916 Sommerfeld extension l
1922 Stern–Gerlach experiment Evidence for m_s
1925 Uhlenbeck and Goudsmit m_s
1926 Schrödinger equation n, l, m_l derived
Note:
  • Each number was forced by experimental evidence before theory explained it.
  • Spin required the relativistic Dirac equation of 1928 for full justification.