Wave Optics & Light Interference Calculator
Calculate Young’s double-slit experiment (fringe spacing, path difference, intensity profile), diffraction grating (grating pitch, diffraction angle, max order, angular dispersion), and thin-film interference (phase reversal, visible interference colors, anti-reflection coating) with real-time spectrum simulation.
Inputs are not collected. Usage measurement requires your consent.
Experimental Parameters
Fringe Positions by Order mm = 0 〜 ±4
| Order m | Bright x_m | Dark x'_m | Angle θ |
|---|
Done
Wave Optics & Light Interference Calculator
Next time, open this tool from My Tools. Only the tool list is saved in this browser, not your inputs or results.
⌥DPress Option+D anytime to toggle My Tools instantly
How to use
- 1
Choose optical setup
Select from Young’s Double-Slit Experiment, Diffraction Grating, or Thin-Film Interference.
- 2
Configure wavelength & grating parameters
Set wavelength λ (nm), slit separation d, screen distance L, or grating lines N. Quick presets for lasers and optical coatings are available.
- 3
Inspect fringes, angles & spectrum
View fringe spacing Δx, order-by-order diffraction angles θₘ, maximum order, constructive visible colors, and interactive simulation.
Features
- Calculates Young’s double-slit fringe spacing Δx, order positions, and diffraction angles
- Realistic visible spectrum rendering (380-780nm) with real-time fringe simulation canvas
- Interactive intensity profile curve I(x) ∝ cos²(πdx/λL)
- Diffraction grating groove density N (/mm) and pitch d (μm) conversion with exact angle evaluation
- Calculation of maximum observable order m_max = ⌊d/λ⌋ and total line count
- Automatic detection of surface reflection phase shifts (π inversion) and optical path difference 2n₂d
- Identification of constructive (bright peak colors) and destructive wavelengths in the visible spectrum
- Optimal anti-reflective (AR) coating thickness calculation d = λ / (4n₂)
- Built-in presets for He-Ne lasers, green lasers, sodium D-lines, soap bubbles, oil films, and AR coatings
- One-click formatted text export tailored for lab reports and problem sets
Use cases
Physics coursework & optics homework
Eliminate unit conversion mistakes across nm, μm, mm, and meters, checking fringe spacings step-by-step.
Spectroscopy & laser wavelength measurement
Calculate diffraction angles from grating grooves to verify laser emission lines and dispersion capabilities.
Optical thin-film & AR coating engineering
Explore anti-reflective quarter-wave coating design and understand the physics behind iridescent soap bubble colors.
Details
Light interference and diffraction provide quintessential evidence of the wave nature of light. First demonstrated conclusively by Thomas Young in 1801 with his double-slit experiment, wave optics was subsequently formalized by Augustin-Jean Fresnel and Joseph von Fraunhofer.
In Young’s experiment, light passing through two slits separated by distance d overlaps at point P on a distant screen at distance L. When L is much larger than d and position x (x ≪ L), the path length difference simplifies to Δl = d sin θ ≈ d(x/L). Constructive interference produces bright fringes when Δl = mλ, while destructive interference produces dark fringes when Δl = (m + 1/2)λ. The spacing between adjacent bright fringes is Δx = Lλ / d, meaning red light (longer λ) produces wider fringes than blue light (shorter λ).
A diffraction grating consists of an array of many closely spaced parallel slits (often hundreds per millimeter). Because thousands of slits interfere simultaneously, the bright lines become remarkably sharp and narrow, governed by the grating equation d sin θ = mλ. For large diffraction angles, the small-angle approximation fails, necessitating the exact relation θ = arcsin(mλ/d). The condition sin θ ≤ 1 establishes an upper bound on visible orders: m_max = ⌊d/λ⌋.
Thin-film interference causes the brilliant colors seen in soap bubbles, oil slicks on water, and anti-reflective optical coatings (AR coatings). Light reflects from both the top and bottom surfaces of the film. Crucially, when reflecting from an interface with a higher refractive index (n₁ < n₂), the wave undergoes a 180° (π radians or half-wavelength) phase shift. Depending on the relative indices of the surrounding media, the constructive condition shifts between 2n₂d cos θ₂ = (m + 1/2)λ and 2n₂d cos θ₂ = mλ.
This tool unifies all three interference paradigms with real-time sRGB visible spectrum colors, interactive fringe intensity profiles, exact order limits, intermediate derivations, and one-click report export.
FAQ
What happens when the small-angle approximation (x ≪ L) fails in Young’s experiment?
When the fringe position x is significant compared to distance L (typically θ > 5°), the approximation sin θ ≈ x/L loses precision. The exact position is determined via sin θₘ = mλ / d, giving θₘ = arcsin(mλ/d) and xₘ = L tan θₘ. This tool displays both the small-angle and exact values.
What determines the maximum diffraction order in a grating?
Diffraction angles cannot exceed 90° (|sin θ| ≤ 1). From the grating equation d sin θ = mλ, we require |m| ≤ d / λ, establishing the maximum visible order m_max = ⌊d / λ⌋. Light cannot be diffracted into angles beyond 90°.
When does a π phase shift occur in thin-film reflection?
A wave undergoes a π phase shift (equivalent to a half-wavelength λ/2 shift) when reflecting from an interface into an optically denser medium (n₁ < n₂), analogous to a fixed-end reflection. Reflection from a rarer medium (n₁ > n₂) introduces no phase shift. When exactly one surface experiences a shift, the constructive condition becomes 2n₂d cos θ₂ = (m + 1/2)λ.
Why do camera lenses often have a magenta or bluish-purple reflection?
Anti-reflection coatings are tuned for destructive interference at green wavelengths (~550 nm), where human vision is most sensitive. The green light transmits completely, leaving faint residual reflections at the spectrum edges (red and blue), which combine into magenta.
How does changing the slit spacing d affect Young’s interference fringes?
According to Δx = Lλ / d, decreasing the slit separation d makes the fringe spacing Δx wider. Similarly, longer wavelength red light produces wider fringes than shorter wavelength blue light.
Related guide
Thin-Lens Calculations: Signs, Magnification and Ray Diagrams
Master the thin lens formula (1/a + 1/b = 1/f) and magnification equation (m = -b/a) with intuitive sign conventions. Covers convex vs. concave lenses, focal length signs, real vs. virtual image decision tables, the three principal rays, magnifying glasses, and Bessel’s conjugate point method.
Young’s Experiment and Diffraction Gratings: Worked Calculations
Master the physics of Young’s double-slit experiment (fringe spacing Δx = Lλ/d) and diffraction gratings (d sin θ = mλ). Step-by-step geometric and binomial derivations of optical path differences, bright/dark fringe conditions, glass slide shifts, liquid immersion effects, and maximum order limits.
Related Tools
Snell’s Law & Refraction Calculator
Calculate refraction angles, relative refractive index, speed ratio, and wavelength ratio using Snell’s law (n₁ sin θ₁ = n₂ sin θ₂). Includes total internal reflection (TIR) verification, critical angle (θc), Snell’s window radius, and optical fiber numerical aperture (NA) with ray tracing.
Thin Lens Calculator
Calculate image distance, magnification, and orientation (real/virtual, inverted/upright) using the thin lens equation (1/a + 1/b = 1/f) and ray tracing. Includes eyeglass diopters and compound lens systems.
Trigonometry Calculator
Enter an angle to get sin, cos and tan at once. Special angles like 30°, 45° and 60° are shown as exact values (1/2, √3/2), with degree and radian support, pi expressions such as pi/6, plus the quadrant signs and the reference-angle working.
Error Propagation Calculator
Find the uncertainty of a formula result from measured values and their uncertainties. Shows each measurement’s contribution through partial derivatives, the root sum of squares and the maximum error, and a value ± uncertainty rounded to significant digits.
All processing happens in your browser. Your files are never uploaded.
Verified: Verified Young double-slit (632.8nm, d=0.2mm, L=1m -> Δx=3.16mm), diffraction grating (589nm, 600 lines/mm -> θ1=20.70°, max order=2), thin film (MgF2 100nm -> 2n2d=276nm, AR coating 99.6nm, even inversion detection) and error handling with automated tests
Did you know?
The iridescent rainbow colors visible on CDs and DVDs occur because the microscopic tracks (pitch ~1.6 μm on CDs, ~0.74 μm on DVDs) act as a reflective diffraction grating, dispersing white light into its constituent wavelengths.