Quantum Physics

Atomic Structure

Tiny dense nucleus surrounded by electron cloud — the building blocks of all matter

An atom consists of a tiny dense nucleus (protons + neutrons) surrounded by a much larger electron cloud. Diameter ~10⁻¹⁰ m; nucleus ~10⁻¹⁵ m (100,000× smaller). Atomic number Z = number of protons (defines element). Mass number A = protons + neutrons. Electrons in quantum orbitals at discrete energy levels. Foundation of chemistry, materials, biology, semiconductors.

  • Atomic size~10⁻¹⁰ m (1 Å)
  • Nuclear size~10⁻¹⁵ m (1 fm)
  • Atomic number ZNumber of protons (defines element)
  • Mass number AProtons + neutrons
  • Electron mass9.11 × 10⁻³¹ kg (≈ 1/1836 of proton)
  • Bohr radius0.529 × 10⁻¹⁰ m (size of H atom in ground state)

Interactive visualization

Press play, or step through manually. The visualization is yours to drive — try it before reading on.

Open visualization fullscreen ↗

Watch the 60-second explainer

A condensed visual walkthrough — narrated, captioned, under a minute.

Atomic constituents

ParticleChargeMass (kg)Mass (u)Location
Proton (p)+e1.673 × 10⁻²⁷1.0073Nucleus
Neutron (n)01.675 × 10⁻²⁷1.0087Nucleus
Electron (e)-e9.11 × 10⁻³¹5.486 × 10⁻⁴Electron cloud

1 atomic mass unit (u) = 1.661 × 10⁻²⁷ kg. Proton and neutron have nearly identical mass; electron is ~1836× lighter.

Size scales

ScaleSize
Atom (typical)~10⁻¹⁰ m = 1 Å
Nucleus~10⁻¹⁵ m = 1 fm
Bohr radius (H atom)0.529 × 10⁻¹⁰ m
Hydrogen nucleus (proton)~0.84 × 10⁻¹⁵ m
Atom : Nucleus ratio~100,000:1
Volume ratio (atom/nucleus)~10¹⁵

If a hydrogen atom were the size of a football stadium, its nucleus would be a marble at center field.

Atomic number Z, mass number A

  • Atomic number Z = number of protons. Defines the element. Hydrogen has Z=1, helium Z=2, ..., uranium Z=92.
  • Mass number A = total nucleons (protons + neutrons). For ¹²C, Z=6, A=12, so 6 neutrons.
  • Isotopes — same Z, different A.
  • Atomic mass — average mass weighted by isotope abundance. ¹²C is exactly 12 u (definition); ¹³C is 13.003 u; natural carbon mass is ~12.011.

Electron orbitals

Shell nSubshellsMax electrons
11s2
22s, 2p2 + 6 = 8
33s, 3p, 3d2 + 6 + 10 = 18
44s, 4p, 4d, 4f2 + 6 + 10 + 14 = 32

Filling rule (Aufbau): orbitals fill in order of increasing energy. Pauli exclusion: max 2 electrons per orbital. Hund's rule: electrons fill empty orbitals first within a subshell.

JavaScript — atomic structure

// Bohr radius for hydrogen-like atom (Z protons)
function bohrRadius(Z = 1, n = 1) {
  // a_n = n²·a_0/Z (a_0 = 5.29e-11 m)
  return n * n * 5.29e-11 / Z;
}

console.log(`H ground state: ${(bohrRadius(1, 1) * 1e10).toFixed(2)} Å`);  // 0.53
console.log(`H n=2: ${(bohrRadius(1, 2) * 1e10).toFixed(2)} Å`);            // 2.12
console.log(`Helium+ ground: ${(bohrRadius(2, 1) * 1e10).toFixed(3)} Å`);   // 0.265

// Bohr energy levels for hydrogen-like atom
function bohrEnergy(Z, n) {
  // E_n = -13.6 · Z²/n² eV
  return -13.6 * Z * Z / (n * n);
}

console.log(`H ground state: ${bohrEnergy(1, 1).toFixed(2)} eV`);    // -13.6
console.log(`H n=2: ${bohrEnergy(1, 2).toFixed(2)} eV`);              // -3.4
console.log(`Helium+ n=1: ${bohrEnergy(2, 1).toFixed(1)} eV`);        // -54.4

// Photon energy from transition
function transitionEnergy(Z, n_initial, n_final) {
  return bohrEnergy(Z, n_initial) - bohrEnergy(Z, n_final);
}

// Hydrogen 3 → 2 (Balmer) → 656.3 nm (red, "Hα")
const E_3to2 = -transitionEnergy(1, 3, 2);  // emitted (positive)
const lambda_3to2 = 1240 / E_3to2;  // hc/E in eV·nm = 1240
console.log(`Hα: ${E_3to2.toFixed(2)} eV = ${lambda_3to2.toFixed(0)} nm`);

