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.

195°@5.2mm Fisheye Lens

CIL818-F2.0-M8A660

Miniature M8 Fisheye Lens
Miniature M8 Fisheye Lens
M8 Miniature Fisheye Lens CIL818
M8 Mini Fisheye Lens

200°@5.7mm IP67 Fisheye M12 Lens

CIL217-F2.7-M12ANIR

Mini Fisheye S Mount Lens
Mini Fisheye S Mount Lens
Tiny Fisheye Lens
Miniature Fisheye

200°@6.3mm Fisheye M12 Lens

CIL219-F2.5-M12IR

200° M12 Fisheye Lens
200° M12 Fisheye Lens
200° Mini Fisheye Lens
Mini M12 Fisheye Lens

Does it Require an IP65+ Lens?

We offer IP65+ variants of many lenses. These are 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.

Wide-Angle 2.7mm M12 Lens

CIL327-F1.8-M12A650

3mm Wide Angle M12 Lens IMX415
3mm Wide Angle M12 Lens IMX415
Sony IMX415 Lens
M12 S Mount Lens for IMX415

Low Distortion 6.8mm M12 Lens

CIL068-F2.5-M12A650

7mm M12 Lens
7mm M12 Lens
7mm M12 Lenses
7mm SMount Lens

Fast 6mm M12 Lens

CIL061-F1.9-M12A650

6mm M12 Lens for S-mount cameras
6mm M12 Lens for S-mount cameras
6mm M12 Lens for FLIR and AR0234
6mm Lens for IMX290

200°@6.3mm Fisheye M12 Lens

CIL219-F2.5-M12IR

200° M12 Fisheye Lens
200° M12 Fisheye Lens
200° Mini Fisheye Lens
Mini M12 Fisheye Lens

Mid-Range 7.6mm M12 Lens

CIL080-F1.8-M12IR

8mm 1/1.7
8mm 1/1.7
8mm S-Mount Lens for 4K+ sensors
8mm M12 Lens for 12MP+ 1/1.7

190°@4.2mm All-Sky M12 Lens

CIL015-F1.9-M12NIR

A miniature fisheye 1.5mm M12 lens for All-Sky cameras.
A miniature fisheye 1.5mm M12 lens for All-Sky cameras.
A 1.5mm S Mount RPi mini fisheye lens. The lens has an EFL of 1.5mm, F/# of 1.8, and a M12 Interface.
A fisheye 1.5mm M12 lens. The lens has an EFL of 1.5mm, F/# of 1.8, and a M12 S Mount Interface

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.

No Distortion 3.9mm M12 Lens

CIL039-F2.8-M12IR

A 14MP 4mm M12 lens that is wide angle no distortion.
A 14MP 4mm M12 lens that is wide angle no distortion.
A 3.9mm M12 Lens pictured with the Raspberry Pi High Quality
A 4K M12 Lens for the Raspberry Pi High Quality Camera. CIL039.
14MP 4mm M12 lens on IMX178

230°@4.5mm Fisheye M12 Lens

CIL213-F2.3-M12A660

230 degree M12 Fisheye lens
230 degree M12 Fisheye lens
Ultra-wide fisheye lens with 230 degree field of view
230degree mini fisheye lens

IP67+ No Distortion 3.2mm Lens

CIL034-F2.7-M12A660

IP65 M12 Lens
IP65 M12 Lens
IP67 M12 Lens
IP67 FLIR S-Mount Lens M12 Lens

No Distortion 3.9mm M12 Lens

CIL039-F2.8-M12IR

A 14MP 4mm M12 lens that is wide angle no distortion.
A 14MP 4mm M12 lens that is wide angle no distortion.
A 3.9mm M12 Lens pictured with the Raspberry Pi High Quality
A 4K M12 Lens for the Raspberry Pi High Quality Camera. CIL039.
14MP 4mm M12 lens on IMX178

No Distortion 4.4mm M12 Lens

CIL043-F3.2-M12A650

A 12MP+ 4mm S-Mount Lens
A 12MP+ 4mm S-Mount Lens
A No Distortion 4.3mm S Mount Lens
A 14MP 4.3mm M12 Lens CIL043

IP67+ No Distortion 3.2mm Lens

CIL034-F2.7-M12A660

IP65 M12 Lens
IP65 M12 Lens
IP67 M12 Lens
IP67 FLIR S-Mount Lens 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.

Telephoto 12mm M12 Lens

CIL125-F2.4-M12IR

Telephoto 12mm M12 Lens
Telephoto 12mm M12 Lens
Telephoto M12 Lens 12mm
Telephoto 12mm M12 Lens
Telephoto 12mm S-Mount Lens

Telephoto 35mm M12 Lens

CIL350-F2.4-M12A650

35mm M12 Lens
35mm M12 Lens
35mm Board Mount Lens
35mm S Mount Lens

Telephoto 26mm M12 Lens

CIL260-F2.0-M12IR

25mm M12 Lens
25mm M12 Lens
25mm S Mount Lens
25mm lens for FLIR Cameras

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 Low Distortion 2mm S-Mount Lens CIL023
Wide Angle Low Distortion 2mm S-Mount Lens CIL023
Wide Angle Low Distortion 2mm S-Mount Lens CIL023
Wide Angle Low Distortion 2mm S-Mount Lens CIL023
Wide Angle Low Distortion 2mm S-Mount Lens CIL023
CIL023-F2.2-M12A650
Low Distortion 2.2mm M12 Lens
$39.00
2.7mm M12 Lens for IMX226
2.7mm M12 Lens for IMX226
A 2.7mm M12 Lens for S-Mount FLIR
Arducam IMX477 2.7mm M12 Lens
CIL027-F2.8-M12IR
Low Distortion 2.7mm M12 Lens
$39.00
3.1mm Wide Angle M12 Lens
3.1mm Wide Angle M12 Lens
3mm S-Mount Lens
3mm M12 Lens
CIL331-F2.5-M12A660
GoPro 3.0mm M12 Lens
$39.00
3.5mm M12 Lens for IMX226 AR0821 IMX537
3.5mm M12 Lens for IMX226 AR0821 IMX537
S-Mount Drone Lens for Wide Angle IMX226
Wide Angle Drone Lens for IMX226
CIL334-F2.2-M12A660
Large Format 3.5mm M12 Lens
$39.00
A 6mm M12 lens for 4K+ sensors
A 6mm M12 lens for 4K+ sensors
A 6mm cctv lens for raspberry pi HQ
A 6mm S-Mount lens for 1/1.8
CIL060-F2.8-M12ANIR
Low Distortion 6mm M12 Lens
$29.00
7mm M12 Lens
7mm M12 Lens
7mm M12 Lenses
7mm SMount Lens
CIL068-F2.5-M12A650
Low Distortion 6.8mm M12 Lens
$59.00