Fresnel Diffraction Calculator Back
Optics Simulator

Fresnel Diffraction Pattern Calculator

Compute near-field diffraction intensity patterns for single slits, circular apertures, and knife edges using Fresnel integrals. Watch the Cornu spiral animate in real time and explore the transition from Fresnel to Fraunhofer regime as you change wavelength, slit width, and observation distance.

Optical Parameters
Aperture Type
Slit width a
mm
Wavelength λ
nm
Observation distance z
m
Presets
Fresnel Number & Regime
Results
Fresnel number N
550 nm
Wavelength λ
Cornu Spiral
Diffraction Intensity Pattern I(x)
Fresnel Number N vs Distance z
Theory & Key Formulas
$I(x) \propto [C(u_2)-C(u_1)]^2 + [S(u_2)-S(u_1)]^2$
$N = \dfrac{a^2}{\lambda z}$, $u = x\sqrt{\dfrac{2}{\lambda z}}$
$C(u)=\int_0^u\!\cos\!\tfrac{\pi t^2}{2}\,dt,\quad S(u)=\int_0^u\!\sin\!\tfrac{\pi t^2}{2}\,dt$
N≫1: Fresnel regime   N≪1: Fraunhofer regime

What is Fresnel Diffraction?

🙋
I've heard of light bending around corners, which is diffraction. But what exactly is "Fresnel" diffraction, and how is it different from the regular kind?
🎓
Great question! Basically, there are two main regimes. "Fraunhofer" diffraction is what you see far from an obstacle, where light rays are nearly parallel. "Fresnel" diffraction, which this simulator calculates, happens in the near field, closer to the obstacle. Here, you can't ignore the curvature of the wavefronts. In practice, it creates those intricate, wavy shadow patterns you might see near the edge of a blade.
🙋
Wait, really? So the pattern changes depending on how far away I look? How do I know if I'm in the "near field" or not?
🎓
Exactly! That's a key insight. A handy rule of thumb is the Fresnel number, $N = a^2 / (\lambda z)$. If $N$ is around 1 or larger, you're in the Fresnel regime. Try it in the simulator above: set a small slit width and a short observation distance z. You'll see a complex pattern. Now, slide the z parameter way up. Watch the pattern simplify into the broader, smoother fringes of the far field.
🙋
Okay, I see the pattern change. But what's that spiral graph next to it? It looks like a snail shell and seems to be drawing the pattern.
🎓
That's the brilliant Cornu spiral! It's a geometric trick to visualize the math. Each point on the spiral corresponds to a location u in the diffraction plane. The intensity at a point on the screen is proportional to the squared length of the chord connecting two points on this spiral. When you change the Aperture Type from a slit to an edge, you'll see the chord start from the center of the spiral, which beautifully explains why the edge pattern looks the way it does.

Physical Model & Key Equations

The core of Fresnel diffraction is the Huygens-Fresnel principle, where every point on a wavefront is a source of secondary spherical wavelets. The total field at an observation point is the superposition of all these wavelets from the open part of the aperture. This leads to the famous Fresnel integrals.

$$I(x) \propto \left[ C(u_2) - C(u_1) \right]^2 + \left[ S(u_2) - S(u_1) \right]^2$$

Here, $I(x)$ is the light intensity at position $x$ on the observation screen. $C(u)$ and $S(u)$ are the Fresnel cosine and sine integrals, defined below. The limits $u_1$ and $u_2$ are transformed coordinates for the edges of the aperture.

The transformation from physical space to the dimensionless u variable is crucial, as it normalizes the problem. It involves the Fresnel number and wavelength.

$$N = \dfrac{a^2}{\lambda z}, \quad u = x \sqrt{\dfrac{2}{\lambda z}}$$

$a$ is the slit width, $\lambda$ is the wavelength of light, $z$ is the observation distance from the aperture, and $x$ is the position on the screen. The Fresnel integrals themselves are:

$$C(u)=\int_0^u\!\cos\!\left(\frac{\pi t^2}{2}\right)dt,\quad S(u)=\int_0^u\!\sin\!\left(\frac{\pi t^2}{2}\right)dt$$

Plotting $S(u)$ against $C(u)$ gives the Cornu spiral. The chord drawn between two points on this spiral directly gives the amplitude and phase of the diffracted wave.

Frequently Asked Questions

