Diffraction is when a wave spreads out as it passes through a small slit or any intricate surface, which in photography just applies to how the light interacts with the aperture and how the photosites detect it on a sensor.
Your maximum optical resolution drops when light is focused through the aperture, because it interacts with the edge of the aperture blades and spreads out. The light’s angle bends slightly, and the smaller the aperture, the greater the effect. You can see a visible real-world example of this in a harbor or a pond just by watching a wave as it bends around a jetty.
Diffraction Calculator
How will diffraction affect your camera?
Here’s a diffraction calculator you can use to see the limits of diffraction on any given sensor with any number of megapixels.
*This calculator shows the aperture where you start to lose fine detail, which is roughly where the Airy disk grows to about 2.5 times the pixel size. It uses green light at 0.55 microns and pixel pitch, which is the sensor width divided by the number of pixels across. BSI sensors and better microlenses help each pixel collect more light, but they don’t change the pixel pitch, so the diffraction limit stays the same.
Diffraction | The Equation
The Airy Disc

The diameter of the Airy disk is what we use to measure how much detail a lens can resolve at a given aperture. In optics, we look at diffraction through this Airy Disc or Airy Pattern, a circular pattern named after George Biddell Airy. This doesn’t necessarily reflect what the light is doing in terms of the shape, rather it’s the spread of a power vector. This illustrates that about 84% of the power of the wave is in the first cone and 91% within the first and second cones, which is exactly why we rely on the diameter of that first cone. It’s sometimes confused with the circle of confusion, which is a depth of field concept, not a diffraction one.
To put it simply, you’ll see a visible reduction in optical resolution when the Airy Pattern’s diameter gets about 2.5x larger than a single pixel on your sensor. This happens because as your aperture gets smaller, diffraction causes that pattern to get larger.
Here’s what the pattern on a wall looks like if you shine a laser through an aperture and close that aperture down, rendered with Mathematica.

How Aperture Can Ruin A Shot
The smallest spot of detail a lens can produce is 2.44 x Fstop x λ.
Your aperture has a direct role in the details your lens can actually produce. For example, if you’re shooting at f19, the smallest spot of perfect detail produced (the Airy Disc diameter) would be (2.44 x 19 x 0.5) = 23.18 microns.
A look at diffraction at various apertures.
That last column is the bright core of the disk, its width at half brightness, which is only about 0.42 times the full Airy disk diameter. I’m basing these calculations on wavelengths from 0.4 microns for blue to 0.6 microns for orange, with 0.55 for green as the average, though deep red light out near 0.7 microns spreads a little more.
| F-Stop |
Diffraction Size 0.4-0.6λ (microns) |
Average 0.55 λ |
Bright core (approx.) |
| f19 | 18.54 – 27.82 | 25.5 µm | 7.4 – 11.13 |
| f16 | 15.62 – 23.42 | 21.5 µm | 6.25 – 9.36 |
| f11 | 10.74 – 16.10 | 14.8 µm | 4.3 – 6.44 |
| f8 | 7.81 – 11.71 | 10.7 µm | 3.12 – 4.68 |
| f5.6 | 5.47 – 8.20 | 7.5 µm | 2.19 – 3.28 |
| f4 | 3.90 – 5.87 | 5.4 µm | 1.56 – 2.35 |
| f2.8 | 2.73 – 4.10 | 3.8 µm | 1.09 – 1.64 |
| f2 | 1.95 – 2.93 | 2.7 µm | 0.78 – 1.17 |

In practice, there’s more room to play with before you notice diffraction. It may look like your diffraction spot at f2.8 is 2.73 to 4.10 microns, but the Airy disk doesn’t have hard edges. Most of its energy sits in a bright core only about 0.42 times the full diameter, making it closer to 1.1 to 1.6 microns at f2.8.
You’ll see less diffraction shooting an image that’s primarily blue than if you were to shoot an image that’s primarily red, simply because the spread depends on wavelength.
Diffraction | Real-World Results
What does diffraction look like in a real-world shoot, and how does this relate to our camera sensor and megapixels?
Here’s a sample showing how diffraction affects the rendering of the Zeiss 35mm f2.8 on the Sony A7r.

