This Depth of Field calculator provides the lens DOF and includes a hyperfocal distance calculator and f-stop calculator.

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 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/#.

A Camera Depth of Field Calculator. A DoF Calculator for M12 Lenses and CS Mount Lenses.
Camera Dpeth of Field Calculator. A DoF Calculator for M12 Lenses and CS Mount Lenses.

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.

Read Our Camera Calculator & Optics Design Page, or 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 CS Lens or M12 Lens for Your Project

Surveillance 1.1mm M12 Lens

1.1mm M12 Fisheye Lens
1.1mm M12 Fisheye Lens
200deg M12 Fisheye Lens
1.1mm M12 Fisheye Lens
$49.00

All-Sky 1.5mm M12 Lens

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

Fisheye 1.9mm M12 Lens

200° M12 Fisheye Lens
200° M12 Fisheye Lens
200° Mini Fisheye Lens
Mini M12 Fisheye Lens
$49.00

Low Distortion 2.2mm M12 Lens

Low Distortion 2.2mm M12 Lens
Low Distortion 2.2mm M12 Lens
Low Distortion 2.2mm M12 Lens
Low Distortion 2.2mm M12 Lens
$39.00

GoPro 2.8mm M12 Lens

An M12 GoPro Fisheye Lens | 2.8mm M12 Lens
An M12 GoPro Fisheye Lens | 2.8mm M12 Lens
A miniature Rpi wide-angle Lens | A 2.8mm S-mount Lens
A GoPro Fisheye Lens for the Raspberry Pi | A 2.8mm M12 Lens
$39.00

Drone 2.8mm M12 Lens

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.
$39.00

Conferencing 3.3mm M12 Lens

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 3.3mm wide angle no distortion M12 Lens.
$39.00

Conferencing 3.9mm M12 Lens

A 3.9mm M12 lens that is wide angle no distortion.
A 3.9mm 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.
$39.00

Fisheye 2.5mm CS Mount Lens

2.5mm Fisheye CS Mount Lens
2.5mm Fisheye CS Mount Lens
200° CS Mount Lens
2.5mm CS Mount Lens
$99.00

Wide-Angle 3.2mm CS Mount Lens

A 3.2mm CS Mount Lens for a Wide Lens Security Camera
A 3.2mm CS Mount Lens for a Wide Lens Security Camera
The CommonLands CIL03.2-F1.8-CSNOIR 3.2mm EFL lens is pictured with the Raspberry Pi HQ Camera.
The CommonLands CIL03.2-F1.8-CSNOIR 3.2mm EFL lens is pictured next to the Raspberry Pi HQ Camera.
$49.00

5.0mm CS Mount Lens for 12MP

A 5mm CS Mount Lens for CS Mount CCTV Cameras and the Raspberry Pi High Quality
A 5mm CS Mount Lens for CS Mount CCTV Cameras and the Raspberry Pi High Quality
The CommonLands CIL05.0-F2.0-CSNOIR is a 12MP+ wide angle 5.0mm F/2.0 CS-Mount Lens for 12MP+ CS Mount Cameras like the Raspberry Pi HQ.
The CommonLands CIL05.0-F2.0-CSNOIR is a 12MP+ wide angle 5.0mm F/2.0 CS-Mount Lens for 12MP+ CS Mount Cameras.
$49.00

Portrait 8.0mm CS Mount Lens

A 8mm CS Mount Lens for 12MP+ Cameras such as the Raspberry Pi HQ Camera.
A 8mm CS Mount Lens for 12MP+ Cameras such as the Raspberry Pi HQ Camera.
A 8mm CS lens is pictured with the Raspberry Pi HQ Camera.
An 8mm CCTV lens for 1/1.7
$49.00