Cosmic-ray air shower

A cosmic ray hits the top of the atmosphere and sets off a cascade of millions of particles. This page runs a small Monte Carlo simulation in your browser, in the spirit of the CORSIKA pictures: red electrons, positrons and photons, green muons, blue hadrons. Every press of New shower gives a different random shower.

Under 15Tiny bits of atoms called cosmic rays zoom in from space all the time. When one smashes into the air high above us, it breaks into lots of new particles, which break into even more, like a giant firework spreading down towards the ground. Millions of particles can reach the ground from just one cosmic ray! Press New shower and drag the picture to spin it.
20+ · going deeperIn the Heitler–Matthews picture, Xmax ≈ X₀ ln(E₀/ξc) for photons and the elongation rate is ≈ 2.3 X₀ per decade; for a nucleus of mass number A the superposition model gives Xmax(A) ≈ Xmax(p) − X₀ ln A and Nμ ∝ A^{1−β}E^β with β ≈ 0.9, which is why Xmax and muon number are used to infer composition. Thinning here follows Hillas (weighted sampling below ε·E₀), with statistical weights tracked per track.
First interaction
Shower maximum Xmax
Particles at max
e± at ground
Muons at ground
Tracks simulated

Press ⛶ (or F) for full screen. Drag to look around in 3-D, even while the shower is still growing: sideways turns it, up and down tilts it so you can see the footprint on the ground. The width is stretched so you can see it: real showers are only a few hundred metres wide but ~10 km long.

Longitudinal profile

Footprint on the ground

A teaching model, not CORSIKA itself: it uses an exponential atmosphere, the Heitler picture for e±/γ cascades (each e± or γ splits about every ln 2 radiation lengths, X₀ = 36.7 g/cm²), a simple pion-production model for hadrons, π⁰ → γγ, charged pions decaying to muons, multiple scattering, and Hillas “thinning” (weighted sampling of low-energy particles) to stay fast. The real CORSIKA from KIT tracks every particle with full interaction models.