Lens diffraction is one reason stopping down doesn’t always produce a sharper photograph. As you narrow your aperture, you increase depth of field, but you also introduce an optical limitation that can soften fine detail. The sharpest aperture isn’t necessarily the smallest one.
For many lenses, f/5.6 to f/8 is a good starting point for sharpness. But the sharpest aperture depends on your lens, camera, and subject. And maximum optical sharpness isn’t always the goal: sometimes you need more depth of field, even if that means giving up a little fine detail.
Finding the right setting means balancing your lens’s optical performance, the depth of field your subject requires, and the effects of diffraction.
This guide explains how diffraction works, why f/22 isn’t always the best choice, and how to find your lens’s sharpest aperture.
Lens diffraction happens because light behaves as a wave and spreads as it passes through an opening. Instead of forming a perfect point on the sensor, light forms a diffraction pattern with a central spot called an Airy disk. As the f-number increases and the aperture opening narrows, that spot grows, reducing contrast between closely spaced details.
Diffraction occurs at every aperture, not just f/16 or f/22. What changes is how strongly it limits the fine detail your camera can record. The diffraction limit describes an optical system’s theoretical resolving ceiling at a particular aperture and wavelength. It’s not a universal setting where every photograph suddenly becomes unusable.
Think of it as a gradual trade-off. Closing the aperture can improve some aspects of an image while reducing its finest detail.
Depth of field is the range of distances that appears acceptably sharp around your focus distance. Stopping down generally expands that range, but it doesn’t mean every object within it gains more resolved detail.
At f/22, foreground rocks and distant mountains may both look more acceptably focused than they do at f/4. However, texture at the exact focus distance can look softer because diffraction reduces resolution. A photograph can gain front-to-back clarity while losing crispness in its best-focused areas.
Stopping down can also improve a lens’s rendering, particularly toward the edges, before diffraction becomes the stronger limitation. This balance creates the lens sweet spot: the aperture range that delivers the best overall optical performance. It varies by lens, so there’s no guaranteed setting that works for every camera or situation.
Sensor resolution and pixel density influence how easily diffraction becomes visible. Smaller pixels sample the diffraction pattern more finely, making softness easier to see when inspecting an image at the pixel level. At 100% magnification, each image pixel maps to a display pixel, so higher-resolution images also receive greater overall enlargement on the same screen.
Higher resolution isn’t a disadvantage. Just remember to compare images at the same output size. Diffraction that’s noticeable in a 100% crop may be insignificant in a print.
This table shows relative trends, not fixed thresholds. It assumes the same camera, lens, focal length, focus distance, and composition. Depth of field and the visible impact of diffraction vary with your camera-and-lens combination and viewing conditions.
| Aperture | Relative depth of field | Diffraction trade-off |
| f/2.8 | Shallowest in this sequence | Least diffraction; other lens limitations may dominate |
| f/4 | Shallow | Low diffraction influence |
| f/5.6 | Moderate | Often a useful balance of optical performance and depth |
| f/8 | Greater | Increasing diffraction; frequently still a practical compromise |
| f/11 | Deeper | Fine-detail loss becomes easier to notice on demanding setups |
| f/16 | Very deep | More pronounced softening; assess the depth gained |
| f/22 | Deepest in this sequence | Strongest diffraction penalty here; choose deliberately |
These are tendencies, not rankings for every photograph. An f/11 frame with the important subjects acceptably focused can be more successful than an f/5.6 frame with sharper detail in the wrong place.
Want to learn more about aperture? This blog is for you.
Use these apertures as starting points, not hard rules. Your subject, shooting distance, movement, and desired depth of field should determine where you land.
The best way to find your lens’s sharpest aperture is to photograph the same detailed subject at several aperture settings, then compare matching center and corner areas at identical magnification. This tests your actual equipment rather than relying on a general sweet-spot rule.
Follow these steps to keep the comparison consistent:
Record both center and corner preferences. If they peak at different apertures, choose according to where your photograph needs the most detail. If you use a zoom lens, repeat the test at different focal lengths. One result shouldn’t stand in for the entire zoom range.
Focus stacking combines frames focused at different distances into one image with greater apparent depth of field. Keep exposure consistent and make small, overlapping focus changes from near to far. Blend the frames in suitable software, then inspect edges for artifacts. Moving leaves, water, or subjects can complicate the process.
Before choosing f/22, check whether your focus placement favors an unimportant area. Refocus and compare the nearest and farthest details that actually matter. You can also step back or change your camera position to reduce the depth the composition needs to cover. These adjustments may give you the depth you need without closing the aperture further.
Before investing in another lens, get to know what your current equipment can do. Testing different apertures can help you understand where your lens performs best and whether you actually need an upgrade. When you’re ready to explore other options, KEH offers a wide selection of KEH Certified™ pre-owned lenses, each inspected and graded by experienced camera professionals.
Can sharpening fix diffraction?
Sharpening and diffraction-compensation tools can improve apparent definition, but they can’t fully restore detail that wasn’t resolved in the first place. Treat correction as help, not a reason to ignore aperture choice.
When is f/22 worth the softness?
Choose it when the extra depth makes an important subject acceptably sharp and focus stacking isn’t practical. A moving macro subject is one example where capturing enough depth in a single frame may outweigh maximum fine detail. Judge the complete photograph rather than its sharpest crop.
Should I stop down to get a longer exposure?
You can, but consider a neutral-density filter if you already have sufficient depth of field. It lets you lengthen the exposure without choosing a smaller aperture solely to reduce light. Keep the aperture that best serves the scene’s detail.