// Atomic number and mass for common isotopes
const isotopes = {
  'H': {Z: 1, A: 1},
  'D': {Z: 1, A: 2},
  'He': {Z: 2, A: 4},
  'C12': {Z: 6, A: 12},
  'C14': {Z: 6, A: 14},
  'O16': {Z: 8, A: 16},
  'U235': {Z: 92, A: 235},
  'U238': {Z: 92, A: 238}
};

for (const [name, {Z, A}] of Object.entries(isotopes)) {
  console.log(`${name}: ${Z}p, ${A-Z}n, ${Z}e, mass ≈ ${A}u`);
}

// Pauli exclusion: max electrons in shell n
function maxElectrons(n) { return 2 * n * n; }
console.log(`Shell n=4 max: ${maxElectrons(4)}`);  // 32

// Element from electron count (highly simplified)
function predictElement(Z) {
  const elements = ['H', 'He', 'Li', 'Be', 'B', 'C', 'N', 'O', 'F', 'Ne'];
  return elements[Z - 1] || `Z=${Z}`;
}

Where atomic structure matters

  • Chemistry. Atom-level understanding drives all chemical bonding, reactions, materials.
  • Materials science. Crystal structures, defects, doping, electronic properties.
  • Spectroscopy. Each element has unique spectrum from electronic transitions.
  • Nuclear technology. Reactors, weapons, medicine — all rely on nuclear structure.
  • Astronomy. Stellar spectra reveal composition; nucleosynthesis in stars makes elements.
  • Quantum computing. Atoms (or atom-like systems) used as qubits in some implementations.
  • Medicine. Radioactive isotopes for imaging, treatment.

Common mistakes

  • Picturing electrons as planets. Bohr model (1913) was a useful picture but quantum mechanics replaced it. Electrons in orbitals (probability distributions), not orbits.
  • Confusing isotope and ion. Isotope — different number of neutrons (same Z). Ion — different number of electrons (charged atom).
  • Treating atomic mass as integer. Atomic mass on periodic table is weighted average (e.g., chlorine 35.45). Individual atoms have integer mass numbers, not 35.45.
  • Forgetting electron mass in nucleon counting. Most of atom's mass is in nucleus. But total nuclear binding energy contributes; mass of carbon-12 atom is exactly 12 u (by definition).
  • Drawing realistic atoms. Most diagrams aren't to scale — nucleus is far smaller than shown. If true scale, nucleus invisible.
  • Treating quantum numbers as classical. n, ℓ, m, m_s describe quantized states. Not corresponding to classical orbits or angular momentum directions.

Frequently asked questions

What's inside an atom?

Center — small dense nucleus with protons (+1 charge each) and neutrons (neutral). Outside — electron cloud (−1 charge each). Electrons orbit the nucleus in quantum mechanical "orbitals" — probability distributions, not classical paths. Total atom is electrically neutral (Z protons = Z electrons).

Why is the atom mostly empty space?

Nucleus is ~100,000× smaller than the atom (10⁻¹⁵ m vs 10⁻¹⁰ m). If atom = football stadium, nucleus = ant in center. Most of the volume is empty (electron cloud is wave function, not material). Atoms appear "solid" to us because their electrons electrically repel — touching another atom feels like repulsion of electron clouds.

What are isotopes?

Atoms of same element (same Z = protons) but different A (different number of neutrons). Hydrogen-1 (1 proton), Deuterium (1p + 1n), Tritium (1p + 2n). Carbon-12 (6p+6n) and Carbon-14 (6p+8n). Different isotopes have same chemistry (chemistry depends on electrons) but different mass and nuclear stability.

How are electrons arranged in orbitals?

Quantum mechanics — electrons in shells (n=1, 2, 3...) and subshells (s, p, d, f). Each subshell has specific shapes: s (spherical), p (dumbbell), d (cloverleaf+), f (complex). Filled in order of increasing energy. Pauli exclusion — max 2 electrons per orbital (with opposite spins). This determines chemistry — periodic table reflects orbital structure.

How do atoms form chemical bonds?

Sharing or transferring electrons. Ionic bonds — electron transferred (Na⁺Cl⁻). Covalent bonds — electrons shared between atoms. Metallic bonds — electrons delocalized across many atoms. All driven by electrons seeking lower energy configurations. Chemistry is essentially "what electrons want."

What's the periodic table?

Elements arranged by atomic number Z, with similar electron configurations in the same column. Columns (groups) share chemical properties — alkali metals (group 1) all have 1 outer electron; halogens (group 17) all need one more; noble gases (group 18) have full outer shells (inert). Rows (periods) reflect filling of successive shells.

How does the nucleus stay together?

Strong nuclear force — overcomes electromagnetic repulsion between protons. Acts only at very short range (~10⁻¹⁵ m). Binds protons and neutrons. For nuclei with too many or too few neutrons, balance between strong force (attractive, short range) and electric force (repulsive) becomes unfavorable → unstable, radioactive decay.