Calculators

Lens Diffraction Calculator

Estimate the Airy disk diameter at the sensor from wavelength and f-number, then compare it with pixel pitch to see how many pixels span the diffraction spot. This is a monochromatic, ideal-aperture estimate, not a complete measure of image sharpness.

Loading calculator...

What this Lens Diffraction Calculator does

The Lens Diffraction Calculator estimates the diameter of the central bright spot formed by a point of light passing through an ideal circular aperture. That spot is called the Airy disk. The result is expressed in pixels so you can compare the estimated diffraction pattern with the sampling scale of a digital sensor.

The estimate uses three inputs: light wavelength in nanometers, lens f-number, and pixel pitch in micrometers. Its description is: “Estimate the Airy disk diameter at the sensor from wavelength and f-number, then compare it with pixel pitch to see how many pixels span the diffraction spot. This is a monochromatic, ideal-aperture estimate, not a complete measure of image sharpness.” The result label is Airy disk diameter (pixels).

This is a practical way to explore why aperture and sensor sampling interact. It does not predict exactly how sharp a photograph will look. Focus accuracy, lens aberrations, subject movement, processing, contrast, and viewing size all contribute to perceived detail. Treat the output as an optical reference point rather than a sharpness score.

How to use the Lens Diffraction Calculator

Enter a wavelength that represents the light you want to examine, the aperture setting as an f-number, and the sensor's pixel pitch. Pixel pitch is the distance from the center of one pixel to the center of the next, expressed here in micrometers. Sensor specifications may provide pixel pitch directly. If they instead give sensor width and pixel count, pitch can be estimated by dividing the active sensor width by the number of pixels across it, using consistent units.

  • Light wavelength: choose a visible-light value within the calculator's 380–700 nm range. A value near 550 nm is a useful representative green wavelength.
  • Lens f-number: enter the aperture notation's number, such as 5.6 for f/5.6. The supported range is f/1 to f/32.
  • Pixel pitch: enter the sensor spacing in micrometers, within the supported 1–12 µm range.

For example, use 550 nm, f/8, and a 4.5 µm pixel pitch. The formula converts 550 nm to 0.55 µm and calculates (2.44 × 0.55 × 8) ÷ 4.5, which is approximately 2.39. The estimate is therefore an Airy disk diameter of about 2.39 pixels under those assumptions.

Change one input at a time to understand its influence. Keeping the wavelength and pixel pitch fixed while changing f-number isolates the aperture effect. Keeping wavelength and f-number fixed while changing pixel pitch shows how sensor sampling affects the reported pixel count.

How the Lens Diffraction Calculator formula works

The calculator applies the standard ideal circular-aperture approximation for the Airy disk diameter at the image plane: diameter ≈ 2.44 × wavelength × f-number. Wavelength and image-plane distances must use matching units. Since the calculator accepts wavelength in nanometers and pixel pitch in micrometers, it divides wavelength by 1,000 to convert nanometers to micrometers.

It then divides that diameter by pixel pitch. In compact form, the calculation is (2.44 × (wavelength_nm ÷ 1,000) × f_number) ÷ pixel_pitch_um. The factor 2.44 comes from the location of the first dark ring around the central Airy disk for an ideal circular aperture. Dividing by pixel pitch changes the physical diameter into an approximate number of pixel spacings.

The formula has straightforward directional behavior. A longer wavelength yields a larger estimated spot. A higher f-number also yields a larger spot at the sensor. A larger pixel pitch yields a smaller reported pixel count because each pixel covers more physical distance. These relationships describe this model's output and should not be interpreted as a complete ranking of cameras or lenses.

Use cases for the Lens Diffraction Calculator

Photographers can use the estimate when comparing apertures for landscape, macro, product, or studio work. For instance, stopping a lens down can increase depth of field, while this model shows that the diffraction pattern also grows as the f-number rises. The calculation provides context for that tradeoff without selecting an aperture for a particular photograph.

It can also help when comparing sensors with different pixel pitches. A diffraction diameter of a given physical size may span a different number of pixels on two sensors. That difference alone does not determine which image will appear sharper. Image scaling, optical quality, color filter arrays, sharpening, noise reduction, and final display size affect the result.

Other useful applications include:

  • Building intuition about the effects of aperture on fine detail.
  • Exploring how the selected wavelength changes the idealized spot size.
  • Comparing pixel sampling for camera bodies when reliable pitch figures are available.
  • Planning controlled test photographs with a static, detailed subject and stable focus.

For a practical test, photograph a detailed flat subject in stable light, use a tripod, focus carefully, and keep exposure and processing consistent across aperture settings. Compare files at the same output size. Such a test includes more of the real imaging system than the calculator, though it remains specific to that lens, camera, focus distance, and workflow.

Other factors to consider when calculating diffraction

The calculator models one wavelength at a time. A normal scene contains a spectrum of wavelengths, and a camera records broad color channels. The selected value is therefore a simplifying representative wavelength rather than a complete description of white light. Different wavelengths do not all form identical diffraction patterns.

Real lenses also depart from the ideal-aperture assumption. Aberrations, aperture blade shape, lens design, coatings, and focus position can influence image detail. A sensor adds its own characteristics, including a color filter array, optical low-pass filtering in some designs, microlens behavior, and image processing. Motion blur and atmospheric conditions can obscure detail independently of diffraction.

Pixel pitch is also not the same as a guaranteed resolving limit. The displayed number describes an estimated diameter in pixel-spacing units. It does not state how many distinct lines the camera can resolve, nor whether every pixel records independent detail. Interpret the result alongside real photographs and the intended output size.

Finally, the input ranges are designed for common visible-light photography estimates. Confirm manufacturer specifications and units before entering sensor data. Small rounding differences may occur because the calculator displays the result to two decimal places.

Lens Diffraction Calculator FAQ

What does an Airy disk diameter of two pixels mean?

It means the idealized central diffraction spot's diameter is about twice the sensor's pixel pitch for the entered conditions. It is a geometric estimate, not a promise that exactly two pixels contain all visible detail or that the image has a particular sharpness.

Why does a higher f-number increase the result?

In this approximation, Airy disk diameter is directly proportional to f-number. Stopping down reduces the aperture's opening relative to focal length, and the ideal diffraction pattern at the image plane becomes larger.

Which wavelength should I enter?

Use a wavelength relevant to the question. Around 550 nm is a convenient representative value for visible green light. Since real scenes contain a range of colors, one calculation cannot represent every wavelength recorded in a photograph.

Where can I find pixel pitch?

Look in a camera's technical specifications or manufacturer documentation. If pixel pitch is unavailable, it may be estimated from active sensor width and horizontal pixel count, provided the dimensions refer to the same image area and units are converted correctly.

Does the result tell me the sharpest aperture?

No. It estimates one diffraction quantity. The best aperture for a photograph also depends on depth of field, lens aberrations, focus, subject movement, lighting, and output requirements. Use the estimate as context and judge actual images for the task.

Written by

margaretjacobsen.com Editorial Team

Editorial team

Independent editorial coverage of creative life & connection.