PhysicsLast updated: 2026-10-10

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 and files processed in your browserFree · No sign-up

Inputs are not collected. Usage measurement requires your consent.

Quick Presets (Common Optics & Laser Setups)

Experimental Parameters

632.8 nm
nm
380 nm (Violet)550 nm (Green)780 nm (Red)
mm
m
Interference Fringes Simulation
Approximation Valid
-15 mmx = 0 (m = 0)+15 mm
Intensity Profile I(x) ∝ cos²(π d x / λL)
Fringe Spacing Δx
3.16 mm
Δx = Lλ / d
Order m = 1 Position
3.16 mm
θ₁ = 0.181°
Effective Wavelength λ'
632.8 nm
λ' = λ / n

Fringe Positions by Order mm = 0 〜 ±4

Order mBright x_mDark x'_mAngle θ
Calculation Formula Steps
Δx = (1.00 m × 632.8×10⁻⁹ m) / (0.20×10⁻³ m) = 3.164×10⁻³ m = 3.16 mm
Constructive (Bright): d(x/L) = mλ | Destructive (Dark): d(x/L) = (m + 1/2)λ
ShareXfB!L

How to use

  1. 1

    Choose optical setup

    Select from Young’s Double-Slit Experiment, Diffraction Grating, or Thin-Film Interference.

  2. 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. 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.

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.

Optional usage measurement settings

Only with your consent, a random browser ID and tool/learning events are sent to measure return visits. This is pseudonymous measurement. Inputs, answers, keys, files and search terms are excluded. Consent expires after 90 days. Declining does not limit any feature.

Measurement is off.

Retention and privacy