This Depth of Field calculator provides the lens DOF and includes a hyperfocal distance calculator and f-stop calculator.
Camera Depth of Field Calculator
The depth of field for a camera is dependent upon the camera sensor pixel pitch, the lens effective focal length, and the lens aperture diameter.
A faster aperture (lower F/#) results in a shallower depth of field, whereas a slower aperture (higher F/#) results in a deeper depth of field.
When focusing closer than the hyperfocal distance, the closer the focus distance, the shallower the depth of field. The depth of field is not symmetric around the focus distance. It extends further beyond the focus distance than in front of the focus distance.
The depth of field can be characterized by three metrics:
- The Hyperfocal Distance is the distance at which a lens should be focused to achieve acceptable focus out to infinity.
- The Near Focus Distance is the closest distance which will be in focus, given a specific focus distance. When a camera is focused at the Hyperfocal distance, the Near Focus Distance is equal to half of the Hyperfocal distance.
- The Far Focus Distance is the further distance which will be in focus, given a specific focus distance. When a camera is focused at the Hyperfocal distance, the Far Focus Distance is equal to Infinity.
The amount of light incident on the image sensor is reduced using a higher F/#, requiring a longer exposure or more digital gain / ISO. We've added an f-stop calculator to provide relative illuminance (throughput) of a lens with different f-stops. This way you can adjust exposure and gain based upon the lens F/#.
We provide custom calculations as part of our optical design services and lens selection process. These include depth of field plotting and optimization. Example use-cases and projects include endoscopy and finite conjugate lens design.