Set almost any lens to its widest aperture and the image will be a little soft, particularly in the corners. Close it two or three stops and it becomes noticeably sharper. Keep closing and at some point it starts getting softer again, this time across the whole frame. Two entirely separate physical effects produce this pattern, and they work in opposite directions.
Why wide open is soft
A lens has to bend light from every part of the scene onto one flat plane, and no design does it perfectly. The errors are called aberrations, and they include spherical aberration, coma, astigmatism and field curvature. All of them are worst at the edges of the glass, where light is being bent most steeply.
When the aperture is wide open, light is passing through the entire diameter of the elements, including those troublesome outer regions. Closing the aperture blocks the outer part of the light path, so only the better behaved central portion of the glass is used, and the image improves. This is why stopping down by one or two stops produces such a visible gain, especially at the corners.
Vignetting improves for the same reason, and colour fringing usually reduces as well.
Why very small apertures are also soft
The opposite effect is diffraction. Light passing the edge of an opening spreads slightly, and the smaller the opening, the greater the proportion of light affected. Instead of a point of light landing as a point on the sensor, it lands as a small disc. As the aperture shrinks, that disc grows, and once it is larger than a pixel the whole image begins to lose fine detail.
Crucially, diffraction affects the entire frame evenly, not just the corners, and it cannot be avoided by buying a better lens. It is a property of light and aperture size, and every lens ever made is subject to it identically.
Where the sweet spot falls
- Full frame: generally f5.6 to f8, with diffraction becoming visible around f11 and obvious by f16.
- APS-C: around f4 to f5.6, with softening from about f8 or f11.
- Micro four thirds: around f2.8 to f4, with diffraction visible from about f5.6 or f8.
- Small sensor compacts: often diffraction limited by f4, which is why they have few small apertures to choose from.
Smaller sensors have smaller pixels, so the diffraction disc becomes significant at wider apertures. This is the same effect appearing at different points rather than different lenses behaving differently.
Why you should often ignore it
Depth of field usually matters more than peak sharpness. A landscape at f16 that has everything in focus beats one at f8 that is technically sharper in the plane of focus and blurred in the foreground. A portrait at f1.8 with a soft background beats a clinically sharp one at f8 with a distracting hedge behind the subject.
The sweet spot is where the lens performs best, not where you should always shoot. It is useful to know so that you can choose deliberately rather than accidentally.
How to find yours
Put the camera on a tripod facing something flat and detailed with fine texture across the whole frame, such as a brick wall or a bookshelf. Use a two second timer to avoid shake. Photograph the same scene at every aperture from wide open to the smallest, keeping focus fixed.
Compare the results at full magnification, checking the centre and one corner in each. The pattern will be immediately obvious, and you will know within twenty minutes which two apertures your lens is happiest at.
What matters more than any of this
Missed focus, camera shake and subject movement destroy far more detail than any aperture choice. A lens at its worst aperture, correctly focused on a steady support, will always beat the same lens at its sweet spot focused slightly wrong. Sharpness testing is worth doing once so you can stop thinking about it and concentrate on the picture.