Diffraction Calculator

Where do dark fringes appear in your single-slit diffraction experiment?

Calculate where bright and dark fringes appear when light waves pass through narrow openings. Essential for understanding wave interference in physics labs and optical system design.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

Imagine water waves hitting a narrow gap in a harbor wall. The waves don't just pass straight through — they bend and spread out on the other side, creating a fan-shaped pattern. Light behaves identically when squeezed through a narrow slit.

The mathematics behind this spreading follows a precise relationship: the narrower the opening, the wider the spread. When light encounters the slit edges, it bends around them through a process called diffraction. The bent waves from opposite edges travel different distances to reach any point on the screen, sometimes reinforcing each other (bright fringes) and sometimes canceling out (dark fringes).

The first dark fringe occurs where waves from the top and bottom of the slit are exactly half a wavelength out of phase. At this position, every light ray from the upper half of the slit has a corresponding ray from the lower half that cancels it out completely, creating zero intensity.

When To Use This
Right tool, right situation

This calculator applies to single-slit diffraction experiments in physics labs, where students measure fringe positions to determine light wavelength or verify wave theory. It's essential for designing optical instruments where aperture size affects image quality, such as camera lenses or telescope mirrors.

Use these calculations when planning interference demonstrations, sizing lab equipment for visible diffraction patterns, or analyzing resolution limits in optical systems. The tool helps predict whether a given setup will produce measurable fringes within your available screen space.

Don't use this calculator for multiple slits (use double-slit interference formulas instead), circular apertures (requires Airy disk calculations), or when the slit width approaches or exceeds several millimeters with visible light. Also avoid using it for very short distances where near-field effects dominate, typically when screen distance is less than 10 times the slit width squared divided by wavelength.

Common Mistakes
Why results sometimes look wrong

Students commonly assume wider slits create wider diffraction patterns, reversing the actual relationship. This misconception stems from everyday experience with geometric shadows, where larger openings cast larger shadows. In wave optics, the opposite occurs because diffraction becomes more pronounced as the opening approaches the wavelength scale.

Another frequent error involves measuring from the wrong reference point. The fringe positions calculated here represent distances from the central bright maximum, not from the slit itself. Measuring from the slit location introduces systematic errors that compound with distance.

Many experimenters place the screen too close to the slit, invalidating the far-field approximations this calculator uses. When screen distance is less than a²/λ (where a is slit width), the wave fronts remain curved rather than planar, requiring complex Fresnel diffraction analysis instead of the simpler Fraunhofer approximation used here.

The Math
Worked examples and deeper derivation

The fundamental diffraction equation relates slit width to fringe position: sin(θ) = nλ/a, where θ is the angle to the nth dark fringe, λ is wavelength, and a is slit width. This deceptively simple formula encapsulates wave interference across the entire opening.

For small angles (typical in most setups), sin(θ) ≈ tan(θ) ≈ y/L, where y is the fringe position and L is screen distance. This approximation transforms the calculation into y = nλL/a, making position directly proportional to wavelength and screen distance but inversely proportional to slit width.

The intensity pattern follows I(θ) = I₀[sin(β)/β]², where β = (πa sin θ)/λ. This sinc-squared function creates the characteristic pattern with a bright central maximum twice as wide as the secondary maxima, which rapidly decrease in brightness.

Physics Lab Red Laser Setup
Red laser (650 nm wavelength), 0.02 mm slit, screen 3 meters away
First dark fringe appears 97.5 mm from center. This wide spacing makes the pattern easily visible for student measurements and demonstrates wave nature of light clearly.
Optical Design Tolerance Check
Green LED (550 nm), 0.1 mm aperture, 1.5 meter focal length
Dark fringe at 8.3 mm shows aperture diffraction effects. For precision optics, this determines the minimum spot size achievable regardless of lens quality.
Astronomy Telescope Resolution
Yellow light (580 nm), 0.5 mm secondary mirror support, 2 meter focal length
Diffraction spikes appear 2.3 mm from center. This explains why telescope images of bright stars show cross-shaped spikes from mirror support structures.
Expert Unlock
The thing most explanations skip

The far-field approximation breaks down when screen distance approaches a²/λ, transitioning from Fraunhofer to Fresnel diffraction where numerical integration becomes necessary. Professional optical design requires considering this boundary carefully, especially in compact systems where space constraints force shorter working distances than ideal.

How does slit width affect diffraction patterns?

Why do narrower slits create wider diffraction patterns?
Narrower slits force light waves to bend more dramatically around the opening edges, spreading the pattern wider. This inverse relationship means a slit half the width creates a pattern twice as wide. The effect becomes extreme when the slit approaches the wavelength of light.
What happens if my screen is too close to the slit?
Near-field diffraction creates curved wave fronts instead of straight fringes, making this calculator inaccurate. The screen should be at least 10 times the ratio of slit-width-squared to wavelength away for reliable results. Closer screens require complex Fresnel diffraction analysis.
Why does red light diffract more than blue light?
Longer wavelengths bend more around obstacles, so red light (650 nm) spreads about 60 percent wider than blue light (400 nm) through the same opening. This wavelength dependence explains why telescope resolution improves with bluer light and why red warning lights scatter more in fog.

Need something this doesn't cover?

Suggest a tool — we'll build it →