Use our Depth of Field calculator which includes F-Stops and Hyperfocal Distance.

Camera Depth of Field Calculator

A Camera Depth of Field Calculator for Surveillance Camera and M12 Lens. DoF and Hyperfocal Distance Calculator.
A Camera Depth of Field Calculator for Surveillance Camera and M12 Lens. DoF and Hyperfocal Distance Calculator.

The depth of field of a camera is the range of distances which objects are in focus. The depth of field is dependent upon the camera sensor pixel pitch, the lens effective focal length, and the lens aperture diameter. 

This depth of field calculator has five primary outputs:
1.) Depth of Field
2.) Hyperfocal Distance
3.) Geometric and Diffractive Depth of Focus
4.) Sensor Nyquist Frequency
5.) Relative Transmittance of 2 F#s and the required exposure length difference

A faster aperture (lower F/#) results in a shorter depth of field, whereas a slower aperture (higher F/#) results in a longer depth of field.

The depth of field is related to the "Hyperfocal Distance" which is the distance at which if you focus a camera, all objects beyond the distance will be in focus.

If you focus a camera closer than the hyperfocal distance,  the depth of field will get shallower. The depth of field is not symmetric around the selected 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  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/#.

Click below Use our Other Camera Calculators

Lens Focal Length Calculator. EFL Calculator.
Camera Angle of View Calculator. Camera AoV Calculator.
Camera Field of View Calculator. FoV Calculaot

What's Your Application? Our Board Lenses Cover the Spectrum.

200°@6.3mm Fisheye M12 Lens

CIL219-F2.5-M12IR

200°@6.3mm Fisheye M12 Lens

190°@9.1mm Fisheye M12 Lens

CIL231-F1.9-M12A650

190°@9.1mm Fisheye M12 Lens

Large Format 3.5mm M12 Lens

CIL334-F2.2-M12C660

Large Format 3.5mm M12 Lens

Does it Require an IP67 Lens?

Our new Automotive 8MP 1/1.7" lineup is suitable for applications  exposed to the environment, without a window.

Mobile Robotics?

Find a low F# or low distortion lens to optimize your computer vision framerate.

190°@9.1mm Fisheye M12 Lens

CIL231-F1.9-M12A650

190°@9.1mm Fisheye M12 Lens

200°@7.2mm Fisheye M12 Lens

CIL324-F1.9-M12ANIR

200°@7.2mm Fisheye M12 Lens

Low Distortion 7.2mm M12 Lens

CIL872-F2.8-M12A650

Low Distortion 7.2mm M12 Lens

Wide-Angle 4.4mm M12 Lens

CIL344-F1.9-M12B660

Wide-Angle 4.4mm M12 Lens

Wide-Angle 3.2mm CS Mount Lens

CIL032-F2.0-CSA650

Wide-Angle 3.2mm CS Mount Lens

Large Format 5.1mm M12 Lens

CIL050-F2.0-M12A650

Large Format 5.1mm M12 Lens

Surveillance?

Our low F#, high resolution lenses are suitable for 180° dome cameras, low light, and active IR illuminated scenes.

Consumer / AR+VR?

Our high resolution fisheye lenses will let you design 360° cameras and and stereographic lenses are equivalent to "GoPro" lenses.

Low Distortion 5.8mm M12 Lens

CIL058-F2.2-M12A650

Low Distortion 5.8mm M12 Lens

226°@3.9mm Fisheye M12 Lens

CIL212-F2.2-M12A660

226°@3.9mm Fisheye M12 Lens

200°@2.9mm Fisheye M12 Lens

CIL208-F2.2-M12A650

200°@2.9mm Fisheye M12 Lens

Video Conferencing?

Our wide-angle, low distortion, high resolution M12 lenses result in optimal object deformation without post-processing.

Aerial Robotics?

Our light-weight, miniature lenses are ideal for collision avoidance, long-distance viewing, and end-customer viewing.

Small 3.3mm M12 Lens

CIL036-F2.2-M12A650

Small 3.3mm M12 Lens

Low Distortion 2.7mm M12 Lens

CIL027-F2.8-M12A650

Low Distortion 2.7mm M12 Lens

200°@6.3mm Fisheye M12 Lens

CIL219-F2.5-M12IR

200°@6.3mm Fisheye M12 Lens

Surveillance?

Our low F#, high resolution lenses are suitable for 180° dome cameras, low light, and active IR illuminated scenes.

Video Conferencing?

Our wide-angle, low distortion, high resolution M12 lenses result in optimal object deformation without post-processing.

Wide Angle Fisheye Lens for S Mount
Wide Angle Fisheye Lens for S Mount
Fisheye Wide Angle M12 Lens
Board Mount Lens Wide Angle Fisheye
CIL227-F2.5-M12B660
185°@7.8mm Fisheye M12 Lens
$39.00
Mini M12 Fisheye Lens for Board Mount Cameras
Mini M12 Fisheye Lens for Board Mount Cameras
Mini M12 Fisheye Lens for Board Mount Cameras
Mini M12 Fisheye Lens for Board Mount Cameras
Mini M12 Fisheye Lens for Board Mount Cameras
CIL212-F2.2-M12A660
226°@3.9mm Fisheye M12 Lens
$49.00
230 degree M12 Fisheye lens
230 degree M12 Fisheye lens
Ultra-wide fisheye lens with 230 degree field of view
230degree mini fisheye lens
CIL213-F2.3-M12A660
230°@4.5mm Fisheye M12 Lens
$99.00
Mini Fisheye S Mount Lens
Mini Fisheye S Mount Lens
Mini Fisheye M12 Lens
Miniature Fisheye M12 Lens
CIL222-F2.0-M12A650
188°@6.6mm IP67 M12 Fisheye
$39.00
200° M12 Fisheye Lens
200° M12 Fisheye Lens
200° Mini Fisheye Lens
Mini M12 Fisheye Lens
CIL219-F2.5-M12IR
200°@6.3mm Fisheye M12 Lens
$79.00
A 2.8mm M12 lens with a wide angle and no distortion for the RPi HQ Camera.
A 2.8mm M12 lens with a wide angle and no distortion for the RPi HQ Camera.
A 2.8mm M12 lens with a wide angle and no distortion for the RPi HQ Camera.
A 2.8mm M12 lens with a wide angle and no distortion for the RPi HQ Camera.
CIL028-F2.3-M12A650
Low Distortion 2.6mm M12 Lens
$39.00