Atomic Structure

The periodic table is not arbitrary. Every trend on it — size, reactivity, color, conductivity — falls out of one idea: electrons live in quantized orbitals around a positively charged nucleus, and the rules for filling those orbitals determine everything else.

Prereq: high-school chemistry, a touch of quantum mechanics Read time: ~30 min Interactive figures: 1 Code: NumPy

1. Why atomic structure matters

You already know the cartoon. An atom is a tiny nucleus with electrons buzzing around it. The nucleus has protons (positive) and neutrons (neutral); the electrons (negative) balance the protons to make the whole thing electrically neutral. Different elements have different numbers of protons, and chemistry is mostly about what the electrons do.

That cartoon is right, but flat. It doesn't tell you why carbon forms four bonds, why sodium and fluorine react violently while argon refuses, why copper is a conductor and diamond an insulator, why iron's d-electrons give it magnetism, or why every emission line in a sodium streetlamp is exactly where it is. All of that comes from one deeper fact: electrons inside atoms are restricted to a discrete set of quantum states, and the structure of those states is what makes chemistry predictable.

Why should you care, if you aren't a chemist?

THE PUNCHLINE

Electrons in atoms can only live in certain shapes (orbitals) at certain energies. The rules for which orbitals exist come from the Schrödinger equation. The rules for how to fill them come from the Pauli exclusion principle and the Aufbau principle. Those two rulebooks, applied to a nucleus with $Z$ protons, reproduce the entire periodic table.

2. Vocabulary cheat sheet

SymbolRead asMeans
$Z$"atomic number"Number of protons in the nucleus. Defines what element you have.
$A$"mass number"Total number of nucleons (protons + neutrons) in the nucleus.
$N$"neutron number"Number of neutrons, equal to $A - Z$.
$n$"principal quantum number"$1, 2, 3, \dots$ — the shell an electron is in. Larger $n$ means farther from the nucleus and higher energy.
$\ell$"angular momentum quantum number"$0, 1, 2, \dots, n-1$. Labels the subshell ($s, p, d, f$).
$m_\ell$"magnetic quantum number"Integer from $-\ell$ to $+\ell$. Labels which orbital inside a subshell.
$m_s$"spin quantum number"$+\tfrac{1}{2}$ or $-\tfrac{1}{2}$ — spin up or spin down.
$E_n$"energy of level $n$"The energy of an electron in the $n$-th shell (exact for hydrogen, approximate otherwise).
$\psi$"psi"The wavefunction — a function whose squared magnitude gives the probability density of finding the electron somewhere.
eV"electron volt"A convenient energy unit, $1\ \text{eV} = 1.602\times 10^{-19}$ J. Chemistry happens on the eV scale.

3. Atoms and isotopes

A neutral atom has three ingredients:

The total mass of the atom is dominated by the nucleus (protons and neutrons are about 1800 times heavier than an electron). We quote the mass in mass number:

$$A = Z + N.$$

Mass number

$A$
The mass number — the total count of nucleons. For ordinary carbon, $A = 12$ (six protons + six neutrons).
$Z$
The atomic number — the proton count. Fixes the element.
$N$
The neutron count. Varies across isotopes of the same element.

Notation. Chemists write an isotope as $^{A}_{Z}X$, for example $^{14}_{6}\text{C}$ — carbon-14, the isotope with two extra neutrons, the one radiocarbon dating measures. Since the element symbol already pins down $Z$, the lower subscript is usually dropped and you just see $^{14}\text{C}$. Most elements you encounter are actually a weighted mixture of isotopes — "natural carbon" is about 98.9% $^{12}\text{C}$ and 1.1% $^{13}\text{C}$, with a trace of $^{14}\text{C}$.

When you look up an element's atomic weight on a periodic table (say, 12.011 for carbon), that decimal is the natural abundance-weighted average of the isotope masses. If your work cares about individual isotopes — in mass spectrometry, NMR, or nuclear chemistry — you will often need the specific value for a specific isotope, not the average.

Worked example: isotope arithmetic

Boron has two stable isotopes: $^{10}\text{B}$ (mass 10.013 u, abundance 19.9%) and $^{11}\text{B}$ (mass 11.009 u, abundance 80.1%). The weighted average is