The Fresnel number N is a dimensionless number that indicates the relationship between aperture size, wavelength, and distance. If N ≫ 1, it is automatically determined as near-field diffraction (Fresnel diffraction), and if N ≪ 1, it is determined as far-field diffraction (Fraunhofer diffraction). The larger this value, the more complex the diffraction pattern becomes; the smaller it is, the closer the intensity distribution is to a simple form.
The Cornu spiral is the trajectory of the Fresnel integral on the complex plane. A point on the spiral corresponds to an observation position, and the square of the distance between that point and the origin represents the light intensity. Through the animation, changes in intensity as the observation point moves are intuitively visualized as movement along the spiral, allowing an understanding of the essence of interference and diffraction in wave optics.
A slit produces one-dimensional diffraction, with fringe patterns appearing in a single direction. In contrast, a circular aperture produces two-dimensional diffraction, resulting in a concentric bright-dark pattern called the Airy disk. This tool uses Fresnel integral formulas corresponding to each shape to display different intensity distributions in real time.
First, check whether the units of wavelength λ, aperture width a, and observation distance z are consistent. In particular, if the distance is extremely short (the Fresnel number is very large), the approximation accuracy may decrease. Additionally, the coherence length of the light source and the shape accuracy of the aperture also have an effect, so consider the differences between ideal conditions and experimental conditions.

Real-World Applications

Optical System Alignment & Testing: Fresnel diffraction patterns from edges or wires are used in knife-edge tests to measure the focus and aberrations of lenses and telescope mirrors. By analyzing the intensity pattern near the focal point, engineers can precisely align optical systems.

Acoustics and Sonar Design: The same principles apply to sound waves. Predicting how sound diffracts around barriers or through openings in the near field is critical for designing noise shields, concert hall acoustics, and the beam patterns of underwater sonar arrays.

Radio Wave Propagation: For long-wavelength radio waves, obstacles like hills or buildings are often within the Fresnel zone of a transmitter. Calculating Fresnel diffraction is essential for planning cellular tower placement and satellite communication links to ensure a clear signal path.

Microscopy and Lithography: At small scales, like in photolithography for manufacturing computer chips, light passes through masks very close to the silicon wafer (small z). Modeling the Fresnel diffraction is vital to predict the exact pattern that will be etched, affecting the final feature size and resolution.

Common Misconceptions and Points to Note

First, understand that "Fresnel diffraction is 'near-field,' but not 'ultra' near-field." For example, with visible light of wavelength 0.5μm and a slit width of 1mm, in the "immediate vicinity" of a few mm to a few cm, the concept of a geometric shadow becomes dominant, and the scalar diffraction theory itself, which is the basis of this tool, may not hold. In practice, you should first check if the observation distance z is several times larger than the aperture size a.

Next, do not mix units in the parameter settings. This is the most common mistake. If you input wavelength λ in "nm", slit width a in "mm", and distance z in "m", you'll get nonsensical results. For instance, for λ=633nm (He-Ne laser), a=0.1mm, z=1m, it's safest to input everything on a meter basis (λ=6.33e-7, a=1e-4, z=1). The tool calculates using dimensionless numbers internally, so consistency in the unit system is essential.

Finally, understand that "the Cornu spiral is a visualization of the calculation method, not the physical path of light." It's easy to mistakenly think the spiral represents the "path of light," but it's actually a diagram of the mathematical integration path. However, once you grasp this, you'll see that calculations for knife-edges or various aperture shapes reduce to the problem of "which two points on this spiral to choose." Try changing the aperture type in the tool while observing the spiral to appreciate the power of this abstraction.

How to Use

  1. Enter the aperture width or slit dimension in valANum (range 0.1–5 mm for visible light applications)
  2. Set the wavelength λ in slLam using the slider (400–700 nm for visible, or extend to IR/UV)
  3. Specify the observation distance Z in valZNum (typically 0.01–1 m for near-field Fresnel regime)
  4. The calculator computes Fresnel number N = a²/(λZ) and generates the diffraction intensity map and Cornu spiral trajectory
  5. Adjust parameters to observe transitions from Fresnel (N > 1) to Fraunhofer (N << 1) diffraction

Worked Example

A single slit with width a = 0.5 mm, wavelength λ = 632.8 nm (He-Ne laser), observation distance Z = 0.05 m yields Fresnel number N = (0.5×10⁻³)²/(632.8×10⁻⁹ × 0.05) ≈ 7.9. The Cornu spiral shows significant curvature in the diffraction pattern, producing multiple secondary maxima near the geometrical shadow region. Central intensity maxima reach approximately 1.2 times the unobstructed wave intensity.

Practical Notes