How to use the diffraction limit aperture calculator
- Enter the sensor width in millimeters and the number of pixels across that width.
- Enter the aperture you want to check, such as 8.
- In Advanced options change the wavelength of light if you want something other than the 550 nm green example.
- Read the pixel pitch, the Airy disk diameter and the f-numbers where the disk reaches one and two pixels, and the table for common apertures.
Formula
Pixel pitch = sensor width / pixels across
Airy disk diameter = 2.44 x wavelength x f-number
f-number for a disk of n pixels = n x pixel pitch / (2.44 x wavelength)
Disk across pixels = Airy diameter / pixel pitch
The Airy disk is the central bright spot that a perfect lens makes from a point of light, out to its first dark ring. It grows with the f-number, so a smaller aperture blurs a point more.
A 6000 pixel full frame sensor
A sensor 36 mm wide with 6000 pixels across has a pixel pitch of 6 um. At f/8 and 550 nm the Airy disk is 10.736 um wide, which is 1.79 pixels. The disk equals one pixel at f/4.47 and two pixels at f/8.94.
A sensor 23.5 mm wide with 6000 pixels has a pitch of 3.9167 um, so the disk reaches two pixels at f/5.84. With 450 nm blue light the disk is smaller and reaches one pixel at f/5.46 on the full frame example.
What the numbers mean
When the Airy disk is smaller than a pixel, the lens and sensor sharpness are set by other things. As the disk grows past a pixel or two, small details begin to blur and extra pixels add little. This is a gradual change, and there is no sharp cutoff, so treat the f-numbers as a guide to where diffraction begins to matter.
Aperture also changes the depth of field, which you can see with the depth of field calculator. Equal exposures at different settings are in the exposure equivalent settings calculator, the picture area in the field of view calculator, and video exposure in the shutter angle calculator.
Why a smaller sensor is affected sooner
A sensor with smaller pixels reaches the limit at a wider aperture. Packing 24 million pixels onto a small sensor gives a tiny pixel pitch, so the Airy disk covers several pixels even at moderate f-numbers. The same f-number on a larger sensor with the same pixel count has bigger pixels and more room before diffraction shows.
Assumptions and limits
- The lens is ideal and limited only by diffraction at a round aperture, with no aberrations.
- Light is a single wavelength, 550 nm green unless you change it.
- Pixel pitch is the sensor width divided by the pixel count, with no gaps between pixels.
- Real photos also depend on focus accuracy, lens quality, sensor filters and image processing.
Frequently asked questions
What is the Airy disk?
It is the central bright spot of the pattern a lens makes from a point of light because of diffraction. Its diameter out to the first dark ring is 2.44 times the wavelength times the f-number.
At what aperture does diffraction start to matter?
There is no sharp line. The page shows the f-numbers where the Airy disk equals one and two pixels, which many photographers use as a rough guide.
How do I find my pixel pitch?
Divide the sensor width by the number of pixels across it. A 36 mm sensor with 6000 pixels has a pitch of 6 micrometers.
Does a smaller aperture always make a worse photo?
No. A smaller aperture adds depth of field and reduces other lens flaws, while diffraction adds blur. The best setting depends on the scene and the lens.