$$\bar m = (0.199)(10.013) + (0.801)(11.009) = 10.811\ \text{u},$$

Weighted average atomic mass

$\bar m$
The abundance-weighted average mass of one atom of naturally occurring boron, in atomic mass units (u).
$0.199,\ 0.801$
Natural abundance fractions (summing to 1).
$10.013,\ 11.009$
The nuclidic masses of the two isotopes in atomic mass units.

Why it matters. Boron-10 absorbs thermal neutrons about 200 times more strongly than boron-11. Nuclear reactors and boron neutron capture therapy both use enriched $^{10}\text{B}$, not natural boron — the average you see on the periodic table hides the fact that one isotope does almost all the work.

4. The quantum atom

The first useful model of the atom was Niels Bohr's, in 1913. He assumed electrons orbit the nucleus in circular paths like planets, but with one non-classical twist: only certain orbits are allowed. The allowed orbits are those where the electron's angular momentum is an integer multiple of $\hbar = h/(2\pi)$ (Planck's constant over $2\pi$).

For a single-electron ion with nuclear charge $Ze$, the Bohr model predicts discrete energy levels

$$E_n = -\frac{Z^2\, R_H}{n^2}, \qquad n = 1, 2, 3, \dots$$

Bohr energy levels (hydrogen-like atoms)

$E_n$
The energy of an electron in the $n$-th allowed orbit. Negative, because the electron is bound to the nucleus — you'd have to supply energy to rip it out to infinity.
$Z$
The nuclear charge. For hydrogen, $Z = 1$. For a singly ionized helium atom (He$^+$), $Z = 2$. The formula only works for atoms with exactly one electron.
$R_H$
The Rydberg energy, $R_H \approx 13.6$ eV. It's a universal constant built from $m_e$, $e$, $\hbar$, and $\epsilon_0$. You can compute it from first principles.
$n$
The principal quantum number, $1, 2, 3, \dots$. $n = 1$ is the ground state — the lowest energy, the most tightly bound.

What it means. The electron can't sit anywhere; it can only sit in specific energy slots. When it drops from a higher slot to a lower one, the energy difference is released as a single photon — and because the levels are discrete, the photon has a very specific wavelength. That's why flames from sodium are yellow, neon signs are red, and hydrogen emission is a series of sharp lines instead of a rainbow.

For hydrogen ($Z = 1$), $E_1 = -13.6$ eV, $E_2 = -3.4$ eV, $E_3 = -1.51$ eV, and so on, converging to 0 as $n \to \infty$. The energy you need to ionize a hydrogen atom from its ground state — pull its electron out to infinity — is $0 - (-13.6) = 13.6$ eV. That number is the first ionization energy of hydrogen, and it's the first prediction you can compute and check against experiment.

WHERE BOHR BREAKS

Bohr's model works for hydrogen and hydrogen-like ions (He$^+$, Li$^{2+}$, etc.) but fails the moment you add a second electron. It also can't predict orbital shapes, chemical bonding, or fine spectral structure. The modern picture replaces "electron in a circular orbit" with "electron in a three-dimensional wavefunction that is a solution to the Schrödinger equation." That's the subject of the next section.

The Schrödinger picture in one paragraph

For a single electron in a potential $V(r)$ (for hydrogen, $V(r) = -Ze^2/(4\pi\epsilon_0 r)$), the time-independent Schrödinger equation is

$$-\frac{\hbar^2}{2m_e}\nabla^2 \psi + V(r)\,\psi = E\,\psi.$$

Schrödinger equation for the hydrogen atom

$\psi$
The wavefunction of the electron. A complex-valued function of position whose squared magnitude $|\psi|^2$ gives the probability density of finding the electron at a given point.
$\nabla^2$
The Laplacian — sum of second partial derivatives in all three spatial directions. It encodes the kinetic energy of the electron in quantum mechanics.
$m_e$
The electron mass, $9.109\times 10^{-31}$ kg.
$\hbar$
Planck's constant over $2\pi$, $1.055\times 10^{-34}$ J·s.
$V(r)$
The Coulomb potential — attractive, negative, going to zero at infinity.
$E$
The energy — the eigenvalue. Only certain values of $E$ give wavefunctions that are well-behaved, and those are the allowed energy levels.

What solving this buys you. The solutions come labeled by three quantum numbers $(n, \ell, m_\ell)$ and they reproduce the Bohr energies $E_n = -Z^2 R_H/n^2$ exactly — plus they give you the three-dimensional shapes of the orbitals. Bohr's circular orbits become a special case of a much richer geometry. See quantum mechanics for the full derivation.

5. Orbitals and quantum numbers

Every electron in an atom is described by four quantum numbers. Three come from the Schrödinger equation; the fourth is a purely quantum property called spin.

  1. Principal quantum number $n = 1, 2, 3, \dots$ — the shell. Sets the main energy and rough distance from the nucleus.
  2. Angular momentum quantum number $\ell = 0, 1, 2, \dots, n-1$ — the subshell. Sets the orbital shape. $\ell = 0$ is called $s$, $\ell = 1$ is $p$, $\ell = 2$ is $d$, $\ell = 3$ is $f$. (The letters are historical — they come from pre-quantum spectroscopy: sharp, principal, diffuse, fundamental.)
  3. Magnetic quantum number $m_\ell = -\ell, \dots, 0, \dots, +\ell$ — labels the $2\ell + 1$ orbitals in the $\ell$-th subshell. For $\ell = 1$ (a $p$ subshell) you get $m_\ell \in \{-1, 0, +1\}$, the three $p$ orbitals usually called $p_x, p_y, p_z$.
  4. Spin quantum number $m_s = \pm\tfrac{1}{2}$ — intrinsic angular momentum. Every electron is either spin-up or spin-down.

The Pauli exclusion principle says no two electrons in the same atom can share all four quantum numbers. In practice, that means each orbital (a specific $n, \ell, m_\ell$) holds at most two electrons — one spin-up and one spin-down.

How many orbitals in a shell? Shell $n$ has $n$ subshells ($\ell = 0$ through $\ell = n-1$), each with $2\ell + 1$ orbitals, each holding 2 electrons. So shell $n$ holds $2n^2$ electrons total. Shell 1: 2 electrons. Shell 2: 8. Shell 3: 18. Shell 4: 32.

Orbital shapes

The math of the Schrödinger equation, when separated into radial and angular parts, assigns every $(n, \ell, m_\ell)$ a specific three-dimensional probability density:

These shapes are the reason molecular geometry is what it is. When atoms bond, their orbitals overlap, and the overlap geometry is set by the orbital shapes. See bonding for the consequences.

6. Interactive: orbital shapes

The figure below draws cross-sections of hydrogen-like orbitals. Pick an orbital by its $(n, \ell, m_\ell)$ quantum numbers and the display updates with a 2D slice of the probability density $|\psi|^2$ in the $xz$-plane. Brighter means more likely to find the electron.

Orbital: 1s

A cross-section of $|\psi|^2$ in the $xz$-plane. Nodes — planes where the density is zero — show up as dark lines. Higher $n$ pushes the density farther out. Higher $\ell$ adds angular nodes.

Things to notice as you click through:

7. Electron configurations and the Aufbau principle

To build a multi-electron atom, you feed electrons into orbitals one at a time, in increasing order of energy, with two per orbital (Pauli). That procedure is called the Aufbau principle (German for "building up"), and it comes with two refinements:

The standard filling order is: $1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, \dots$

So carbon ($Z = 6$) fills as $1s^2\, 2s^2\, 2p^2$. Sodium ($Z = 11$) is $1s^2\, 2s^2\, 2p^6\, 3s^1$. Iron ($Z = 26$) is $1s^2\, 2s^2\, 2p^6\, 3s^2\, 3p^6\, 4s^2\, 3d^6$. You can also write these using noble gas shorthand: Fe is $[\text{Ar}]\, 4s^2\, 3d^6$, because argon has $1s^2\, 2s^2\, 2p^6\, 3s^2\, 3p^6$ and you don't need to rewrite it.

CARE: EXCEPTIONS

Aufbau gives the right answer for most elements, but there are a dozen or so annoying exceptions, mostly in the d-block. Chromium is $[\text{Ar}]\,4s^1\,3d^5$ instead of $4s^2\,3d^4$ (half-filled d subshells are extra stable). Copper is $[\text{Ar}]\,4s^1\,3d^{10}$ instead of $4s^2\,3d^9$ (completely filled d subshells are extra stable). These aren't mistakes in the rule — they're cases where the small energy cost of moving one electron is paid back by extra exchange stabilization. If you need configurations for a specific element, look them up; don't trust Aufbau blindly past row 4.

8. Periodic trends

The periodic table's rows correspond to shells filling up. Its columns correspond to atoms with matching outer-shell configurations — the valence electrons — and that's why columns share chemical behavior. All the alkali metals (Li, Na, K, Rb, Cs) have $ns^1$ valence configurations, and they all react the same way: lose one electron, become a $+1$ cation. All the halogens (F, Cl, Br, I) have $ns^2 np^5$ configurations, and they all want one more electron to close their shell.

Four trends fall out of this structure. Three of them you should commit to memory, because they come up constantly.

Atomic radius

Across a row (left to right), atoms shrink. The nuclear charge $Z$ goes up, but the additional electrons go into the same shell and don't shield each other well, so every electron feels a stronger effective nuclear charge and is pulled in tighter. Down a column, atoms grow. Each row adds a whole new shell, and the core electrons partially shield the outer ones from the nucleus, so the outer shell settles at a larger radius.

Ionization energy

The first ionization energy $\text{IE}_1$ is the energy required to remove one electron from a neutral gas-phase atom:

$$\text{X}(g) \;\longrightarrow\; \text{X}^+(g) + e^-, \qquad \Delta E = \text{IE}_1.$$

First ionization energy

$\text{X}(g)$
A neutral atom of element $X$ in the gas phase. The "g" means we're not dealing with any solvent or neighbors.
$\text{X}^+(g)$
The resulting $+1$ cation, still in the gas phase.
$e^-$
The liberated electron, carried off to infinity.
$\Delta E$
The energy change, always positive — you have to supply energy to rip the electron out.
$\text{IE}_1$
Shorthand for the first ionization energy, typically quoted in eV per atom or kJ/mol per mole of atoms. For hydrogen, 13.6 eV or 1312 kJ/mol.

Why care. Ionization energies set the voltage window of batteries, the work functions of metals, and the thresholds for photoionization in mass spectrometry. They're also the cleanest experimental check on atomic-structure theory: compute them from first principles and compare to measurement.

Across a row, $\text{IE}_1$ generally rises (the nucleus pulls harder, electrons are harder to remove). Down a column, it falls (the electron you're removing is in a higher, less tightly bound shell). There are two famous glitches: $\text{IE}_1$ drops slightly going from Be to B (because you start pulling a 2p electron instead of a 2s one, and 2p is higher in energy), and again from N to O (because the O you're pulling from has a paired 2p electron, which is less stable than the half-filled configuration of N).

Electron affinity and electronegativity

Electron affinity is the energy released when a neutral atom captures an electron to become a $-1$ anion. Electronegativity is a derived quantity (Pauling's scale) that captures how strongly an atom pulls shared electrons toward itself in a bond. Both grow across a row and shrink down a column, for the same reasons ionization energy does. Fluorine is the most electronegative element (Pauling scale 3.98). Francium is the least (0.7). Everything else falls in between, and the electronegativity difference between two bonded atoms controls whether the bond is purely covalent, polar, or ionic — see bonding.

THE CORE TRENDS, MEMORIZE

Across a row (L→R): radius shrinks, ionization energy rises, electron affinity gets more negative, electronegativity rises. Down a column: radius grows, ionization energy falls, electron affinity weakens, electronegativity falls. Noble gases are exceptional on every axis because their shells are full. Transition metals are less predictable because their d-electrons shield poorly.

9. Spectroscopy: how energy levels become light

Spectroscopy is the experimental handle on electronic structure. Shine light on an atom and it absorbs photons whose energies exactly match gaps between its electronic levels. Heat an atom and it emits photons at those same gaps as excited electrons fall back down. The pattern of absorbed or emitted wavelengths is a fingerprint of the atom's energy-level structure, and for simple atoms like hydrogen, you can read the level structure off the spectrum and confirm the theory.

For hydrogen, the transition from level $n_i$ to level $n_f$ emits a photon of energy

$$\Delta E = E_{n_i} - E_{n_f} = R_H\left(\frac{1}{n_f^2} - \frac{1}{n_i^2}\right).$$

Rydberg formula for hydrogen transitions

$n_i, n_f$
Initial and final principal quantum numbers. For emission, $n_i > n_f$ (electron drops down).
$\Delta E$
The photon energy. For emission, positive and equal to $h\nu$ where $\nu$ is the photon frequency.
$R_H$
The Rydberg energy, $13.6$ eV.
$1/n_f^2 - 1/n_i^2$
Always positive when $n_i > n_f$; the difference of inverse squares is why the spectral lines cluster closer together as you go to higher $n_i$.

Reading the series. Transitions to $n_f = 1$ give the Lyman series (UV), $n_f = 2$ the Balmer series (visible — these are the lines you see through a diffraction grating in a hydrogen discharge tube), $n_f = 3$ the Paschen series (infrared). Each series has infinitely many lines that converge to a series limit at $R_H/n_f^2$, the energy to ionize from that final level.

Connect to the photon: $E_{\text{photon}} = h\nu = hc/\lambda$, where $\nu$ is frequency and $\lambda$ is wavelength. If $\Delta E = 10.2$ eV (the first Lyman line, $n_i=2 \to n_f=1$), then $\lambda = hc/\Delta E = 121.6$ nm — in the vacuum ultraviolet. That line is one of the brightest in the spectrum of the early universe, and it's how astronomers find distant hydrogen.

Worked example: the Balmer alpha line

Compute the wavelength of the $n_i = 3 \to n_f = 2$ transition in hydrogen.

  1. $\Delta E = R_H(1/4 - 1/9) = 13.6\,(0.25 - 0.1111) = 13.6 \times 0.1389 = 1.889$ eV.
  2. Convert to joules: $\Delta E = 1.889 \times 1.602\times 10^{-19} = 3.026\times 10^{-19}$ J.
  3. $\lambda = hc/\Delta E = (6.626\times 10^{-34})(3\times 10^8)/(3.026\times 10^{-19})$.
  4. $= 6.566\times 10^{-7}$ m $= 656.6$ nm. Red light.

That's the H-alpha line, and it's exactly the red glow you see in pictures of nebulae. The prediction and the observation agree to parts per million.

10. Atomic structure in code

Two small computations. The first evaluates the radial part of a hydrogen orbital. The second computes a weighted isotope mass from abundances. Both are tiny; both are useful.

atomic-structure primitives
import numpy as np

# ---------- 1. Hydrogen 1s radial wavefunction ----------
# R_{10}(r) = 2 (1/a0)^{3/2} exp(-r/a0)
# a0 is the Bohr radius in meters.
a0 = 5.29177e-11
def R10(r):
    return 2.0 * a0**(-1.5) * np.exp(-r / a0)

# Radial probability density P(r) = 4 pi r^2 |R(r)|^2
# Most likely r is where dP/dr = 0, which happens at r = a0.
r_grid = np.linspace(0, 5 * a0, 200)
P = 4 * np.pi * r_grid**2 * R10(r_grid)**2
r_peak = r_grid[np.argmax(P)]
print(f"most likely r = {r_peak/a0:.3f} a0 (expected 1.000)")

# ---------- 2. Bohr energy levels ----------
RH = 13.6057  # eV
def E_bohr(n, Z=1):
    return -Z**2 * RH / n**2

# Balmer alpha: n=3 -> n=2
dE = E_bohr(3) - E_bohr(2)  # negative, emission
print(f"Balmer alpha photon = {-dE:.3f} eV")
# hc in eV*nm is a handy constant: 1240 eV*nm
lam_nm = 1240.0 / (-dE)
print(f"wavelength = {lam_nm:.1f} nm (expected ~656)")

# ---------- 3. Average atomic mass from isotopes ----------
def avg_mass(masses, abundances):
    a = np.asarray(abundances, dtype=float)
    a = a / a.sum()  # normalize in case percentages don't sum to 1
    return float(np.dot(masses, a))

# Boron: 10B (10.013 u, 19.9%) and 11B (11.009 u, 80.1%)
m_B = avg_mass([10.013, 11.009], [0.199, 0.801])
print(f"natural boron = {m_B:.3f} u (periodic table: 10.811)")
import math

# Same calculations without NumPy.

a0 = 5.29177e-11
RH = 13.6057

def R10(r):
    return 2.0 * a0**(-1.5) * math.exp(-r / a0)

def E_bohr(n, Z=1):
    return -Z * Z * RH / (n * n)

def photon_nm(n_hi, n_lo, Z=1):
    dE = E_bohr(n_hi, Z) - E_bohr(n_lo, Z)
    return 1240.0 / (-dE)

print(f"Lyman alpha  = {photon_nm(2,1):6.1f} nm")  # ~121.6
print(f"Balmer alpha = {photon_nm(3,2):6.1f} nm")  # ~656.5
print(f"Paschen alpha= {photon_nm(4,3):6.1f} nm")  # ~1875

# He+ (Z=2) Lyman alpha: factor of Z^2 = 4 in energy, 1/4 in wavelength
print(f"He+ Lyman alpha = {photon_nm(2,1,Z=2):.1f} nm")  # ~30.4

def avg_mass(masses, fractions):
    total = sum(fractions)
    return sum(m * (f / total) for m, f in zip(masses, fractions))

print(f"Cl avg = {avg_mass([34.969, 36.966], [0.7576, 0.2424]):.3f}")  # ~35.45

Three things worth noticing:

11. Cheat sheet

Atomic number

$Z$ = proton count. Fixes the element.

Change $Z$ → change element.

Mass number

$A = Z + N$.

Labels isotopes of the same element.

Bohr energy

$E_n = -Z^2 R_H / n^2$, $R_H = 13.6$ eV.

Exact for hydrogen-like ions only.

Quantum numbers

$(n, \ell, m_\ell, m_s)$, four labels per electron.

Pauli: no two electrons share all four.

Subshell sizes

$s$: 2, $p$: 6, $d$: 10, $f$: 14.

From $2(2\ell+1)$ electrons per subshell.

Shell capacity

Shell $n$ holds $2n^2$ electrons.

2, 8, 18, 32, $\dots$

Filling order

$1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, \dots$

Madelung $n+\ell$ rule, with d-block exceptions.

Rydberg formula

$\Delta E = R_H(1/n_f^2 - 1/n_i^2)$

Transition energy between hydrogen levels.

Periodic trends →

Across a row: radius ↓, IE ↑, EN ↑.

Down a column: opposite.

Photon energy

$E = h\nu = hc/\lambda$; $hc = 1240$ eV·nm.

Carry the constant; skip the unit dance.

See also

Bonding

Orbitals from this page overlap to form chemical bonds. Lewis structures, VSEPR, hybridization, and molecular orbital theory all start here.

Physics: Quantum Mechanics

The Schrödinger equation, the particle in a box, angular momentum, and the spin-statistics theorem — everything this page asserts comes from there.

Quantum Chemistry

Where the single-electron picture stops working and you need Hartree-Fock, DFT, and post-HF methods to do chemistry quantitatively.

Math: Linear Algebra

Orbitals are eigenvectors of the Hamiltonian. Energy levels are eigenvalues. Atomic structure is a linear algebra problem in an infinite-dimensional Hilbert space.

Further reading

  • Peter Atkins and Julio de Paula — Physical Chemistry. The standard rigorous undergraduate treatment. Chapters on atomic structure are thorough and well-illustrated.
  • Linus Pauling — The Nature of the Chemical Bond (1939, revised 1960). The book that established electronegativity and hybridization as everyday tools. Still readable.
  • Walter Kohn's Nobel lecture (1999) — Electronic structure of matter. The origin of density functional theory, and one of the clearest modern overviews of where atomic-structure theory goes beyond Hartree-Fock.
  • NIST Atomic Spectra Database — nist.gov/pml/atomic-spectra-database. The authoritative table of measured atomic transition wavelengths for every element.
  • Wikipedia — Hydrogen atom. A solid article with the full derivation of the Schrödinger solutions.
NEXT UP
→ Bonding

Now that you know what orbitals look like, the next question is what happens when two atoms bring their orbitals into contact. The answer is the entire edifice of chemical bonding: Lewis structures, VSEPR geometry, hybridization, molecular orbitals, and the intermolecular forces that set the boiling points of everything around you.