Optics  ·  14 June 2026↻ Updated 6 Sept 2026

Interference and Diffraction of Light: Why Waves Make Patterns

A soap bubble shimmers with swirling rainbows. The underside of a CD throws bands of colour across the room. A Morpho butterfly's wings blaze electric blue. None of these objects contain any blue or rainbow pigment at all — scratch the butterfly's wing into powder and the blue vanishes. The colours come from something stranger: light waves adding together and cancelling out. That single idea, interference, together with its close cousin diffraction, explains some of the most beautiful phenomena in physics — and it was also the discovery that settled a century-long argument about what light actually is.

What Happens When Two Waves Meet? Interference Explained Simply

Drop two pebbles into a still pond at the same time. Each one sends out rings of ripples, and where the rings cross, something interesting happens. At some spots, a crest from one pebble arrives at the same moment as a crest from the other — the water leaps twice as high. At other spots, a crest from one arrives with a trough from the other — they cancel, and the water barely moves at all.

That is the whole secret:

  • Crest + crest → bigger wave. This is called constructive interference.
  • Crest + trough → nothing. This is called destructive interference.

The waves don't destroy each other — they pass straight through and keep going. But at each point in the pond, their effects simply add up. Physicists call this the principle of superposition.

Light is a wave too (an electromagnetic one), so light does exactly the same thing. Where two light waves arrive crest-on-crest, you see brightness. Where they arrive crest-on-trough, you see darkness — light plus light makes dark. That sentence sounds absurd until you watch it happen.

Path Difference: The Rule Behind Bright and Dark Fringes

Whether two waves arrive crest-on-crest or crest-on-trough depends on one thing: how far each wave travelled to get there.

Imagine two speakers playing the same pure note, perfectly in step. Stand exactly halfway between them and both sound waves travel the same distance, arrive in step, and the note sounds loud. Now take a few steps to one side. The wave from the far speaker now travels a little farther than the wave from the near one. If it travels exactly half a wavelength farther, its crests arrive where the other wave's troughs are — and the sound nearly disappears.

The extra distance one wave travels compared to the other is called the path difference (Δ\Delta), and it controls everything:

  • Bright (constructive): Δ=mλ\Delta = m\lambda — the path difference is a whole number of wavelengths (m=0,1,2,m = 0, 1, 2, \dots)
  • Dark (destructive): Δ=(m+12)λ\Delta = \left(m + \tfrac{1}{2}\right)\lambda — the path difference is a half-odd number of wavelengths

The simulation below is a virtual ripple tank — two point sources sending out circular waves, exactly like the two pebbles. Drag the buoy through the pattern: park it on a bright spoke and it bobs at double height as the two ripples add there; drag it onto a dark spoke and it goes dead still while both ripples keep racing past underneath. Watch the two source waves and their sum in the live traces below the tank — on a dark spoke the sum trace flatlines while both inputs keep oscillating full height. The ripples animate on their own; pause any time and the pattern and the buoy keep working. Try changing the wavelength and the source separation and watch the spokes move.

Δ ≈ 0 λ — crests arrive together: double height.
Amplitude falls off as 1/√r and is floored near the sources so nothing diverges — a stylised near-field model, not the true inverse-square energy law. Both sources are treated as ideal point emitters, perfectly coherent and always in phase with each other.
Live probe trace
Wavelength
3 tank units
Source separation
6 tank units
Drag the buoy — or focus it (click once) and use the arrow keys. The pattern and traces keep working even while paused.
r₁ (to S₁)6.89 tank units
r₂ (to S₂)6.89 tank units
Δ = |r₂ − r₁|0.00 λ
Local intensity100%
VerdictConstructive (bright)

Every dark spoke in that pattern is a line of points where the path difference to the two sources is a half-odd number of wavelengths. The pattern stands perfectly still even though the waves race through it — which is why it is called a stationary interference pattern.

Young's Double-Slit Experiment: Light Behaving as a Wave

In 1801, Thomas Young did exactly this experiment with light — and changed physics. Newton had argued a century earlier that light was a stream of particles ("corpuscles"). Young let sunlight pass through two narrow slits cut close together and looked at a screen behind them. Particles should have produced two bright stripes, one behind each slit. Instead, Young saw a whole ladder of evenly spaced bright and dark fringes — an interference pattern. Light behaves as a wave.

The geometry is the same as the two speakers. Each slit acts as a source. For a point on the screen at angle θ\theta from the centre, the wave from the lower slit travels an extra distance dsinθd\sin\theta, where dd is the slit separation. Bright fringes appear wherever that extra distance is a whole number of wavelengths:

dsinθ=mλd\sin\theta = m\lambda

