Machine vision lenses for security

Surveillance camera lenses

Machine vision lenses 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 four decisions: whether the camera needs day/night IR-cut filter switching, which NIR wavelength the illuminator uses, how fast an aperture the low-light budget requires, and whether the mounting distance is fixed at install time. Most compact IP camera modules use M12 lenses; installations that need an adjustable iris for glare control, longer reach, or larger sensor coverage move to C-mount. Both mount types appear here with real specifications, not marketing claims about detection range.

M12 + C-mount Mount formats
F/1.4–F/16 Aperture range
IP67 / IP69K Outdoor sealing
An outdoor security camera with a fixed M12 lens mounted on a building at dusk

Top lenses for day/night surveillance cameras

Each row is sorted by the one decision that drives it in a security build: switcher compatibility, aperture, pixels on target, coverage angle, or sealing. EFL and F-number values come from the current product pages, not from detection-range marketing. Confirm sensor-format coverage against your sensor 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–F/16 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.
Direct outdoor board-level mount CIL948 M12 4.8mm F/2.0 IP67 with a hydrophobic front element for builds where the lens itself faces the weather. Pair it with wide-coverage roles, not identification detail at range.

EFL and F-number values are from the current product pages. Verify coverage on your specific sensor with the field of view calculator, and size focal length with the focal length selection guide.

Scenario-matched picks

Every entry is a shipping Commonlands SKU with specifications published on its product page. Each is matched to the surveillance scenario it fits best.

190°@5.7mm Fisheye M12 Lens

190°@5.7mm Fisheye M12 Lens

$29.00

Download .STPView Product
5mm M12 Lens for IMX334

IR Corrected 4.4mm M12 Lens

$79.00

Download .STPView Product
35mm M12 Lens

Telephoto 35mm M12 Lens

$59.00

Download .STPView Product
200° M12 Fisheye Lens

200°@6.3mm Fisheye M12 Lens

$79.00

Download .STPView Product

Browse Surveillance

How to specify a surveillance camera lens

Get four decisions right and the fixed-versus-varifocal and mount-format choices follow directly: day/night IR-cut switching, NIR wavelength, low-light aperture, and whether mounting distance is fixed at install time.

Day/night imaging and IR correction

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 low-light image. The lens has to hold focus registration through that transition, or the image goes soft every time the switcher toggles.

Commonlands stocks IR-corrected M12 lenses built for exactly this: the CIL046 4.4mm M12 lens is RGBIR-corrected at F/2.0 for 1/1.7" sensors up to 8MP, and the CIL290 1.9mm M12 fisheye is IR corrected with an optional 660nm IR-cut filter variant for 1/2.7" sensors up to 5MP. Both ship in versions with and without the cut filter installed.

Why focus shift happens without IR correction

Ordinary glass has different refractive index at visible wavelengths than at NIR wavelengths, so a lens optimized only for visible light forms its sharpest image at a slightly different plane once NIR light dominates the scene. An IR-corrected lens design compensates the glass prescription so the focus plane stays consistent across both bands. See the IR-corrected lens guide and the day/night filter-switcher detail in the bandpass filter guide for the full mechanism.

If the deployment has no switcher (a fixed daytime-only color camera, or a fixed NIR-only night camera), a standard non-IR-corrected lens is adequate, since the design is optimized for a single band and never has to cross over. Bench-testing a day/night build should exercise both the daytime (IR-cut) and nighttime (NIR) states rather than relying on a single static focus check under one lighting condition.

850nm versus 940nm NIR illumination

850nm and 940nm are the two common NIR illumination wavelengths for surveillance, and the choice trades range against covertness. 850nm illuminators produce a faint visible red glow, but most CMOS sensors retain meaningfully more quantum efficiency at 850nm than at 940nm, which translates to more usable signal and often longer effective range at the same illuminator power. 940nm is close enough to invisible that most people will not notice the illuminator operating, but the sensor typically responds less strongly, and image quality or range drops unless the sensor and lens are specifically selected for 940nm sensitivity.

The lens's role here is narrower than illumination selection itself: an IR-corrected lens needs to hold focus across whichever NIR band the illuminator uses, and the lens coating and glass transmission should be checked against that specific wavelength rather than assumed. A lens validated for 850nm performance is not automatically equally corrected at 940nm. See the 850nm versus 940nm guide for the sensor-side quantum efficiency comparison.

