Optics · 14 June 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 (), and it controls everything:
- Bright (constructive): — the path difference is a whole number of wavelengths ()
- Dark (destructive): — 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. Press Play to watch the waves spread and overlap, then switch to the Intensity view to see the time-averaged pattern: bright spokes where the waves always reinforce, dark spokes where they always cancel. Try changing the wavelength and the source separation and watch the spokes move.
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 from the centre, the wave from the lower slit travels an extra distance , where is the slit separation. Bright fringes appear wherever that extra distance is a whole number of wavelengths:
For a screen at distance (with much larger than , so ), the bright fringes land at positions , which means they are evenly spaced with separation:
This little formula is remarkably powerful. It says red light (large ) 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 the first-ever 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 fringe spacing halve.
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 but a phase difference set by the path difference:
The total field is . Using the sum-to-product identity (or adding the two as phasors — arrows of length with angle between them):
Intensity is proportional to the square of the amplitude, so with the intensity from a single slit:
Maxima of occur when , which reproduces . Note the peak intensity is , not — 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 as a continuous row of tiny sources and add up (integrate) their contributions at angle . Each strip at position across the slit contributes a phase , so the total amplitude is:
Squaring gives the famous single-slit intensity pattern:
This is the function: a tall, wide central maximum flanked by much weaker side lobes. The intensity falls to zero wherever , i.e. at:
Here is the counterintuitive part: the central maximum has angular half-width — 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.
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 interference fringes from the slit separation , multiplied by the broad diffraction envelope from the slit width :
Here 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 ).
That is exactly what the double-slit simulation plots — the dashed grey curve is the envelope. One elegant consequence: if is a whole number, some interference maxima land exactly on a diffraction zero and vanish. 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 waves arrive in step and reinforce. At every other angle, the 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 equally spaced slits, the phasor sum gives:
The bright principal maxima stay in exactly the same places as the double slit — wherever — but two dramatic things happen as grows:
- The peaks get sharper. Each principal maximum has angular width proportional to . With thousands of slits, the broad fringes collapse into razor-thin lines.
- The peaks get brighter. Peak intensity grows as (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 through the grating equation , 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 up to 20 and watch the double-slit fringes sharpen into spectral lines:
Worked Examples: Interference and Diffraction Calculations
Example 1: Fringe Spacing from a Laser Pointer
A red laser pointer ( nm) shines through two slits separated by mm onto a wall m away. How far apart are the bright fringes?
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.9 mm.
Example 2: Width of the Central Diffraction Maximum
Green light ( nm) passes through a single slit of width µm with the screen at m. How wide is the central bright band?
The central maximum spans between the minima at , so its full width is:
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 () maximum appears at . What is the wavelength?
The line spacing is . From the grating equation:
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.
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 (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
What is the difference between interference and diffraction?
They are two faces of the same physics — superposition of waves. Interference usually refers to the pattern from a small number of discrete sources (like two slits), while diffraction refers to the spreading and patterning of a wave from a continuous aperture or edge (like one slit, treated as infinitely many tiny sources via Huygens' principle). In any real experiment both happen at once: the double-slit pattern is interference fringes sitting inside a diffraction envelope.
Why don't two flashlights produce an interference pattern?
Because they are not coherent. Interference fringes require a fixed phase relationship between the two sources. A flashlight emits light as countless independent atomic emissions, each a short wave train with random phase, and the phase relationship between two separate bulbs scrambles billions of times per second. The fringes exist momentarily but shift randomly and far too fast to see — what you observe is the smeared-out average: uniform light. Young solved this by splitting one wavefront into two slits; lasers solve it by emitting intrinsically coherent light.
What is the condition for constructive and destructive interference?
Constructive interference (a bright fringe) occurs when the path difference between the two waves is a whole number of wavelengths: . Destructive interference (a dark fringe) occurs when it is a half-odd number: . For a double slit the path difference is , which gives bright fringes at .
Why do CDs and DVDs show rainbow colours?
The data on a CD is stamped in a spiral track with neighbouring turns about 1.6 µm apart — comparable to the wavelength of visible light. The track acts as a reflection diffraction grating: each wavelength reflects strongly at its own angle (), so white light fans out into a spectrum. DVDs have finer tracks (0.74 µm), so they spread the colours over even wider angles.
What happens to the interference pattern if the experiment is done in water?
The fringes squeeze closer together. In water, light slows down and its wavelength shrinks to , where is the refractive index. Since fringe spacing is , the whole pattern contracts by a factor of 1.33. The light's frequency — and its colour as perceived — does not change; only the wavelength does.
Explore more simulations
Every concept on PhysicStuff has an interactive simulation. No login, no setup required.