Single-slit Fraunhofer diffraction
Key equations and principles
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’.


