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

Find a Lens Using Our M12 Lens Calculator Or By Browsing 20+ Below

190°@4.2mm All-Sky M12 Lens

CIL015-F1.8-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
$49.00

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
$99.00

Large Format 8.0mm M12 Lens

CIL081-F1.8-M12NIR

The CommonLands CIL081-F1.8-M12NOIR is a 8mm F/1.8 S Mount M12 Lens for cameras such as the Raspberry Pi HQ Camera.
The CommonLands CIL081-F1.8-M12NOIR is a 8mm F/1.8 S Mount M12 Lens for cameras such as the Raspberry Pi HQ Camera.
An 8mm S-Mount Lens for Board Mount Cameras
The CommonLands CIL081-F1.8-M12NOIR 8mm M12 lens is pictured with the FLIR IMX226 camera.
$49.00

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
$59.00

Small 2.1mm M12 Lens

CIL821-F2.4-M12AIR

A 2.1mm M12 Lens for 1/3
A 2.1mm M12 Lens for 1/3
Tiny Pinhole Lens for S-Mount Cameras
15mm TTL Short M12 Lens for Surveillance
$39.00

Low Distortion 2.6mm M12 Lens

CIL028-F2.4-M12IR

A wide angle 2.8mm M12 lens no distortion.
A wide angle 2.8mm M12 lens no distortion.
A 2.8mm M12 lens with a wide angle and no distortion for the RPi HQ Camera.
A wide angle no distortion 2.8mm S Mount Lens.
Low Distortion 2.6mm M12 Lens
$39.00

GoPro 3.1mm M12 Lens

CIL331-F2.5-M12A660

3.1mm Wide Angle M12 Lens
3.1mm Wide Angle M12 Lens
3mm S-Mount Lens
3mm M12 Lens
$39.00

190°@9.1mm Fisheye M12 Lens

CIL231-F1.8-M12IR

3mm Mini Fisheye M12 Lens
3mm Mini Fisheye M12 Lens
3mm S Mount Fisheye Lens Raspberry Pi
Miniature Fisheye Lens
3mm Fisheye Lens for M12 Cameras
$79.00

No Distortion 3.3mm M12 Lens

CIL033-F2.6-M12IR

A 3.3mm M12 lens that is wide angle no distortion.
A 3.3mm M12 lens that is wide angle no distortion.
A 3.3mm S Mount lens for the Raspberry Pi High Quality Camera.
A 3mm FLIR camera lens. A wide angle no distortion M12 Lens
3mm S Mount Lens with Arducam
No Distortion 3.3mm M12 Lens
$39.00

Wide-Angle 3.5mm M12 Lens

CIL335-F1.8-M12A660

3.5mm Wide-Angle M12 Lens
3.5mm Wide-Angle M12 Lens
3.5mm Wide-Angle S-Mount Lens
Wide-Angle M12 Lens CIL335
$49.00

Small 3.6mm M12 Lens

CIL036-F2.0-M12IR

Short Compact 3.6mm M12 Lens CIL036
Short Compact 3.6mm M12 Lens CIL036
Compact 3.6mm M12 Lens CIL036
Compact 3.6mm S Mount Lens CIL036
$39.00

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
$39.00
Telephoto 12mm M12 Lens
Telephoto 12mm M12 Lens
Telephoto M12 Lens 12mm
Telephoto 12mm M12 Lens
Telephoto 12mm S-Mount Lens
CIL125-F2.4-M12IR
Telephoto 12mm M12 Lens
$29.00
Fisheye Lens for 1/2.3
Fisheye Lens for 1/2.3
M12 Fisheye Lens for 20MP cameras
195 degree S Mount Lens for AR1820HS
CIL216-F2.0-M12A650
195°@4.7mm Fisheye M12 Lens
$59.00
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-M12A660
185°@8.2mm Fisheye M12 Lens
$49.00
25mm M12 Lens
25mm M12 Lens
25mm S Mount Lens
25mm lens for FLIR Cameras
CIL260-F2.0-M12IR
Telephoto 26mm M12 Lens
$59.00
210deg M12 Mini Fisheye Lens
210deg M12 Mini Fisheye Lens
210deg M12 Fisheye Lens
S mount Fisheye Lens 1mm
CIL211-F2.0-M12IR
210°@3.3mm Fisheye M12 Lens
$49.00
Mini M12 Fisheye Lens for Board Mount Cameras
Mini M12 Fisheye Lens for Board Mount Cameras
S-Mount Fisheye Lens
Arducam Mini Fisheye Lens
Mini Fisheye 1mm M12 Lens
CIL212-F2.0-M12IR
226°@3.9mm Fisheye M12 Lens
$49.00