QQ: 859818709

Diffraction and Interference Simulator

Diffraction and Interference Simulator

Diffraction and Interference Simulation Calculator
Enter the wavelength and slit/circular-aperture geometry to render Fraunhofer far-field fringes in real time, with values such as fringe spacing, principal maximum width, angular dispersion, resolving power, Airy disc radius and the Rayleigh criterion ready to use in engineering. Four modes are supported: single-slit diffraction, double-slit interference, N-slit array (grating) and circular-aperture diffraction.
a·sinθ = mλ (diffraction minimum) · d·sinθ = mλ (interference principal maximum) · I(θ) ∝ [sin β / β]²



Common: 405 / 532 / 633 / 1064 / 1550 nm


Free space requires the far-field condition; the back focal plane is the Fourier plane and works for any aperture
Typical operating presets






Single-slit Fraunhofer diffraction

Key results
Intensity distribution curve (with minimum/principal maximum position markers)
Far-field diffraction pattern (real-time rendering)
Colour scale




Full data table

Key equations and principles

Single-slit diffraction intensity distribution
I(θ) = I₀ · [ sin β / β ]²,β = (π a / λ)·sinθ
a is the slit width. At β = 0 the limiting value is 1 (central bright fringe). This is the fundamental formula of the whole tool.
Diffraction minimum condition
a·sinθ = mλ,m = ±1, ±2, …
The first minimum has sinθ = λ/a and the central bright fringe is about 2λ/a wide in angle. The narrower the slit (smaller a), the wider the fringes — the most commonly used rule of thumb.
Secondary maximum positions and intensities
tan β = β ⇒ β = 4.493, 7.725, 10.904…
The relative intensity of secondary maxima is 1/(1+β²); the first secondary maximum is only about4.72%, the second 1.65% and the third 0.83%. Hence the far-field pattern must use logarithmic intensity to be visible.
Double-slit interference factor
I = I₀ · [sinβ/β]² · cos²(π d·sinθ/λ)
The double slit is the product of ‘single-slit diffraction envelope × double-slit interference’. Fringe spacing Δy = λL/d and the FWHM of a single fringe is λL/2d.
Missing-order condition
m = n · (d/a),n = 1, 2, 3 …
Whend/a is an integer, the d/a-th, 2d/a-th… interference principal maxima fall exactly on the minima of the diffraction envelope and are completely suppressed — this is a missing order. It must be avoided when designing the number and width of slits.
N-slit array (grating)
I = I₀ · [sinβ/β]² · [ sin(Nα) / sinα ]²,α = (π d/λ)·sinθ
The sharpness of the principal maxima scales as ∝ N, and the peak intensity as ∝ N², but the number of principal maxima visible within the envelope depends only on d/a, not on N.
Grating resolving power
R = λ/Δλ = m·N
The FWHM of a principal maximum is ≈ 2λL/(N d cosθ) and the angular dispersion is dθ/dλ = m/(d cosθ). Increasing the slit count N or the order m both improve the resolving power.
Circular-aperture diffraction (Airy disc)
I(θ) = I₀ · [ 2·J₁(u) / u ]²,u = (π D/λ)·sinθ
J₁ is the first-order Bessel function of the first kind. Its first zero is u = 3.8317, corresponding to sinθ = 1.2197 λ/D.
Rayleigh criterion and full width at half maximum
θ_R = 1.22 λ/D (FWHM = 1.029 λ/D)
These two have different dimensions and must be distinguished:1.22 λ/D is the radius of the first dark ring, while 1.029 λ/D is thefull width, equal to the half width 0.514 λ/D. The FWHM is therefore only about 42% of the Airy discdiameter (2.44 λ/D) — estimating the resolution limit by ‘two peaks just falling on the first dark ring’ is noticeably conservative.
Energy within the Airy disc
EE(u) = 1 − J₀(u)² − J₁(u)²
The first dark ring contains only about83.8% of the energy, the second dark ring 91.0% and the third 93.8%. The rest is spread among the side lobes — this is why high-NA systems lose energy at the edges.
Fraunhofer far-field condition
N_F = structure size² / (λ·L) ≪ 1
When propagating in free space to the screen, once N_F exceeds 0.5 the fringe positions begin to show visible deviations, and above 2 Fresnel diffraction must be used instead. But if observed at thelens back focal plane, the lens itself performs a Fourier transform of the aperture,so any aperture satisfies the Fraunhofer condition — this is why a 1 inch aperture shows a standard Airy disc at the lens focal plane. The tool offers two observation geometries and gives N_F in real time.

Frequently asked questions (FAQ)

How do I choose among the four modes: single slit, double slit, N slit and circular aperture?

It depends on whether you want the ‘envelope’ or the ‘interference’:Single slitgives the cleanest diffraction envelope, the basis for estimating ‘slit width → fringe width’;Double slitsuperimposes interference fringes on the envelope, the standard model for understanding Young’s interference and missing orders;N slitsharpens the fringes into narrow principal maxima, the design basis for gratings and spectrometers;Circular aperturegives the Airy disc, corresponding to the resolution limit of microscope and telescope systems. The four have different formulae but are all governed by the same β = π·size·sinθ/λ.

Why should the far-field pattern use logarithmic intensity?

Because the secondary maxima are only about 4.7% of the main peak, the side lobes of the double slit are even lower, and for N slits the intensity ratio between principal maxima and side lobes reaches a factor of N². Under a linear colour scale all these structures are compressed to black, looking like ‘just one bright line’. The tool enables logarithmic intensity by default with the display floor set at −46 dB, and you can also switch to linear mode.

