Depth of Field and Hyperfocal Distance: A Practical Guide
Depth of field is the zone in front of and behind your focus point that looks acceptably sharp. Controlling it is one of the biggest creative choices in photography.
What controls depth of field
- Aperture. A smaller opening (a higher f-number such as f/11) gives more depth of field. A wide opening (f/1.8) gives very little.
- Focus distance. The farther away you focus, the deeper the zone of sharpness.
- Sensor size. Larger sensors give shallower depth of field at the same framing and aperture.
- Focal length. At the same distance, longer lenses give less depth of field. If you keep the subject the same size in the frame by moving, the difference between focal lengths is much smaller.
Examples on a full-frame camera
| Focal length | Aperture | Focus distance | Near limit | Far limit | Total depth of field |
|---|---|---|---|---|---|
| 35 mm | f/2 | 2 m | 1.82 m | 2.21 m | 0.39 m |
| 50 mm | f/1.8 | 2 m | 1.92 m | 2.09 m | 0.17 m |
| 85 mm | f/1.8 | 3 m | 2.94 m | 3.07 m | 0.13 m |
| 135 mm | f/2.8 | 5 m | 4.89 m | 5.11 m | 0.22 m |
| 24 mm | f/8 | 3 m | 1.34 m | infinity | infinite |
| 16 mm | f/11 | 1 m | 0.44 m | infinity | infinite |
Notice how an 85 mm lens at f/1.8 produces only about 13 cm of sharpness at 3 m, while a 24 mm lens at f/8 focused at 3 m keeps everything from about 1.3 m to infinity sharp.
Hyperfocal distance
The hyperfocal distance is the closest focus distance that keeps infinity acceptably sharp. Focus there and everything from half that distance to infinity is sharp. Landscape photographers use it to maximize depth of field in one frame.
| Focal length | f/5.6 | f/8 | f/11 | f/16 |
|---|---|---|---|---|
| 16 mm | 1.5 m | 1.1 m | 0.8 m | 0.5 m |
| 24 mm | 3.5 m | 2.4 m | 1.8 m | 1.2 m |
| 35 mm | 7.3 m | 5.1 m | 3.7 m | 2.6 m |
| 50 mm | 14.9 m | 10.5 m | 7.6 m | 5.3 m |
| 85 mm | 43.1 m | 30.2 m | 22 m | 15.1 m |
| 135 mm | 108.6 m | 76.1 m | 55.4 m | 38.1 m |
Practical tips
- For landscapes, f/8 to f/11 is a common sweet spot. Very small apertures such as f/22 can soften the image through diffraction, especially on high-resolution sensors.
- The calculations assume a standard circle of confusion. For big prints viewed up close, be more conservative and focus a little closer than the hyperfocal distance.
- If foreground elements are very close to the lens, one frame may not be enough. Focus stacking combines several shots at different focus distances.
- For portraits, a wide aperture isolates the subject, but at very shallow depth of field, small focus errors show. Focus on the nearest eye.
Choosing an aperture by subject
| Subject | Starting aperture | Why |
|---|---|---|
| Single portrait | f/1.8 to f/2.8 | Separates the person from the background |
| Group portrait | f/4 to f/5.6 | Keeps everyone in the group sharp |
| Landscape | f/8 to f/11 | Maximizes depth while avoiding strong diffraction |
| Street photography | f/8 with zone focus | Sharp from a few meters to infinity without refocusing |
| Macro | f/8 to f/16 or focus stacking | Depth is extremely thin at close range |
| Product on a table | f/8 to f/11 | Keeps the whole object sharp |
These are starting points, not rules. The right aperture also depends on the lens, the light and the look you want.
Zone focusing in practice
Zone focusing means setting the focus distance and aperture once, then shooting without refocusing. On a full-frame camera with a 35 mm lens at f/8, focusing at 3 m gives acceptable sharpness from about 1.9 m to about 7.1 m. Anything a person is likely to do in that range, such as walking past you on a pavement, is sharp. This is why street photographers often prefer wide lenses and moderate apertures.
Setting the hyperfocal distance step by step
- Choose your aperture and note the focal length.
- Look up the hyperfocal distance in the calculator or the table.
- Focus at that distance, using the distance scale, or focus on an object at about that distance and then switch to manual focus.
- Check the result on screen at high magnification, and refocus a little farther if the horizon is soft.
The trade-off at small apertures
Stopping down increases depth of field, but it also introduces diffraction, a softening that spreads light as it passes through a tiny opening. On many cameras the effect becomes visible around f/11 to f/16 and gets worse beyond that. The sharpest aperture for a given lens is often two or three stops from wide open, and for deep scenes it is better to accept f/8 to f/11 and use focus stacking if you need more depth.
Focus stacking
For macro and product work, even f/16 may not give enough depth. Focus stacking takes several pictures focused at different distances and blends the sharp parts in software. It needs a tripod and a static subject.
Common mistakes
- Focusing at infinity for landscapes, which wastes the depth in front of the focus point.
- Treating the limits as exact edges, when sharpness fades gradually.
- Using the full-frame figures with a different sensor size, without correcting for it.
Try the tool
Depth of Field CalculatorFind near and far focus limits and the hyperfocal distance for your lens, aperture, distance and sensor size.
About the author. Darkroom Bench is created and maintained by Andrés, a nature photographer from Argentina with two decades in southern Patagonia and more than 50 trips to Antarctica, whose work has received international awards. Read more or follow the photography on Instagram: @yosoytato.