Physics

Refraction & Diffraction

Where light bends, and where it spreads
Snell · Fresnel · Fraunhofer
—

Media

Drag across the diagram or the chart below to change the angle. Line weight is the share of the light each ray carries; the ticks are wavefronts, one wavelength apart.

Results

Refracted angle
—
from the normal
Critical angle
—
total internal reflection beyond
Reflected
—
unpolarised
Brewster angle
—
reflection fully polarised
s-polarised
—
p-polarised
—
Transmitted
—
Reference

Refractive index of common materials

MaterialIndex nCritical angle to airLight slows to
Values are at the sodium D line (589 nm) and are conventional textbook figures, not a measurement of any particular sample — real glass varies by formulation, and every material's index changes with wavelength. That variation is dispersion, and it is the reason a prism makes a spectrum rather than a bright stripe.
How it works

Bending and spreading are different things

Refraction: at a boundary

Light changes speed, so it changes direction. Into a denser medium it bends toward the normal; past a critical angle it cannot get out at all. Snell’s law is the bookkeeping.

Diffraction: at an edge

Light spreads because it is a wave, and the narrower the gap the more it spreads. About the aperture, not the interface.

Fresnel reflectance

The s and p components separately for a transparent boundary; at Brewster’s angle arctan(n₂/n₁) the p component is exactly zero.

One equation, two meanings

For a single slit a sin θ = mλ gives the minima; for a double slit d sin θ = mλ gives the maxima.

Worked example. Look into a pool 2 m deep and the bottom appears about 1.50 m down: the ratio of the two indices. Look up from underwater and beyond 48.6° from vertical the surface turns into a mirror, and the whole sky is squeezed into a bright circle overhead. Same law, read the other way. A diamond’s critical angle of 24° is why it sparkles: light rattles around inside before finding a facet to leave through.
Field notes

Things worth carrying around

Narrower means wider

Squeeze a beam through a smaller gap and it spreads more, not less: diffraction angle goes as wavelength over aperture. A pinhole camera cannot be sharpened indefinitely by shrinking the pinhole, and a telescope needs a big mirror to see fine detail rather than a good one: no magnification substitutes for aperture.

1.9%wrong at 19°

Small-angle approximations expire

Replacing sin θ with θ is fine for a double slit at a couple of degrees. On a 600 lines/mm grating the first order sits near 19°, where the shortcut is already 1.9% wrong: small enough to look plausible and big enough to matter.

1.6°across the visible

Violet bends more, and that is the rainbow

The index of glass is a little higher for short wavelengths. One surface barely shows it; a prism uses two, angled so the bends add. A 60° crown-glass prism fans the visible over about 1.6°: a rainbow 27 mm tall on a wall a metre away. The Abbe number measures it (lower spreads more): flint glass at 36 spreads colour about twice as much as crown at 64, which is why achromatic lenses pair the two.

4%per surface

It adds up

An air-to-glass surface reflects about 4% at normal incidence. A lens with six uncoated elements has twelve such surfaces and loses roughly 40% of the light: why anti-reflection coatings were worth inventing.

Why light bends at all

It travels more slowly in a denser medium, and a wavefront arriving at an angle enters at one edge before the other. That edge slows first, so the wavefront pivots, like a trolley whose left wheel hits gravel before the right. Total internal reflection is mostly for optical fibre: light entering the core at a shallow enough angle bounces along for kilometres.

Polarised glasses and glare

Near Brewster’s angle (about 53° for water) the reflected light is almost entirely polarised in one direction, so a filter turned the other way removes nearly all of it. The calculator shows the s and p components separately.

Not for metals or absorbing media

The Fresnel equations here are the real-valued ones for transparent dielectrics. Metals have a complex refractive index and a different reflectance curve: do not use these numbers for mirrors or anything coloured by absorption.

Questions

What people ask

Why does light bend at all?

It travels more slowly in a denser medium, and a wavefront arriving at an angle enters the new medium at one edge before the other. That edge slows first, so the wavefront pivots — exactly like a trolley whose left wheel hits gravel before the right one.

What is total internal reflection actually for?

Optical fibre, mostly. Light entering the core at a shallow enough angle can never escape through the wall, so it bounces along the fibre for kilometres. It is also why a diamond sparkles: a critical angle of 24° means light rattles around inside before finding a facet it can leave through.

Why does the reflection off a road or a lake go away with polarised glasses?

Near Brewster's angle — about 53° for water — the reflected light is almost entirely polarised in one direction, so a filter turned the other way removes nearly all of it. The calculator shows the s and p components separately; at Brewster's angle the p component is exactly zero.

Does this handle absorbing or metallic surfaces?

No. The Fresnel equations here are the real-valued ones for transparent dielectrics. Metals have a complex refractive index and a different reflectance curve, so do not use these numbers for mirrors or for anything coloured by absorption.

What this page assumes

Monochromatic light, flat boundaries, and non-absorbing non-magnetic materials. The Fresnel equations used are the real-valued dielectric forms, so they do not apply to metals, absorbing media or thin-film coatings, where interference between surfaces dominates. Diffraction results use the Fraunhofer (far-field) condition, which assumes the screen is far enough away that the wavefronts arriving at it are effectively flat — close to the aperture the Fresnel regime applies instead and the pattern differs. Refractive indices are quoted at 589 nm. Refraction treats them as constant with wavelength; the prism models dispersion with a two-term Cauchy curve fitted to each material's Abbe number, which follows the full Sellmeier curves to within 0.0003 for glass and silica and 0.002 for diamond across the visible. Intensity envelopes are drawn to show shape and position, not absolute brightness.

Far-field, transparent materials. Fraunhofer diffraction and dielectric Fresnel equations — not valid for metals, coatings, or a screen close to the aperture.
Version history · site-wide passes only

This page has changed in 173 archived releases, but each of those was a site-wide pass, so none is attributable to this tool on its own and none is listed here. That is not a claim that the tool never changed — a release that reworked many pages at once may well have altered this one too. The changelog has them.

Rules of thumb are approximations, offered to get you to the right order of magnitude fast. Check anything load-bearing against its source or the exact tool. Privacy · Terms

© 2026 Rules of Thumb · Runs entirely in your browser