Diffraction & Double-Slit Back
Wave Optics Simulator

Diffraction & Young's Double-Slit Calculator

Set wavelength, slit separation, slit width, and screen distance to visualize interference intensity I(θ) in real time. Supports double-slit, single-slit, and diffraction grating modes.

Parameters
Wavelength λ
nm
Slit separation d
mm
Slit width a
μm
Screen distance L
m
Central max width:
Results
Fringe spacing Δy [mm]
1st max angle θ₁ [°]
Central max width [mm]
Resolving power R=mN
Visualization
Theory & Key Formulas

Double-slit interference (Young's experiment)

$$I(\theta)=I_0\cos^2\!\left(\frac{\pi d\sin\theta}{\lambda}\right)\cdot\text{sinc}^2\!\left(\frac{\pi a\sin\theta}{\lambda}\right)$$

Bright fringes: $d\sin\theta = m\lambda \quad (m=0,\pm1,\pm2,\ldots)$

Dark fringes: $d\sin\theta = \left(m+\tfrac{1}{2}\right)\lambda$

Fringe spacing: $\Delta y = \dfrac{\lambda L}{d}$

What is Double-Slit Interference?

🙋
What exactly is happening in this simulator? I see bright and dark bands on the screen.
🎓
Basically, you're seeing the classic Young's double-slit experiment. Light waves from two slits travel to the screen. Where the waves arrive "in step" (constructive interference), you get a bright fringe. Where they arrive "out of step" (destructive), you get a dark band. Try moving the "Wavelength λ" slider above from red to blue light and watch the pattern change.
🙋
Wait, really? So the spacing between the bright fringes depends on the color of the light? What else changes it?
🎓
Exactly! The fringe spacing is very sensitive to the slit separation, `d`. A common case is in a lab using a laser pointer. If you bring the slits closer together, the pattern on the wall spreads out. In the simulator, drag the "Slit separation d" slider to a smaller value and you'll see the bright fringes move farther apart.
🙋
Okay, I see the "Slit width a" control too. What's that for? I thought only the separation mattered.
🎓
Great observation! The separation `d` controls the interference pattern's spacing. But each slit has a finite width `a`, which causes diffraction. This acts like an "envelope" that modulates the brightness of the interference fringes. For instance, if you make the slits very wide, the diffraction envelope squeezes down, and you might only see one or two bright fringes inside it. Play with the "Slit width a" control and watch the overall brightness profile change.

Physical Model & Key Equations

The intensity pattern on the screen, `I(θ)`, is a product of two effects: the interference between two slits and the diffraction from a single slit.

$$I(\theta)=I_0\cos^2\!\left(\frac{\pi d\sin\theta}{\lambda}\right)\cdot\text{sinc}^2\!\left(\frac{\pi a\sin\theta}{\lambda}\right)$$

Where `I_0` is the maximum intensity, `λ` is the wavelength of light, `d` is the center-to-center slit separation, `a` is the width of each slit, and `θ` is the angle from the central axis to a point on the screen. The `sinc` function is defined as `sinc(x) = sin(x)/x`.

For small angles, the position of the bright fringes (maxima) on a screen a distance `L` away is given by a simpler formula. The fringe spacing `Δy` is what you can measure directly.

$$Δy = \frac{\lambda L}{d}$$

Here, `Δy` is the distance between adjacent bright fringes. This shows clearly that longer wavelengths (red) and smaller slit separations produce a wider, more spread-out pattern, which you can test instantly in the simulator.

Frequently Asked Questions

The slit width a determines the envelope of single-slit diffraction (the gradual change in overall brightness of the fringes); the larger a is, the narrower the diffraction spread. The slit spacing d determines the spacing of the interference fringes; the larger d is, the denser the fringes become. In double-slit mode, both effects are superimposed and displayed.
Increasing the screen distance L causes the positions on the screen corresponding to the same angle θ to spread proportionally, thus widening the spacing of the interference fringes. Conversely, decreasing L narrows the fringe spacing. The shape of the intensity distribution itself does not change, but the appearance of the fringes relative to the display range changes.
Single-slit mode displays only the diffraction pattern from one slit (a bright center with dark lines on both sides). Double-slit mode displays a pattern of fine fringes from interference between two slits, modulated in intensity by the single-slit diffraction envelope. In diffraction grating mode, sharp peaks from many slits appear.
This simulator renders the intensity distribution as a black-and-white graph, so the fringes are not colored. The wavelength is treated as a numerical value and affects the fringe spacing and diffraction spread. Wavelengths outside the visible spectrum (e.g., X-rays or infrared) can also be entered numerically, and the same physical equations apply.

Real-World Applications

Diffraction-Grating Spectrometers: Instead of two slits, these use thousands (parameter `N` in the simulator). They spread light into its component colors with high precision, used in chemistry labs to identify materials or in astronomy to analyze light from stars.

Optical Data Storage (CDs/DVDs): The microscopic pits on a disc act like a reflective diffraction grating. The way laser light diffracts from the track is used to read the stored data. The spacing of the pits is analogous to the slit separation `d`.

Photolithography in Chip Manufacturing: To etch incredibly small circuits onto silicon wafers, light is shone through a patterned mask. The diffraction limit, related to the wavelength `λ` and aperture size, fundamentally determines how small the features can be, pushing the industry to use extreme ultraviolet (EUV) light.

Holographic Interferometry: This CAE/measurement technique uses the interference of laser light (like our fringe pattern) to detect microscopic deformations, vibrations, or flaws in structures. It's a non-contact way to measure displacement with wavelength-scale accuracy.

Common Misunderstandings and Points to Note

First, are you confusing the slit separation d with the slit width a? d is the "distance between the centers of the slits" and determines the spacing of the interference fringes, while a is the "width of a single slit" and determines the overall brightness envelope of the fringes. For example, if you set d=0.1mm and a=0.02mm, you'll see fine interference fringes contained within a broader envelope. Be careful not to make a larger than d (e.g., d=0.1mm, a=0.15mm), as this will cause the interference fringes to become almost invisible.

Next, consider the relationship between "distance on the screen" and "angle θ". The simulator uses the angle θ in its calculations, but in an actual experiment, the distance to the screen L is finite. The position x on the screen can be approximated for small angles as $x \approx L \tan\theta \approx L \theta$. In other words, if L is 1m, you can roughly estimate the position in mm on the screen by multiplying the calculated angle value (in radians) by approximately 1000mm. Forgetting this approximation can lead to confusion when simulation results don't match your measurements.

Finally, the "monochromaticity" of the light source and its "coherence length" are also common blind spots. This calculation assumes perfectly monochromatic light with no phase shift between waves (coherent light). However, even inexpensive laser pointers have a slight wavelength spread, and white LEDs have an extremely short coherence length. Therefore, when building an interferometer for practical work, you must carefully check your light source's specifications to obtain the sharp fringes predicted by the calculation.