For a screen at distance LL (with LL much larger than dd, so sinθtanθ=y/L\sin\theta \approx \tan\theta = y/L), the bright fringes land at positions ym=mλL/dy_m = m\lambda L/d, which means they are evenly spaced with separation:

Δy=λLd\Delta y = \frac{\lambda L}{d}

This little formula is remarkably powerful. It says red light (large λ\lambda) makes wider fringes than blue light, that moving the screen back magnifies the pattern, and that squeezing the slits together spreads the fringes apart. Young used it to make what is widely credited as the first measurement of the wavelength of light — armed with nothing but sunlight, two slits, and a ruler.

Verify each of those claims yourself in the simulation: drag the wavelength from red to violet, then double the slit separation and watch the caliper read half.

Δy = λL/d = 3.90 mm — 650 nm fringes, slits 0.25 mm apart, wall 1.5 m away.
Slit gap drawn 12× larger than true scale — at true scale the 0.25 mm gap would span about 2.0 px here. Fringe brightness is gamma-compressed for the display, so the dimmer outer fringes stay visible instead of crushing to black. Slit width a is fixed at 100 µm — it parameterises the dimming envelope only, not a control here.
Wavelength
650 nm
Slit separation
0.25 mm
Screen distance
1.50 m
The caliper always spans the m = 1 to m = 2 bright fringes and tracks Δy live as you move any slider.
λ650 nm
d0.25 mm
L1.5 m
Δy3.90 mm
d/a2.50

The two slits must be lit by the same wave so they stay perfectly in step — physicists say the sources must be coherent. This is also why lasers make such crisp interference patterns: our post on how lasers work explains where that perfect coherence comes from.

The Math of Wave Optics

Everything above can be made precise with surprisingly little machinery. This section derives the actual intensity formulas plotted in the simulations.

Adding Waves with Phasors: Deriving the Double-Slit Intensity

At a point on the screen, the electric fields from the two slits are two oscillations with the same amplitude E0E_0 but a phase difference δ\delta set by the path difference:

δ=2πλdsinθ\delta = \frac{2\pi}{\lambda}\, d\sin\theta

The total field is E=E0cos(ωt)+E0cos(ωt+δ)E = E_0\cos(\omega t) + E_0\cos(\omega t + \delta). Using the sum-to-product identity (or adding the two as phasors — arrows of length E0E_0 with angle δ\delta between them):

E=2E0cos ⁣(δ2)cos ⁣(ωt+δ2)E = 2E_0\cos\!\left(\frac{\delta}{2}\right)\cos\!\left(\omega t + \frac{\delta}{2}\right)

Intensity is proportional to the square of the amplitude, so with I0I_0 the intensity from a single slit:

I=4I0cos2 ⁣(δ2)=4I0cos2 ⁣(πdsinθλ)I = 4I_0\cos^2\!\left(\frac{\delta}{2}\right) = 4I_0\cos^2\!\left(\frac{\pi d \sin\theta}{\lambda}\right)

Maxima of cos2\cos^2 occur when δ/2=mπ\delta/2 = m\pi, which reproduces dsinθ=mλd\sin\theta = m\lambda. Note the peak intensity is 4I04I_0, not 2I02I_0 — interference doesn't just add intensities, it adds amplitudes first and squares afterwards. The "missing" energy from the dark fringes is redistributed into the bright ones; energy is conserved overall.

Single-Slit Diffraction: Why a Single Opening Spreads Light

Diffraction is what waves do at edges: they bend around obstacles and spread out from openings. Huygens' principle explains why — every point on a wavefront acts as a tiny source of new wavelets. When a wave squeezes through a slit, only the wavelets inside the opening survive, and they interfere with each other.

Treat the slit of width aa as a continuous row of tiny sources and add up (integrate) their contributions at angle θ\theta. Each strip at position xx across the slit contributes a phase kxsinθkx\sin\theta, so the total amplitude is:

E(θ)a/2a/2eikxsinθdx  =  asinαα,α=πasinθλE(\theta) \propto \int_{-a/2}^{a/2} e^{\,i k x \sin\theta}\, dx \;=\; a\,\frac{\sin\alpha}{\alpha}, \qquad \alpha = \frac{\pi a \sin\theta}{\lambda}

Squaring gives the famous single-slit intensity pattern:

I(θ)=I0(sinαα)2I(\theta) = I_0 \left(\frac{\sin\alpha}{\alpha}\right)^2

This is the sinc2\mathrm{sinc}^2 function: a tall, wide central maximum flanked by much weaker side lobes. The intensity falls to zero wherever α=mπ\alpha = m\pi, i.e. at:

asinθ=mλ,m=±1,±2,a\sin\theta = m\lambda, \qquad m = \pm 1, \pm 2, \dots

