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.
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.
On This Page
The Four Quantum Numbers and What Each One Controls
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:
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.
The Magnetic Quantum Number and Spatial Orientation
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.
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
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.
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.
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.
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.
We Also Published
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.
From our network :
- Where to Put Your Wireless Router for Better CoverageA practical, physics-grounded guide to router placement: why the centre of the home beats the corner, how walls and metal sap signal, and how to run a simple survey that proves the improvement.
- 98% of Global MBA Programs Now Prefer GRE Over GMAT Focus EditionExplore why 98% of global MBA programs now prefer the GRE over GMAT Focus. Learn about the shorter GRE format, verbal logic importance, and strategic versatility for students.
- Analyzing Trump Deportation Numbers Insights Into The 2026 Immigration Crackdown
- How to Print Cheaply: Cutting the Cost per PageA practical, measured guide to lowering what each printed page costs — duplex and draft modes, third-party ink, yield mathematics, and knowing when a new printer beats refills.
- EV 2.0: The Solid-State Battery Breakthrough and Global Factory ExpansionDiscover the impact of the Solid-State Battery Breakthrough on the EV market. Learn about CATL and BYD stock growth, global factory expansion in Europe, and the future of EV 2.0 technology.
- Trump Political Strategy How Geopolitical Stunts Serve As Media Diversions
- AI-Powered 'Precision Diagnostic' Replaces Standard GRE Score ReportsDiscover the new GRE Precision Diagnostic. Learn how AI-powered behavioral analytics and time-to-solve tracking are replacing standard GRE score reports to empower students.
- Do You Need a New Router or Is Your Internet Plan the Problem?A practical comparison of the signs that point to router limits versus signs your broadband speed or provider is the bottleneck, so you can decide what to replace before spending money.
- 10 Physics Numerical Problems with Solutions for IIT JEEPrepare for IIT JEE with 10 physics numerical problems, complete with detailed solutions and conceptual explanations. Ideal for mastering kinematics, thermodynamics, electromagnetism, and optics.