Depth of Field Calculator
Find near and far focus limits and the hyperfocal distance for your lens, aperture, distance and sensor size.
About this tool
Depth of field is the zone in front of and behind your focus point that looks acceptably sharp. It grows with a smaller aperture, a wider lens, or a longer distance. Focus at the hyperfocal distance and everything from half that distance to infinity is sharp.
Hyperfocal distance on a full-frame camera
| 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 |
Focus at the hyperfocal distance and everything from half that distance to infinity is acceptably sharp. Values assume a circle of confusion of 0.03 mm.
Read more in our depth of field guide.
How to use it
- Enter the focal length and aperture that you will use.
- Enter the distance to your subject in meters.
- Choose your sensor. The tool shows the near and far limits of acceptable sharpness and the hyperfocal distance.
Worked example 1: a portrait
A 50 mm lens at f/8 on a full-frame camera, focused at 3 m, gives a hyperfocal distance of about 10.5 m. Acceptable sharpness runs from about 2.34 m to about 4.18 m, so roughly 1.8 m of depth. Opening up to f/2.8 shrinks that zone to roughly 0.6 m, which is why wide apertures isolate a subject.
Worked example 2: a landscape
A 24 mm lens at f/11 has a hyperfocal distance of about 1.8 m. If you focus there, everything from roughly 0.9 m to infinity is acceptably sharp. Focusing on the horizon instead wastes the near half of the range.
What controls depth of field
- Aperture: a smaller opening (a larger f-number) gives more depth.
- Focal length: a wider lens gives more depth at the same distance and aperture.
- Distance: the farther the subject, the deeper the sharp zone.
- Sensor size: at the same framing and f-number, a larger sensor gives less depth of field.
Common mistakes
- Treating the limits as exact. The edge of the zone is a gradual softening, not a wall.
- Using a very small aperture for more depth. Beyond about f/11 to f/16 on many cameras, diffraction softens the whole image, so there is a trade-off.
- Forgetting the print size. The calculation assumes a standard enlargement and viewing distance. Large prints seen closely need a stricter standard than the one used here.
Questions
What is hyperfocal distance?
The closest focus distance that keeps infinity acceptably sharp. It is handy for landscapes.
How accurate is this?
It uses a standard circle of confusion for each sensor size. Large prints viewed up close need a stricter standard, so treat the limits as a guide.
What is the circle of confusion?
It is the largest blur spot that still looks like a point at your assumed enlargement and viewing distance. A smaller value means a stricter standard of sharpness.
Why does sensor size change the result?
A smaller sensor needs more enlargement to reach the same print size, so the acceptable blur spot is smaller, and the focal length needed for the same framing is shorter.
Should I always focus at the hyperfocal distance?
It is a good starting point for landscapes with foreground interest. If nothing important is near the camera, focusing a little beyond it can give a sharper horizon.