What are missing orders, and what should be noted in engineering?

A missing order occurs when certain interference orders fall exactly on the minima of the diffraction envelope and vanish; the condition is that d/a is an integer. For example, with d = 200 µm and a = 50 µm, d/a = 4, so orders ±4, ±8 and ±12 are all missing. The consequence is that the number of usable orders is about 1/4 less than theory, so estimating the spectral range without accounting for missing orders gives the wrong answer. Gratings are usually designed with a non-integer d/a.

What happens when d is smaller than λ?

In that case there is no physical direction satisfying d·sinθ = mλ (since sinθ cannot exceed 1), sothere are no interference fringes at all, and only the single-slit diffraction envelope is visible. In this case the tool gives a clear warning rather than drawing non-existent fringes. Similarly, the first single-slit minimum requires λ/a < 1; if λ is larger than the slit width, even the first minimum cannot be seen.

Is the slit spacing d the centre-to-centre distance or the gap?

This tool consistently uses thecentre-to-centre distance (grating constant d). If what you have is thegap g between the two slits, convert it to d = g + a. This is the most common mistake: mixing up the gap and the centre-to-centre distance makes the fringe spacing wrong by a factor of a/d.

What role does the screen distance L play?

L converts angles into screen coordinates y = L·tanθ, so it only affects thelinear size of the fringes, not the angular distribution. For example, the first single-slit minimum is 12.66 mm at 1 m and 25.3 mm at 2 m. Any question asking ‘how wide are the fringes on the screen’ must specify L; only when asking about the divergence angle is L irrelevant.

What is the Fraunhofer number N_F, and why do large apertures often fail the condition?

N_F = structure size²/(λL) measures the ‘near-field/far-field’ character of diffraction. The analytical solution of this tool holds when N_F is far below 1. Two points need attention:first, it grows with the square of the aperture, so a 1 inch (25.4 mm) aperture at 2 m already has N_F above 100, far from satisfying the free-space far-field condition;second, this is precisely the point of having a lens — when observing at the lens back focal plane, the lens performs a Fourier transform of the aperture and any aperture gives a Fraunhofer pattern; in that case the screen distance should be interpreted as the focal length f. The tool therefore offers two observation geometries, ‘free-space screen’ and ‘lens back focal plane’: the former warns strictly according to N_F, while the latter directly assumes the far field holds. In practice, measurements of Airy discs and slit far-field fringes are almost always made at the lens focal plane.

What is the numerical accuracy of this tool?

All results are given by closed-form analytical solutions, with no numerical integration or discrete sampling, so there is no accumulated error. The Bessel functions J₀/J₁ use a hybrid ‘series + asymptotic expansion’ algorithm (with the switching point u = 12 optimised by testing), giving an error of about 1.5×10⁻¹¹ compared with the scipy reference implementation. All Airy disc zeros, bright-ring positions and secondary-maximum roots are found by root-solving with brentq rather than looked up in tables, and have been checked one by one against standard literature values.

Is the far-field pattern computed numerically?

No. The two-dimensional Fourier transform of a rectangular aperture isseparable (horizontal sinc × vertical sinc), while that of a circular aperture isradially symmetric, so the far-field pattern is evaluated pixel by pixel directly from the analytical formula, with no FFT grid limitations and exact at any canvas resolution. This is also why the tool still gives a correct pattern when a is far smaller than λ — in that case the fringes fall in the non-physical region where sinθ > 1, which no finite-grid FFT can represent.

How does this tool work with other calculators on the site?

This tool handles ‘aperture → far-field pattern’. To predict the far-field divergence ofnon-ideal beams (Gaussian beams, M²), please use themulti-lens Gaussian beam propagation calculator; to view wavefront phase and depth of focus, use a resonator-type tool. The circular-aperture mode and Airy disc formula of this tool can serve as a baseline for the geometrical-optics limit, to judge whether a system is diffraction-limited or aberration-limited.

What are the unit conventions?

The wavelength is entered in nm (converted internally to µm); slit width and aperture are entered in µm,µmwhile the screen distance L is entered in mmmm (convenient for entering 1000 directly to mean 1 m). Lengths in the results switch automatically between µm and mm according to magnitude; angles are in deg; intensity is relative (the central principal peak is normalised to 100%). The peak intensity in N-slit mode is additionally given separately as ‘N² times that of a single slit’.

Scope of applicability and disclaimer:This tool gives ananalytical solution for Fraunhofer (far-field) diffraction under the scalar approximation, assuming: an aperture of ideal geometry (rectangular/circular, no edge roughness), uniform illumination, coherent monochromatic light, an observation plane perpendicular to the optical axis, and negligible polarisation effects (valid when the long side of the slit is perpendicular to the polarisation direction). It does not apply to: non-uniform or partially obscured complex apertures (where numerical FFT is required), the near-field (Fresnel) region, anisotropic materials, rough-surface scattering or volume scattering media. At high NA (NA ≳ 0.8) the scalar approximation has significant error and vector diffraction (e.g. RCWA or time-domain finite elements) is needed. Real beams are also affected by M², aberrations and polarisation, so measured fringes are usually more blurred than the ideal calculation. The listed diffraction extrema (Airy disc zeros, secondary-maximum roots, etc.) are taken from tables of mathematical constants and are exact values.

中文EN