Practical default

Choose 850nm when maximum detection range and image quality are the priority and a faint illuminator glow is acceptable. Choose 940nm when the installation requires the illuminator to be effectively unnoticeable, and confirm the sensor datasheet's quantum efficiency at 940nm before committing, since it varies significantly between sensor models.

Low-light aperture selection

A faster lens, meaning a lower F-number, collects more light per unit time at a given exposure and gain setting, which is the main lever available for nighttime image quality once illumination power is fixed. The CIL522 12mm C-mount lens ships with an adjustable iris from F/1.4 to F/16, so the same lens runs wide open at F/1.4 for maximum light throughput at night and can stop down in daylight to control glare and extend depth of field. M12 low-light options are fixed at a single aperture set at manufacture; the CIL046 ships at a fixed F/2.0.

Image-plane illuminance ∝ 1 / F#² Going from F/2.8 to F/1.4 is a two-stop change and roughly quadruples the light reaching the sensor at the same exposure time, holding all else constant.

Stopping down has its own cost that grows with F-number: diffraction. At 550nm visible light, the Airy disk diameter at F/8 is roughly 10.7µm, and at F/11 roughly 14.8µm; under 850nm NIR illumination both diameters grow by roughly 1.5 times. That is already 2.5 to 3.5 times the CIL522's 4.2µm pixel pitch, well past the point where the aperture itself is limiting resolution. In practice, small-pixel C-mount surveillance lenses hit the diffraction ceiling around F/5.6 to F/8, and glare or depth-of-field control in daylight should stop down only as far as that ceiling allows, not to the smallest available aperture. See the low-light lens selection guide.

Fixed versus varifocal

Fixed focal length lenses are the simpler, more compact, and often less expensive option, and they are the practical choice once mounting distance and required coverage are known before installation. A camera mounted at a fixed height over a fixed doorway rarely needs the field of view to change after commissioning, so a fixed lens removes a mechanical adjustment and a potential failure point.

Varifocal lenses let an installer adjust focal length, and therefore field of view, on site without swapping the optic. That flexibility earns its cost when the exact mounting distance is not finalized until the installer is on the roof or pole, or when the coverage requirement itself may change after commissioning. Commonlands' current M12 and C-mount lineup is fixed focal length. For the full comparison, see the fixed versus varifocal lens guide.

Range versus coverage

A wide-coverage lens and a long-range lens solve different problems, and no single lens does both well at the same sensor resolution. Wider focal lengths capture more scene width but spread the sensor's pixels across that wider scene, reducing pixels on any one target. Longer focal lengths concentrate pixels onto a narrower scene, improving resolvable detail on a distant target at the cost of overall coverage.

Working the numbers

The same rectilinear relationship used throughout machine vision applies directly: EFL = (working distance × sensor width) / scene width. This linear form holds when the working distance is much longer than the focal length, as it is in typical surveillance mounting. This formula excludes fisheye lenses such as the CIL290: a 190° fisheye's coverage follows the lens's own distortion mapping instead. Verify the geometry for a specific installation with the field of view calculator.

Decide which tier of detail the installation actually needs at the farthest distance in the coverage plan, then size focal length and sensor resolution to hit that pixel density at that distance, rather than picking a focal length first and hoping detail follows. Multi-camera layouts that pair one wide-coverage camera with one or more longer-focal-length cameras aimed at specific chokepoints are a direct consequence: the wide camera handles situational awareness, and the narrower camera handles the tier that actually requires identification-grade detail.

Sensor format and resolution matching

For rectilinear lenses, the image circle has to cover the sensor diagonal with margin, or the image vignettes at the corners 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 rather than sized to clear the diagonal. Common surveillance sensor formats range from 1/2.9" to 1/1.7" in compact IP camera modules using M12 optics, and up to 2/3" or 1.1" in higher-resolution C-mount builds. The CIL046 covers up to 1/1.7" at 8MP, the CIL290 fisheye's 5.8mm image circle pairs with 1/2.7" sensors, and the CIL542 covers 1.1" sensors at 25MP with 2.5µm pixel pitch.

The lens has to resolve at least as finely as the sensor's pixel pitch, or the optical blur becomes the limiting factor and the extra megapixels add little usable detail. When in doubt between two adjacent lens image-circle ratings, the larger one is the safer default for coverage, but resolving power and CRA compatibility against the specific sensor still need to be verified, not assumed. See the spatial resolution guide and the sensor size and lens compatibility guide.

