Lenses for Surveillance: A Machine Vision Guide to Day/Night Security Cameras
Machine vision lens selection for security and surveillance cameras: IR-cut filter switching, 850nm versus 940nm illumination, low-light aperture, fixed versus varifocal, and environmental sealing.
Surveillance lens selection comes down to a few decisions: whether the camera needs day/night IR-cut filter switching, which near-infrared wavelength the illuminator uses, how fast an aperture the low-light budget requires, and how far the farthest target sits. Sensor format and environmental sealing finish the specification, and the fixed-versus-varifocal choice follows from how fixed the mounting distance is.
Most compact IP camera modules use M12 lenses. Installations that need an adjustable iris, longer reach, or larger sensor coverage move to C-mount. Both appear below with real specifications, not detection-range marketing.
What Lens Should I Use for a Day/Night Surveillance Camera?
Use an IR-corrected lens whenever the camera has a mechanical IR-cut filter switcher. During the day the switcher inserts an IR-cut filter so the sensor sees only visible light and colors render correctly. At night it swings the filter out so the sensor can use near-infrared (NIR) illumination for a monochrome image. The lens has to hold focus registration through that transition, or the image softens every time the switcher toggles. Ordinary glass focuses visible and NIR light at slightly different planes. The IR-corrected lens guide covers the fix.
Commonlands stocks IR-corrected M12 lenses built for this. The CIL046 4.4mm M12 lens is RGBIR corrected at F/2.0 for 1/1.7" sensors up to 8MP, with an optional 650nm cut filter. The CIL290 1.9mm M12 fisheye is IR corrected for 1/2.7" sensors up to 5MP, with an optional 660nm cut filter. Both ship with or without the filter installed, so the same optical design supports a fixed-filter build or a switcher-equipped one depending on the part number ordered.
Whether a lens needs IR correction depends on how many bands it serves, not on whether a switcher is present. A daytime-only color camera or a fixed NIR-only night camera each works in one band, so a standard lens holds focus. A dual-band build needs IR correction, whether it reaches both bands through a switcher or through a filterless module that images visible and ambient NIR at once.
Should I Use 850nm or 940nm NIR Illumination?
850nm and 940nm are the two common NIR illumination wavelengths for surveillance, and the choice trades range against covertness. Most CMOS sensors keep meaningfully more quantum efficiency at 850nm, so it gives more usable signal and longer effective range at the same illuminator power. The cost is a faint red glow that a person standing near the light can notice.
940nm is close enough to invisible that most people will not see the illuminator operating, which matters for covert or aesthetically sensitive sites. The tradeoff is that most sensors respond less strongly at 940nm, so range or image quality drops unless the sensor and lens are selected for that wavelength.
The lens's own role is narrow: an IR-corrected lens has to hold focus across whichever band the illuminator uses, and its coating and glass transmission should be checked against that wavelength. A lens validated at 850nm is not automatically corrected at 940nm. The 850nm versus 940nm guide has the sensor-side quantum efficiency comparison.
Range itself is a system calculation, not a lens spec: it depends on illuminator power, beam angle against the lens field of view, sensor sensitivity, and weather. Match the beam angle to the field of view, since a lens wider than the beam leaves its edges dark, and remember that published range figures assume a moderately reflective subject.
What Aperture Is Best for a Low-Light Surveillance Lens?
Run the lens wide open at night, and in daylight stop down only as far as the diffraction ceiling for your sensor's pixel pitch, not to the smallest marked aperture. A faster lens, a lower F-number, collects more light per unit time, which is the main lever for nighttime image quality once illumination power is fixed.
The Commonlands CIL522 12mm C-mount lens has an adjustable iris that opens to F/1.4, so it runs wide open for light throughput at night and stops down in daylight to control glare and extend depth of field. That adjustability is the practical advantage C-mount holds over fixed-aperture M12 outdoors, where illumination is only partly controllable.
The CIL046 ships at a fixed F/2.0, which is fast for a compact board lens but offers no iris ring to trade light throughput for depth of field or glare control after the fact.
Stopping down past a point costs sharpness to diffraction, and on a small-pixel sensor that ceiling arrives around F/5.6 to F/8, earlier still under NIR light. So glare or depth-of-field control in daylight should stop down toward that ceiling, not to the smallest available aperture. The low-light lens guide covers the F-number, throughput, and diffraction relationship.
Aperture is one lever among exposure time and sensor gain. Longer exposure risks motion blur on a moving subject. Higher gain amplifies noise. A faster lens is the only one of the three that costs neither.
Should a Surveillance Camera Use a Fixed or Varifocal Lens?
Fixed focal length lenses are simpler, more compact, and often less expensive, and they are the practical choice once mounting distance and required coverage are known before installation. A camera over a fixed doorway rarely needs its field of view to change after commissioning, so a fixed lens removes a mechanical adjustment and a potential failure point. It also holds a wider maximum aperture than an equivalent varifocal at the same price.
Varifocal lenses let an installer set focal length, and field of view, on site without swapping the optic. That flexibility earns its cost when mounting distance is not final until the installer is on the pole, when one camera model serves several coverage requirements across a large deployment, or when the coverage requirement may change later.
Commonlands' current M12 and C-mount lineup is fixed focal length. If the coverage requirement is well defined, the focal length selection guide is usually the more cost-effective path. The fixed versus varifocal guide covers the full comparison.
Range Versus Coverage: What Distance Can a Lens Actually Resolve?
A wide-coverage lens and a long-range lens solve different problems, and no single lens does both well at the same sensor resolution. Shorter focal lengths capture a wider field but spread pixels across it. Longer focal lengths concentrate pixels onto a narrower scene for more detail at range. Surveillance usually frames this as a pixel-density hierarchy rather than a single field-of-view number:
| Relative pixel density | What a viewer can conclude | Typical use |
|---|---|---|
| Low | Something is present, a moving shape against the background | Wide-area situational awareness |
| Moderate | Object class: a person versus a vehicle versus a foreground object | General monitoring |
| Higher | Distinguishing detail: clothing, vehicle type, gait | Matching a known subject or vehicle against a reference |
| Highest | Fine detail: facial features or license plate characters | Positive identification |
Each tier up the hierarchy roughly multiplies the pixels-per-meter requirement, which shortens usable range at a fixed focal length or forces a longer lens, a higher-resolution sensor, or a shorter working distance. Decide which tier the installation needs at its farthest distance, then size focal length and sensor resolution to hit that pixel density there. Verify the geometry with the field of view calculator.
Treating one camera as capable of every tier across its full field is the common mistake. A wide lens covering an entire lot reaches identification-grade detail only near the center at close range and falls toward detection at the edges. Layouts that pair a wide situational-awareness camera with a longer lens on a chokepoint follow directly from that. Roadway and intersection work is a separate problem with its own telephoto and working-distance needs. See lenses for traffic monitoring.
Matching Sensor Format and Resolution to the Surveillance Lens
For rectilinear lenses, the image circle has to cover the sensor diagonal with margin, or the corners vignette regardless of how well the rest of the specification matches. Fisheye lenses are the exception: a fisheye's circular image is deliberately cropped by the sensor, so its image circle can sit below the diagonal by design.
The CIL046 covers up to 1/1.7" at 8MP, the CIL290 fisheye's 5.8mm image circle pairs with 1/2.7" sensors because of that cropped-circle exception, and the CIL542 covers 1.1" sensors at 25MP.
Resolution and pixel pitch matter independently of physical sensor size. More megapixels on the same sensor means smaller pixels, which raises spatial resolution but shrinks each pixel's light-gathering area, generally raising noise at a given illumination. The lens needs usable MTF at the sensor's Nyquist frequency, or optical blur becomes the limit and the extra megapixels add little. The sensor size and lens compatibility guide covers the vignetting and resolving-power mechanics.
When two image-circle ratings are close, the larger one is the safer default for coverage, but a lens built for a larger format may not resolve a small-pixel sensor's Nyquist frequency, and its chief-ray-angle geometry can mismatch the sensor's microlenses. Verify resolving power and CRA against the specific sensor rather than assuming.
Environmental Sealing for Outdoor Surveillance Cameras
A lens needs its own ingress protection rating only when it is directly exposed to weather rather than sitting behind a sealed housing dome or window. Where a sealed enclosure protects the lens, the enclosure's IP rating governs and the lens rating is secondary. Board-level and open-frame designs, where the front element faces the environment directly, are where a lens-level rating matters.
Commonlands stocks select M12 lenses for direct outdoor exposure. The CIL290 1.9mm fisheye is IP67 rated as well as IR corrected. Not every lens is sealed or coated, and the same optical design sometimes ships in both sealed and unsealed mechanical variants, so verify the specific SKU before a board-level outdoor build.
An IP67 rating covers the lens assembly against dust and temporary immersion. It does not extend to the camera body, connector, or cable unless those are separately rated. Confirm ratings at the system level before committing to a fully exposed mount. The IP rating guide has the full scale, and select C-mount lenses add harsh-environment hardening covered in the ruggedized lens guide.
Top Lenses for Day/Night Surveillance Cameras
For day/night surveillance the lens follows the imaging job: an IR-corrected M12 lens such as the CIL046 when the camera has an IR-cut filter switcher, a fast adjustable-iris C-mount lens such as the CIL522 for low light, and a fisheye such as the CIL290 when one camera has to cover a wide entry. The four below are current Commonlands stock optics.
How we picked: every entry is a shipping Commonlands SKU with specifications published on its product page. EFL and F-number come from those pages. Confirm sensor-format coverage before ordering.
| Scenario | Lens | Mount | EFL | F# | Why this pick |
|---|---|---|---|---|---|
| Day/night with an IR-cut switcher | CIL046 | M12 | 4.4mm | F/2.0 | RGBIR corrected, so it holds focus registration through the visible-to-NIR switch. Covers up to 1/1.7" 8MP sensors. |
| Low light with daytime iris control | CIL522 | C-mount | 12mm | F/1.4 | Adjustable iris opens to F/1.4 at night for light throughput, then stops down by day for glare control and depth of field. |
| Long range, identification-tier detail | CIL542 | C-mount | 12mm | F/2.8–F/16 | 25MP class on 1.1" sensors puts more pixels on a distant subject. IR corrected for day/night operation. |
| Wide-area single-camera coverage | CIL290 | M12 | 1.9mm | F/2.2 | 190° fisheye for doorway and entry cameras. IR corrected with an optional 660nm cut filter, IP67 rated. |
EFL and F-number values are from the current product pages. Verify coverage on your sensor first.
Frequently asked questions
What lens should I use for a day/night surveillance camera?
Use an IR-corrected lens if the camera has a mechanical IR-cut filter switcher, since the lens must hold focus registration in both the visible-only daytime state and the NIR-inclusive nighttime state. The CIL046 4.4mm M12 lens and CIL290 1.9mm M12 fisheye are both IR corrected with an optional 650nm/660nm cut filter for this purpose. Without a switcher, a fixed IR-cut or IR-pass configuration is set at build time instead.
Should I use 850nm or 940nm NIR illumination for a security camera?
850nm gives more sensor signal and longer effective range but produces a visible dim red glow from the illuminator. 940nm is functionally invisible to the human eye but most sensors are less sensitive at that wavelength, so range and image quality typically drop unless the sensor and lens are specifically matched to 940nm. Choose 850nm when detection range matters most and covert illumination is not a requirement.
What aperture is best for a low-light surveillance lens?
A faster (lower F-number) lens collects more light per unit time, which matters most at night when illumination is limited. The CIL522 12mm C-mount lens has an adjustable iris that opens to F/1.4, letting the same lens run wide open at night and stop down for depth of field and glare control in daylight. M12 low-light options such as the CIL046 ship at a fixed F/2.0, which is fast but not adjustable.
Should a surveillance camera use a fixed or varifocal lens?
Fixed focal length lenses are simpler, more compact, and often less expensive, and they are the practical choice once the mounting distance and required coverage are known and stable. Varifocal lenses let an installer adjust field of view on site without swapping optics, which is useful when mounting distance is not finalized until installation or the coverage requirement may change later.
Does a surveillance lens need to be IP67 rated?
Only if the lens itself is directly exposed to the elements rather than sitting behind a sealed camera housing dome or window. The Commonlands CIL290 1.9mm M12 fisheye carries an IP67 rating for direct outdoor exposure. Most of the catalog carries neither. If the lens sits behind a properly sealed enclosure, the enclosure's rating governs and the lens rating matters less.
Need help specifying a lens for a surveillance camera?
Commonlands engineering can work through IR correction, NIR wavelength matching, aperture, and sensor format before you commit to hardware.