How Megapixels Play A Role
The size of the sensor and the number of megapixels determine the size of the pixels on the sensor, and when it comes to megapixels, they play a role in overall resolution.
A camera like the Nikon D800 with 36.3 megapixels has a pixel pitch of 4.878, which just means that a single pixel is 4.878 microns in size.
Fine detail gets visibly softer on the D800 if you shoot at f19, because the smallest spot of perfect detail (the entire airy disc) you could produce is 23.18 microns, which is nearly five pixels wide.
To get everything the D800 sensor can resolve, keep the Airy disk under about 2.5 pixels, or roughly 12.2 microns, which works out to about f9 in green light. Stop down further and diffraction starts to soften the finest detail. It doesn’t fall off a cliff, but you’re no longer getting the full 36 megapixels’ worth.
At some point it gets very difficult to actually capture more detail. The more pixels you pack in, the narrower the window of sharp apertures gets, because lens aberrations soften the image wide open and diffraction softens it stopped down. This is often why you see some camera manufacturers say there’s a limit to the number of megapixels a camera should have for general use.
Pixel Sizes (In Microns) Based On Megapixels
I’ve rounded the sensor sizes to produce a close estimate, since Canon full-frame is actually 36mm, but Canon APS-C is 22.2mm, whereas Sony APS-C is 23.6mm. For more on how sensor size affects your images, see my APS-C vs Full Frame guide, and for the practical shooting implications, check out why you should avoid small apertures.
| Megapixels | Medium Format (53.90mm) | Full Frame (36mm) | APS-C (23.6mm) | Micro 4/3 (17.3mm) | 1/3″ (iPhone) |
| 50MP | 6.60 | 4.16 | 2.73 | 2.12 | — |
| 42MP | 7.20 | 4.53 | 2.97 | 2.31 | — |
| 36MP | 7.78 | 4.90 | 3.21 | 2.50 | — |
| 32MP | 8.24 | 5.20 | 3.41 | 2.65 | — |
| 28MP | 8.82 | 5.55 | 3.64 | 2.83 | — |
| 24MP | 9.53 | 6.00 | 3.93 | 3.06 | — |
| 22MP | 9.95 | 6.26 | 4.11 | 3.19 | 0.87 |
| 18MP | 11.00 | 6.93 | 4.54 | 3.53 | 0.98 |
| 16MP | 11.67 | 7.35 | 4.82 | 3.75 | 1.04 |
| 12MP | 13.47 | 8.49 | 5.56 | 4.33 | 1.2 |
At some point, packing more pixels onto a sensor quickly becomes futile. If you compare those numbers to the resolution limits at certain apertures, you can see how your lens aperture and diffraction will limit your resolution.
How Cameras Are Designed Around The Diffraction Limit
Many high-megapixel cameras are designed to resolve perfect details between f5.6 and f8, right in the sweet spot of most lenses.
Some cameras, like the Sony A7III and A7sIII, are designed well below the f5.6-f8 limits of diffraction. They use bigger photosites so they can perform better in low light and with video, even though it makes sense to try taking the megapixel count to the limits of diffraction.
Smartphones are the extreme case, and one reason phone cameras don’t stop down is that their pixels are so small that they’re close to the diffraction limit even at their fixed, wide apertures.
How Lenses Work With Diffraction
Any two lenses at f11 produce the same diffraction because the f-number sets the size of the Airy disk. Where lenses actually differ is how sharp they are before diffraction takes over. A lens with heavy aberrations wide open might keep getting sharper all the way to f8, while a really sharp lens peaks earlier and then starts losing detail to diffraction. There’s one big exception with macro, though. At close focus, your effective aperture is smaller than the marked one, so a 1:1 macro shot at f8 behaves more like f16 and diffraction shows up much sooner.
How Diffraction Can Affect Your Photography
You should be able to see how your aperture and sensor resolution work together. While owning a 50-megapixel camera is great, you’ll have to open up your aperture to fully take advantage of it, which is great for studio and wedding photographers, but not so great for landscape photographers.
You likely won’t really see the difference between a 50-megapixel or a 42-megapixel camera when shooting at f8-f16, because while your images will have a larger dimension in size, the detail should be very close to the same when scaled to match.
Diffraction is even less of a problem if you’re not printing to the maximum size of the sensor output.
Why Larger Sensors Are Better
Larger sensors handle diffraction better because they can pack in more megapixels and still come out with a larger pixel pitch. At the same f-stop, a 50-megapixel medium format camera handles diffraction better than a 50-megapixel full-frame camera, and full frame does better than APS-C. The catch is a bigger sensor also gives you less depth of field at the same f-stop, so if you’re stopping down further to match the depth of field, most of that advantage disappears.
The Beauty Of More Megapixels
There are still some advantages to having more megapixels when it comes to image artifacts, even if diffraction and sensor microns make you think it’s completely pointless.
Having a 50-megapixel image and scaling down to 24 megapixels will do a great deal to help eliminate artifacts while still maintaining a very sharp image. That’s a better approach than a 24-megapixel camera using an optical low pass filter, because while those filters help reduce moire and artifacts, they lower the overall resolution.
In my experience, a 50-megapixel camera with no optical low-pass filter shot at f11 can still hold up against a 24-megapixel camera with a low-pass filter shot at f5.6 once both are scaled to the same size. That’s simply because the 50-megapixel image is scaling from more pixels, resulting in cleaner diagonal lines, whereas the 24-megapixel camera uses a filter that impacts resolution.
The detail should be the same if you removed the optical low-pass filter from the 24-megapixel camera, but you’d be at a disadvantage regarding moire and aliasing.
What Is Diffraction? | Conclusions
The more you stop down your aperture, the less detail your lens is capable of producing, which in turn can greatly reduce some of the advantages of using a higher-megapixel camera. If this all seems confusing, that’s ultimately what you need to take away.
APS-C and Micro 4/3 cameras are more affected by diffraction at the same f-stop and megapixel count because their pixels are smaller, so while having tons of megapixels packed into your sensor is great, you have to consider the trade-offs.
Real World Use
I typically like to shoot my landscapes at f8 to f11 on my Sony A7r III because of diffraction. I know I won’t capture as much detail at f11 as at f8, but that’s ok. I’m willing to trade slightly less IQ for more depth of field, and f11 is good enough for me.
The other alternative is to focus stack, meaning shooting at something like f5.6 at various focus ranges and blending the images in post. Macro photographers have been doing this for years, and if we really want to take advantage of massive megapixel cameras, landscape photographers will have to focus stack too. The other option is medium format, where bigger sensors give you bigger pixels at the same resolution.
Please let me know if it looks like I have a mistake. I’m not a math genius, but some people who read this will be (although I did finish my College Trig final in 15 minutes).















Leave a Reply