Environmental sealing for outdoor cameras

A lens needs its own ingress protection rating only when it is directly exposed to weather rather than sitting behind a sealed camera housing dome or window. Board-level and open-frame designs, where the lens front element faces the environment directly, are where a lens-level rating matters on its own. Commonlands stocks select M12 lenses rated for direct outdoor exposure: the CIL290 is IP67 rated in addition to being IR corrected, and the CIL948 combines an IP67 rating with a hydrophobic front-element coating that sheds rain.

Rating scope

An IP67 rating on the lens covers the lens assembly itself against dust and temporary water immersion. It does not extend to the camera body, connector, or cable unless those are separately rated. Confirm ratings at the system level, not just the lens level, before committing to a fully exposed outdoor mount. See the IP rating guide and the ruggedized lens guide.

Not sure which lens?

Send us your sensor datasheet and mounting geometry. We'll work through IR correction, NIR wavelength, aperture, and sensor format before you commit to hardware.

Contact engineering

Frequently asked questions

What engineers ask most when specifying a lens for a security camera

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 offers F/1.4 to F/16 adjustable aperture, 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.

How does distance affect what a surveillance lens can resolve?

Resolving a face or a license plate at longer range needs more pixels on target, which means either a longer focal length, a higher-resolution sensor, or a shorter working distance. A wide-coverage lens that frames an entire parking lot will show a person as a recognizable shape but not resolve fine facial detail at the same distance a narrower, longer lens would provide with the same sensor.

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. Select Commonlands M12 lenses such as the CIL290 carries an IP67 rating and the CIL948 an IP67 rating for direct outdoor exposure. If the lens sits behind a properly sealed enclosure, the enclosure's rating governs and the lens rating matters less.

Can I use an M12 lens for a surveillance camera, or do I need C-mount?

M12 lenses are common in surveillance because they are compact, inexpensive, and cover the sensor formats used in most IP camera modules. C-mount is worth choosing when the application needs an adjustable iris for glare and depth-of-field control, longer focal length reach for a distant target, or larger sensor coverage than typical M12 image circles support.

What is the difference between a surveillance lens and a traffic monitoring lens?

Surveillance covers general security imaging: entryways, perimeters, indoor and outdoor facilities, and general-purpose IP cameras, typically at shorter working distances and with a wide range of sensor formats. Roadway and intersection traffic monitoring is a distinct application with its own working-distance and telephoto requirements. See lenses for traffic monitoring for that scope specifically.

Does a surveillance lens need to be IR corrected if there is no NIR illuminator?

Not necessarily. IR correction addresses focus shift between visible and near-infrared light, which only matters when the camera actually operates in both bands, typically through a day/night IR-cut filter switcher paired with NIR illumination at night. A daytime-only color camera with no NIR illuminator and no switcher does not need IR correction, since the lens only ever operates in one band.

What sensor format should I use for a surveillance camera lens?

For rectilinear lenses, match the lens image circle to the sensor diagonal with margin, not less. Common surveillance sensor formats range from 1/2.9" to 1/1.7" for compact M12-based IP cameras, and up to 2/3" or 1.1" for higher-resolution C-mount builds. Oversizing the image circle is safe with respect to vignetting and coverage; still verify resolving power and CRA against the sensor, since a lens built for a larger format may not resolve a small-pixel sensor's Nyquist frequency or match its microlens geometry. Fisheye lenses such as the CIL290 are exempt from this rule. See the sensor size and lens compatibility guide for vignetting and coverage mechanics.

How much does stopping down help with headlight or streetlight glare at night?

Stopping down the aperture reduces the peak intensity reaching the sensor from a bright point source such as a headlight or streetlight, which reduces blooming and flare in the frame. It also increases depth of field. The tradeoff is more than just needing extra scene illumination: stopping down also worsens diffraction, and on a small-pixel sensor that ceiling can arrive by F/5.6 to F/8, so an adjustable iris on a C-mount lens should be used to find the best balance point, not simply closed down as far as it goes.

Need help specifying a lens for a surveillance camera?

Commonlands engineering can work through IR correction, NIR wavelength matching, aperture, and sensor format with you before you commit to hardware. Single-lens samples ship same day. No minimum order.