Here is the counterintuitive part: the central maximum has angular half-width sinθλ/a\sin\theta \approx \lambda/a — so making the slit narrower makes the light spread wider. Squeeze the opening and the beam fans out. This inverse relationship between confinement and spread runs deep in physics; the same mathematics reappears as the uncertainty principle in quantum mechanics, and our wave packets post explores it from that angle.

Watch it happen below — drag the slit width down and see the central band balloon outward.

Slit 80 µm → central band 20.6 mm. Squeeze the slit and the light spreads — confinement costs direction.
Brightness is normalised to a fixed peak of 1 at every slit width — a real narrower slit also passes less light overall (peak intensity ∝ a²), so a photograph would show the widened pattern dimmer, not just wider. Screen distance L is fixed at 1.5 m — only slit width and wavelength are explorable here. The slit gap is drawn about 82× larger than true scale relative to the wall pattern — a real micron-scale gap would be a fraction of a pixel there.
Slit width
80 µm
Wavelength
550 nm
One slider, two readouts: the slit width at the jaws and the central band it produces at the wall. Both update live as you move either slider.
a80 µm
λ550 nm
L1.5 m (fixed)
Central width20.6 mm
Band / slit258×

The Real Double-Slit Pattern: Interference Inside a Diffraction Envelope

Real slits have width, so a real double-slit pattern is both effects at once: the fast cos2\cos^2 interference fringes from the slit separation dd, multiplied by the broad sinc2\mathrm{sinc}^2 diffraction envelope from the slit width aa:

I(θ)=I0cos2β(sinαα)2,β=πdsinθλ,α=πasinθλI(\theta) = I_0 \cos^2\beta \left(\frac{\sin\alpha}{\alpha}\right)^2, \qquad \beta = \frac{\pi d \sin\theta}{\lambda}, \quad \alpha = \frac{\pi a \sin\theta}{\lambda}

Here I0I_0 is the on-axis peak intensity of the combined pattern (it absorbs the factor of 4 from the phasor addition, so this form is tidier than writing 4Islitcos2β(sinα/α)24I_{\text{slit}}\cos^2\beta\,(\sin\alpha/\alpha)^2).

The fringe ladder in the double-slit simulation dims under exactly this envelope — and whenever an interference maximum lands exactly on a diffraction zero, that order vanishes from the ladder; nudge the slit separation and watch the banner call it. These are called missing orders.

How Diffraction Gratings Split Light into Spectra

What happens with three slits? Ten? Ten thousand?

Each extra slit adds one more wave to the sum. At the special angles where the path difference between neighbouring slits is exactly a whole number of wavelengths, all NN waves arrive in step and reinforce. At every other angle, the NN contributions point every which way and cancel — and the more slits there are, the more unforgiving that cancellation becomes. Think of a crowd clapping in rhythm: with two people, slightly off-beat still sounds fine; with ten thousand, anything short of perfect unison dissolves into noise. For NN equally spaced slits, the phasor sum gives:

I(θ)=I0[sin(Nγ)Nsinγ]2,γ=πdsinθλI(\theta) = I_0\left[\frac{\sin(N\gamma)}{N\sin\gamma}\right]^2, \qquad \gamma = \frac{\pi d \sin\theta}{\lambda}

The bright principal maxima stay in exactly the same places as the double slit — wherever dsinθ=mλd\sin\theta = m\lambda — but two dramatic things happen as NN grows:

  1. The peaks get sharper. Each principal maximum has angular width proportional to 1/N1/N. With thousands of slits, the broad fringes collapse into razor-thin lines.
  2. The peaks get brighter. Peak intensity grows as N2N^2 (amplitudes add before squaring), while the background between peaks fades to almost nothing.

A diffraction grating is exactly this: thousands of slits (or reflective grooves) per millimetre. Because the angle of each maximum depends on λ\lambda through the grating equation dsinθ=mλd\sin\theta = m\lambda, every wavelength is sent in its own direction. Shine white light on a grating and it fans out into a full spectrum — this is how spectrometers read the chemical fingerprints of stars, and why a CD (whose data track is a spiral of pits spaced about 1.6 µm apart) acts as a reflection grating and throws rainbows.

Drag the slit-count slider from 2 into the thousands and watch the fringes sharpen into spectral lines — then switch to white light and watch the orders fan into spectra:

