Depth of Field Calculator
Calculate near and far focus limits, total depth of field, and hyperfocal distance for any camera and lens setup.
About depth of field
Depth of field examples
| Camera settings | Calculated range | Use case |
|---|---|---|
| 50 mm, f/2.8, 3 m, CoC 0.03 mm | 2.73 m to 3.33 m; DOF 0.60 m | A full-frame portrait with moderate background separation. |
| 24 mm, f/8, 5 m, CoC 0.03 mm | 1.64 m to infinity; H 2.42 m | A wide landscape focused beyond the hyperfocal distance. |
| 85 mm, f/4, 10 m, CoC 0.03 mm | 8.59 m to 11.97 m; DOF 3.38 m | A telephoto composition with a controlled focus zone. |
How to calculate depth of field
- Enter the focal length printed on the lens in millimeters.
- Enter the selected aperture as its f-number.
- Measure the subject distance from the camera's sensor plane in meters.
- Choose a circle of confusion appropriate for the camera format.
- Select Calculate Depth of Field and review all four focus results.
Depth of field calculator FAQ
What controls depth of field?
Aperture, focal length, focus distance, and circle of confusion all affect the result. Wider apertures, longer lenses, and closer subjects generally create a shallower focus range.
What circle of confusion should I use?
A conventional starting point is 0.03 mm for full frame, 0.02 mm for APS-C, or 0.015 mm for Micro Four Thirds. A smaller value imposes a stricter sharpness standard.
What is hyperfocal distance?
It is the nearest focus distance whose far depth-of-field limit reaches infinity for the selected settings. Focusing there makes the near limit approximately half the hyperfocal distance.
Why does the far limit show infinity?
The far-limit equation becomes unbounded when focus reaches or passes the hyperfocal distance. In practical terms, objects from the near limit through the distant background should meet the chosen sharpness criterion.
Does this calculator work for macro photography?
It can provide a rough indication, but ordinary depth-of-field equations lose accuracy at high magnification. Dedicated macro calculations should include magnification and effective aperture.