N = 2: peaks 1× sharper than a double slit and 4× brighter than one slit — and the more slits, the more completely everything between them cancels.
Peak height here is drawn on a log scale (∝ log N), standing in for the true brightness, which grows as N² — honestly linear would need this canvas roughly 2.25M× taller at N = 3,000 than at N = 2. Below roughly N ≈ 50 on a typical desktop view (earlier on a narrow phone screen, where each pixel spans a wider angle) the pattern is sampled directly from the exact grating formula; once the true peaks would draw narrower than a few screen pixels — where direct sampling starts to alias — each principal maximum is instead drawn from its known angle and a width shrinking as 1/N, cross-fading between the two so the slider feels continuous regardless of screen size. Slit spacing is fixed at 1.667 µm (600 lines/mm — Example 3's own grating); only slit count and wavelength are explorable here. The angle axis assumes a fixed screen distance L = 1.0 m and is drawn linear in angle rather than true screen position, so every order stays legible at one scale — on a real screen this close, 550 nm light's m = 1 order would land about 0.35 m off-axis.
Slit count — N = 2
0.30
Light
Wavelength
550 nm
Drag N from 2 into the thousands and watch the fringes sharpen into spectral lines — then switch to white light.
N2
d1.667 µm (600 lines/mm)
ModeOne colour
θ (m=1)19.3°

Worked Examples: Interference and Diffraction Calculations

Example 1: Fringe Spacing from a Laser Pointer

A red laser pointer (λ=650\lambda = 650 nm) shines through two slits separated by d=0.25d = 0.25 mm onto a wall L=1.5L = 1.5 m away. How far apart are the bright fringes?

Δy=λLd=(650×109 m)(1.5 m)0.25×103 m=3.9 mm\Delta y = \frac{\lambda L}{d} = \frac{(650\times 10^{-9}\ \text{m})(1.5\ \text{m})}{0.25\times 10^{-3}\ \text{m}} = 3.9\ \text{mm}

Easily visible by eye. Check it in the double-slit simulation: set λ = 650 nm, d = 0.25 mm, L = 1.5 m — the status box reads Δy = 3.90 mm.

Example 2: Width of the Central Diffraction Maximum

Green light (λ=550\lambda = 550 nm) passes through a single slit of width a=80a = 80 µm with the screen at L=1.5L = 1.5 m. How wide is the central bright band?

The central maximum spans between the m=±1m = \pm 1 minima at y=±λL/ay = \pm\lambda L/a, so its full width is:

w=2λLa=2(550×109)(1.5)80×106=20.6 mmw = \frac{2\lambda L}{a} = \frac{2(550\times 10^{-9})(1.5)}{80\times 10^{-6}} = 20.6\ \text{mm}

A 0.08 mm slit produces a 2 cm band of light — diffraction in action. Check it in the single-slit simulation with the default settings.

Example 3: Measuring Wavelength with a Diffraction Grating

Light from an unknown source passes through a grating with 600 lines/mm, and the first-order (m=1m = 1) maximum appears at θ=19.5°\theta = 19.5°. What is the wavelength?

The line spacing is d=1600 mm=1.667 µmd = \frac{1}{600}\ \text{mm} = 1.667\ \text{µm}. From the grating equation:

λ=dsinθm=(1.667×106)sin(19.5°)556 nm\lambda = \frac{d\sin\theta}{m} = (1.667\times 10^{-6})\sin(19.5°) \approx 556\ \text{nm}

Green light — close to the oxygen emission line that paints aurora green (557.7 nm). This is precisely how spectroscopy measures wavelengths to extraordinary accuracy: a sharper peak (more slits) means a more precise angle, and therefore a more precise wavelength. Check it in the grating simulation: set λ = 556 nm — the ledger's first-order angle reads 19.5°.

Where Interference and Diffraction Appear in the Real World

  • Telescope resolution — diffraction at a telescope's circular aperture blurs every star into a tiny disc. Two stars closer than θ1.22λ/D\theta \approx 1.22\,\lambda/D (the Rayleigh criterion) blur into one. This is the fundamental reason astronomers build enormous mirrors.
  • X-ray crystallography — the atomic planes in a crystal act as a 3D diffraction grating for X-rays. Rosalind Franklin's "Photo 51" diffraction pattern revealed the double-helix structure of DNA.
  • Holograms — a hologram is a recorded interference pattern between light from an object and a reference beam. Re-illuminating it diffracts light into a full 3D reconstruction.
  • Anti-reflective coatings — camera lenses and glasses carry a thin transparent layer engineered so reflections from its two surfaces interfere destructively, cancelling glare.
  • Radio interferometry — the Event Horizon Telescope combined signals from radio dishes across the Earth, interfering them to act as a planet-sized aperture — sharp enough to photograph a black hole's shadow.
  • Structural colour in nature — Morpho butterflies, peacock feathers, and beetle shells get their iridescence from microscopic gratings and thin-film interference, not pigment.

Frequently Asked Questions

Explore more simulations

Every concept on PhysicStuff has an interactive simulation. No login, no setup required.