Machine Vision Optics Guide

What Is an M12 Lens? S-Mount Definition, M12 x 0.5 Thread, and Selection Guide

M12 x 0.5 thread, S-mount naming, sensor coverage, lens holders, and all-glass vs hybrid construction in one selection guide.

By Commonlands engineering team · Updated July 2026 · 18 min read

A lineup of M12 lenses across focal lengths beside a board-level camera PCB

An M12 lens (also called an S-mount lens or board camera lens) is a compact camera lens with an M12 x 0.5 thread. The "M12" means 12mm nominal thread diameter; "0.5" means 0.5mm thread pitch. M12 lenses screw directly into a camera holder and have no fixed flange distance. Focus is set by threading the lens in or out, then locking it.

M12 optics are everywhere nowadays: in cars, retail checkout QR scanners, surveillance cameras, robots, medical devices, and almost anywhere a smart device needs to see. If you are comparing M12 lens vs C-mount: M12 wins for compactness and board-level integration; C-mount wins for larger sensors and standardized flange distance.

What is an M12 lens?

An M12 lens is a miniature camera lens with a 12mm diameter threaded mount and 0.5mm thread pitch. The mount screws directly into a lens holder on a camera module or PCB. M12 lenses are the standard optic for embedded vision systems because they weigh grams instead of tens of grams and cost less than larger industrial formats.

An M12 lens is also known as an S-mount lens. These lenses come in a wide spread of specifications and sizes, which gives engineers a practical way to customize miniature cameras around the actual requirement and CMOS sensor selection. The spec spread is wide: field of view, MTF, F#, distortion, ingress protection, barrel material, chief ray angle, filters, holder geometry, and the boring-but-critical question of whether the lens physically clears the enclosure.

Unlike C-mount lenses, M12 lenses have no standardized flange focal distance. Each lens is designed with its own back focal length, and focus is adjusted by threading the lens closer to or further from the sensor. Once focused, the lens is locked with a set screw, adhesive, or thread locker.

M12 lens holder assembly machine threading lenses into camera modules
M12 lens and holder assembly: the lens threads directly into the holder over the sensor.

The Commonlands M12 lens collection includes options from 0.8mm (fisheye) to 100mm telephoto, covering sensor formats from 1/6" through 1/1.6". If you are new to lens mounts, the lens mount guide explains the mechanical differences across M12, CS-mount, and C-mount.

Gloved hands threading an M12 lens into a holder above a bare CMOS sensor
An M12 lens focuses by threading in or out of its holder.

What does M12 x 0.5 mean?

"M12 x 0.5" is the thread specification for the lens mount: M12 means the nominal major diameter of the thread is 12mm, and 0.5 means the thread pitch is 0.5mm, the distance between adjacent thread peaks. The spec follows the ISO metric screw thread standard and defines the mechanical interface only.

  • M12 = 12mm nominal major diameter of the thread
  • 0.5 = 0.5mm thread pitch (distance between adjacent thread peaks)

The thread spec says nothing about optical performance, focal length, sensor coverage, or image quality. Those are determined by the lens design itself.

M12 lens thread geometry diagram showing M12 x 0.5 S-mount thread
M12 x 0.5 thread geometry: 12mm major diameter with 0.5mm pitch.
M12 lens thread diameter and thread tolerance reference table
Thread diameter and tolerance reference for M12 (S-mount) lenses.

There are other "M" threaded miniature lenses too, especially M7 and M8. The difference between an M8 lens and an M12 lens is simple at the thread: an M8 lens has an 8mm diameter thread, where the M12 lens has a 12mm diameter thread. The smaller mount can help when the camera has almost no room, but it also limits the optical package. The deeper comparison lives in the M8 vs M12 lens comparison.

For focal length calculations, use the EFL calculator. For depth of field planning, use the depth of field calculator.

What is an S-mount lens?

An S-mount lens is the same lens as an M12 lens. S-mount describes the mount style; M12 describes the thread (M12 x 0.5). "Board lens" and "board camera lens" are additional synonyms used in camera module documentation. All four names refer to compact threaded lenses with no standardized flange focal distance.

Suppliers use the labels interchangeably, so when evaluating datasheets the important check is the actual thread specification (M12 x 0.5) and whether the image circle covers your sensor diagonal. The label on the package matters less than the mechanical and optical specs.

Name What it refers to Key mechanical fact
S-mount The mount style M12 x 0.5 thread; no standardized flange focal distance
M12 The thread size 12mm nominal thread diameter, 0.5mm pitch
Board mount / board lens The mounting method Screws into a holder attached to the camera PCB; focus locked mechanically

The defining mechanical difference from the larger mounts is flange distance. C-mount lenses focus at a fixed 17.526mm flange focal distance and CS-mount at 12.526mm; every lens for those mounts is designed around that number. S-mount has no equivalent standard. Each lens carries its own back focal length, and two S-mount lenses with the same focal length can sit at different depths in the same holder. The holder and the focus lock are part of the optical system, not accessories. The C-mount lens guide covers the fixed-flange side, including its CS-mount section.

S-mount is not shorthand for cheap wide-angle board optics. The catalog runs from 0.8mm fisheye through 100mm telephoto, including 200° fisheye designs, low-distortion rectilinear lenses, IR-corrected optics, and resolutions up to 20MP. The wide-angle reputation comes from early embedded camera modules, not from the mount standard itself.

Datasheet shortcut

If the thread specification reads M12 x 0.5, it is the same mechanical format regardless of whether the listing says S-mount, M12, board lens, or board mount.

What is an M12 lens used for?

M12 lenses appear in autonomous robots, drones, factory machine vision nodes, smart traffic cameras, medical devices, and consumer camera modules. Any smart device that needs to see and has board-level packaging constraints is a candidate. Field of view, resolution, and ingress protection vary widely across the catalog, so the application defines the lens, not the mount.

  • Autonomous mobile robots and warehouse AMRs (navigation, obstacle detection)
  • Factory machine vision nodes (barcode reading, presence detection, inspection)
  • Drones and UAVs (payload cameras where mass budget is tight)
  • Smart traffic and parking cameras (compact outdoor enclosures)
  • Medical and handheld devices (short optical stacks, cost sensitivity)
  • Consumer electronics and webcams (compact camera modules)

For FOV planning before selecting focal length, use the camera field of view calculator and angle of view calculator.

That is why one "M12 lens" can mean a tiny wide-angle lens for close-range QR scanning, a low-distortion 6mm lens for measurement, a sealed IP67 barrel for outdoor sensing, or an IR-corrected telephoto lens looking across a longer working distance. The mount is the common mechanical interface. The optical design still has to match the job. The lenses for embedded vision guide and the robotics lens guide cover application-specific selection in more depth.

What sensor sizes work with M12 lenses?

Most M12 lenses support sensor formats from 1/6" through 1/1.8". Some models extend coverage to 1/1.7" or even 1/1.6". The lens image circle must be larger than the sensor diagonal. If the image circle is too small, you get vignetting (dark corners) and soft edges.

Beyond image circle, check chief ray angle (CRA) compatibility. Modern CMOS sensors with microlenses have CRA requirements. Mismatched CRA causes color shading and reduced corner response. See the chief ray angle and mismatch guide for details.

M12 lens resolution can range from VGA to 20MP depending on its as-designed optical prescription and as-manufactured opto-mechanical tolerances. The megapixel number is not a decoration on the datasheet; it is a promise about contrast at spatial frequency across a specified format. If your sensor is high resolution, read the megapixel lens resolution guide before assuming any 20MP label will hold up in the corners.

For sensor dimension reference, use the image sensors database and CMOS sensor size guide.

M12 lens vs C-mount: which should you choose?

Use M12 when size, weight, cost, or board-level integration are priorities. Use C-mount when you need larger sensor coverage, heavier optical groups with an adjustable iris, or a fixed standardized flange distance of 17.526mm. CS-mount shares the C-mount thread at a shorter 12.526mm flange and sits between the two in size.

Parameter M12 / S-mount C-mount CS-mount
Thread specification M12 x 0.5 1"-32 UN 1"-32 UN
Flange focal distance No standard (varies by lens) Fixed at 17.526mm Fixed at 12.526mm
Focus method Thread the whole lens in/out, then lock Cam-driven focus ring or back-focus adjustment Focus ring or back-focus adjustment
Iris control Typically fixed aperture (no iris ring) Adjustable iris ring on many lenses Some lenses have an iris
Typical lens mass 3-15 grams 50-200 grams 30-100 grams
Typical sensor coverage Up to 1/1.8" (select designs 1/1.7"–1/1.6") Up to 1" or larger ~2/3"
Focal length range 0.8mm-100mm 2.8mm-100mm+ ~2.5mm-16mm typical
Best for Embedded, drones, robotics, compact sensors Industrial inspection, larger sensors ITS, security, Raspberry Pi HQ
The focus mechanism differs, not only the size

A C-mount lens focuses through an internal cam that moves lens groups relative to each other, rebalancing aberrations across the focus range (Kingslake, Lens Design Fundamentals, 2nd ed.). An M12 lens is a rigid assembly: threading it in or out moves the entire lens, with no internal aberration rebalancing. The two mounts behave differently at short working distances for this reason.

For detailed mount comparisons, see the lens mount guide: M12 vs C-mount vs CS-mount. Browse C-mount lenses for larger-format options.

How do you choose an M12 lens holder?

An M12 lens holder is selected on four parameters: hole spacing (18mm, 20mm, or 22mm center-to-center on the PCB), holder height (the lens mechanical back focal length must fall within the thread adjustment range), material (PC, LCP, or aluminum), and screw type (M1.6, M1.7, or M1.8). Height is the parameter most people get wrong.

The holder provides the M12 x 0.5 threaded bore, screws to the camera board over the sensor, and sets the starting distance between board and lens. If the holder is too short, the image plane falls behind the sensor and the lens cannot reach infinity focus. If it is too tall, the lens bottoms out mechanically before reaching infinity. Check the lens datasheet for the mechanical back focal length (MBFL) before ordering; note that not every datasheet publishes it.

MBFL = holder height − thread insertion depth MBFL = mechanical back focal length, measured from the lens's rear mechanical reference surface to the image plane, from the lens datasheet. Threading the lens further into the holder increases insertion depth and moves the lens rear surface closer to the sensor; threading it out does the reverse. The M12 x 0.5 thread moves the lens 0.5mm per full turn, and the usable focus travel depends on the thread engagement length of the specific lens and holder, commonly a few millimeters, so the holder height does not need to match MBFL exactly. It needs to be within the adjustment range.
Criterion What to check Common values
Hole spacing Center-to-center distance between the two PCB mounting holes 18mm, 20mm (e-con Systems, Raspberry Pi HQ), 22mm
Holder height Lens MBFL falls within the installed thread adjustment range 7.4mm, 7.9mm, 10mm, 12mm, 14mm
Material Thermal environment and sealing requirement Black PC (prototyping), LCP (thermal cycling), aluminum (IP-rated builds)
Screw type Thread-forming screw matches the PCB hole diameter M1.6, M1.7, M1.8

Black PC is fine for prototyping and absorbs stray light. LCP (liquid crystal polymer, commonly glass-fiber filled) holds its dimensions better across temperature swings, which matters because holder drift translates directly to focus shift. Aluminum is the practical choice for sealed assemblies; the IP rating guide explains when IP67 or IP69K construction is required. Avoid 3D-printed holders in production; dimensional accuracy varies too much to guarantee MBFL matching.

Commonlands M12 lens holders

All holders below use the M12 x 0.5 thread and are $4.50 each; lens not included. See the product pages for mechanical drawings.

Holder Height Hole spacing Material Screw Best for
CLA020 10.0mm 20mm Black PC M1.6 General purpose, prototyping
CLA021 7.4mm 20mm LCP M1.7 Low-profile builds, thermal stability
CLA022 7.9mm 22mm Black PC M1.8 Low-profile, 22mm-spaced boards
CLA024 12.0mm 22mm LCP M1.7 Longer MBFL lenses

Focus locking

An M12 lens that is focused but not locked will drift under vibration. Three methods are in common use: a lock ring that clamps against the holder face (re-focusable, good for development and field adjustment), thread adhesive such as Loctite 222 or 243 (the standard production method: apply to the threads, set final focus, allow the cure, then verify at end-of-line QC), and a set screw, which works but can introduce tilt if overtightened. Once medium-strength threadlocker cures, rework requires heat, so focus must be confirmed before the cure completes.

Adapters and motorized mounts

To run an M12 lens on a C-mount or CS-mount camera, the M12-to-CS adapter ($12.00) threads into the camera body and provides an internal M12 thread with a focus lock ring. The adapter adds optical path length, so verify the lens MBFL against the combined depth. For boards that ship with an M12 holder, the CLA811 M8-to-M12 adapter lets you mount smaller M8 x 0.5 lenses in the M12 bore, with the same depth caveat.

For remote or closed-loop focus, the CLA322 piezoelectric mount provides USB-controlled focus positioning and holds position with no power applied. The CLA321 voice coil mount responds quickly to analog drive for continuous autofocus but requires power to hold position. Both accept standard M12 x 0.5 lenses; check the mounting hole pattern against your board before ordering (the CLA321 uses 23.5mm hole spacing).

Procurement note

Non-standard hole spacing, non-standard heights, and aluminum construction for IP-rated assemblies are available as custom holders for production quantities. Contact Commonlands engineering with your board drawing.

How do you focus an M12 lens?

An M12 lens is focused by threading the entire lens in or out of its holder while watching a live image, then locking the barrel once the target distance is sharp. There is no focus ring: the M12 body is rigid, and the thread itself is the focus mechanism.

  1. Mount the camera at your working distance with a live image displayed.
  2. Thread the M12 lens into the holder until an image appears on the sensor.
  3. Continue threading in or out while watching center and edge sharpness.
  4. Once sharp at your target distance, lock the lens with the set screw or apply thread locker.
  5. Re-verify focus after thermal cycling or vibration testing.

The focus position depends on working distance. Lenses focused at infinity will be soft at close range and vice versa. For a detailed procedure, see how to focus a camera.

M12 threaded lenses can also be a starting point to prototype for higher-precision active alignment cameras. In that workflow, the M12 build proves the sensor, electronics, field of view, illumination, and basic optical requirement first. If the application then needs tighter corner performance, tilt control, or production repeatability, the next step may be a multi-DOF lens-to-sensor alignment process. The sensor alignment guide explains what changes when the lens is actively aligned instead of simply threaded and locked.

All-glass vs hybrid M12 lenses: which construction do you need?

An all-glass M12 lens uses only glass optical elements; a hybrid glass-plastic lens mixes glass with molded polymer elements. All-glass construction holds focus more consistently across temperature because glass has lower thermal expansion and a more stable refractive index. Hybrid construction costs and weighs less. The operating environment decides which you need.

Construction shows up on spec sheets as element notation. "8G" means eight glass elements: all-glass. "2G4P" means two glass and four plastic elements: hybrid. If a datasheet omits construction, ask the supplier; at low price points hybrid is very common. Molded plastic aspheres are not a shortcut. They achieve surface shapes that are expensive to grind in glass and enable good aberration correction at lower cost. The difference that matters is thermal behavior, not baseline image quality.

Two material properties drive focus shift in hybrid designs. Optical polymers have a higher coefficient of thermal expansion (CTE) than glass, so element shapes and spacings change more per degree. They also have a larger refractive index temperature dependence (dn/dT), so each element's optical power changes more as temperature moves. Both effects increase the magnitude of thermal focus shift; the direction depends on the sign and placement of the polymer elements in the specific design, so a hybrid lens focused at room temperature drifts off its plane of best focus as temperature departs from the set point. Glass is more stable on both counts, and all-glass designs paired with aluminum barrels can be athermalized so the residual thermal effects partially cancel.

Sensor resolution sets how much focus shift you can tolerate. At 12MP and 1.55μm pixel pitch, a small shift can push the image out of the acceptable sharpness range before the temperature change is otherwise noticeable. At 6MP to 10MP and 1.85μm or larger pitch, the depth of focus budget is looser, which is why hybrid lenses remain practical for many indoor systems.

Construction Choose it when Main compromise
All-glass, all-metal Outdoor, vehicle, or thermally cycled deployments; high-resolution sensors with small pixels, where the depth-of-focus budget is tight; no re-focus access after installation Higher cost, a few grams heavier
Hybrid glass-plastic Temperature-controlled indoor environments; lower-resolution or larger-pixel sensors with a looser depth-of-focus budget; cost- and weight-constrained builds More focus shift with temperature
The cost of getting construction wrong

Choosing hybrid for an outdoor system and then discovering seasonal focus shift is expensive: accept degraded images, re-engineer the housing to allow re-focus, or replace the lenses. Any of these paths adds cost and schedule risk late in a program. Match construction to the deployment environment, not the lowest unit price.

High resolution M12 Fisheye lens

191°@6.4mm Fisheye Lens

$70.00

Download .STPView Product
DSL210 DSL224 2mm S-Mount Lens IMX335 Framos

190°@6.8mm Fisheye M12 Lens

$49.00

Download .STPView Product
Basler Dart Camera IP67 M12 Lens

No Distortion 3.2mm Lens

$39.00

Download .STPView Product
Wide-Angle 4mm M12 Lens

Wide-Angle 4mm M12 Lens

$99.00

Download .STPView Product

Browse M12 Lenses (S-Mount Lenses) for Embedded Machine Vision

Validate either construction the same way: fix a resolution target at the working distance, cycle the assembly across the full operating temperature range, and confirm sharpness stays acceptable. Focus shift depends on the lens, sensor, and housing together, so do not rely on datasheets alone. For deployments that also involve shock, vibration, or ingress, see the ruggedized lens guide and the IR-corrected lens guide if the system images near-IR light.

How do you choose the right focal length?

Focal length determines field of view: shorter focal lengths give wider views, longer focal lengths narrow the view and magnify the scene. The right choice follows from sensor width, working distance, and required scene coverage, which is why focal length is calculated from those three numbers, not guessed.

EFL = (WD × sensor width) / FOV width Close approximation for rectilinear lenses when the working distance is much larger than the focal length, which holds in most machine vision setups; at short working distances use the field of view calculator instead. WD = working distance from the front of the lens to the object; sensor width and FOV width in the same units. For fisheye and strong wide-angle lenses, use a distortion-corrected field of view calculator instead.
CIL219 1.9mm fisheye M12 lens with 200 degree field of view
Focal length sets the view: the CIL219 1.9mm fisheye covers 200°, while a 25mm telephoto gives a narrow field at long working distances.
  1. Identify your sensor width from the sensor database.
  2. Define how wide a scene you need to capture at your working distance.
  3. Use the focal length calculator to estimate the required EFL.
  4. Verify the result with the field of view calculator.
  5. Consider distortion: wider lenses tend to have more barrel distortion unless they are specifically designed as low-distortion rectilinear types. If distortion matters, review the distortion guide.

For example, a 2.6mm low-distortion M12 lens is useful when you need a wide field but cannot tolerate a fisheye-looking image. A 6mm no-distortion or low-distortion lens is the safer middle ground for many barcode, robotics, and inspection cameras. A 25mm IR-corrected M12 lens is a different animal: narrow field, longer working distance, and better behavior when the system sees both visible and near-IR light.

For lens selection guidance, contact Commonlands engineering with your sensor model and application requirements.

Top 5 M12 lenses for machine vision

The best M12 lens for machine vision depends on sensor format and working distance, so no single part number wins every build. For most 1/1.8" to 1/1.7" embedded cameras a 6mm low-distortion lens (CIL059) is the general-purpose starting point, with an 8mm all-glass lens (CIL085) for tighter distortion, a 200-degree fisheye (CIL219) for wide coverage, and a 25mm IR-corrected lens (CIL250) for long standoff. All five below ship same day from San Diego on orders placed before 12 PM PST.

How we picked

We ranked in-stock Commonlands M12 lenses by how broadly they fit common machine vision sensor formats and working distances, then kept one lens per optical role: general purpose, low distortion, wide fisheye, telephoto, and lightweight budget. Every figure in the table comes from the published product datasheet, not an estimate. Use the EFL calculator and field of view calculator to confirm a lens against your own sensor before ordering.

Rank Lens EFL F# Sensor format coverage Best for
1 CIL059 5.9mm F1.7 (F2.8/F4/F5.6 variants) Up to 1/1.7" General machine vision, barcode reading, IP67 outdoor option
2 CIL085 8.2mm F2.3 1/1.8" (8.9mm image circle) Low distortion (-0.9%), 12MP resolution, embedded stereo, all-glass thermal stability
3 CIL219 1.9mm F2.5 200-degree fisheye (6.3mm image circle) Wide-area coverage, AMR navigation, IP67 sealed barrel
4 CIL250 25mm F2.0 1/1.7" Long working distance, day and night NIR imaging
5 CIL083 8.0mm F2.8 1/1.8" (9.0mm image circle) Lightweight (4g), cost-sensitive indoor builds

CIL085 and CIL083 sit at the same 8mm focal length but different construction: the all-glass CIL085 holds focus across temperature, while the hybrid CIL083 trades some thermal stability for lower weight and cost. The all-glass vs hybrid comparison above covers when that difference matters. Check the lens image circle against your sensor diagonal in every case.

High resolution M12 Fisheye lens

191°@6.4mm Fisheye Lens

$70.00

Download .STPView Product
DSL210 DSL224 2mm S-Mount Lens IMX335 Framos

190°@6.8mm Fisheye M12 Lens

$49.00

Download .STPView Product
Basler Dart Camera IP67 M12 Lens

No Distortion 3.2mm Lens

$39.00

Download .STPView Product
Wide-Angle 4mm M12 Lens

Wide-Angle 4mm M12 Lens

$99.00

Download .STPView Product

Browse M12 Lenses (S-Mount Lenses) for Embedded Machine Vision

M12 lens suppliers compared: manufacturers vs resellers

Most companies selling M12 (S-mount) lenses are resellers of Chinese OEM production, not manufacturers. Of the suppliers engineers run into most, only Edmund Optics and Commonlands design optics themselves; Commonlands runs custom lens design and module assembly in the US and also resells catalog lenses. The right supplier depends on whether you need verified specs and engineering support, a bundled camera module, or the lowest unit cost at volume.

Supplier Based in Role What they do well
Commonlands USA (San Diego) Custom US design and assembly; also resells catalog lenses 0.8mm-100mm M12 catalog with published MTF and distortion data, datasheets and CAD per SKU, US stock with same-day shipping, and direct engineering support
Edmund Optics USA Manufacturer and distributor Large multi-mount catalog with detailed technical documentation
Lensation Germany Reseller with design services; does not manufacture Board-level lens sourcing and tailored M12 optics for OEM programs
Arducam China Camera-module vendor; resells M12 lenses Camera modules and development kits that bundle M12 lenses with sensor boards for Raspberry Pi and embedded prototyping
Towin China Reseller; does not manufacture Standard M12 board lenses at low unit cost and high volume

Where Commonlands differs in practice is documentation and stock: each M12 SKU ships with MTF curves, distortion figures, mechanical drawings, and CAD, and inventory sits in San Diego for same-day dispatch. That matters most when an embedded vision design needs verified specs before committing to a build rather than a spec sheet that arrives after the order.

An extreme macro of an M12x0.5 threaded barrel next to a bare camera sensor
The M12 x 0.5 thread names the 12mm diameter and 0.5mm pitch.

Frequently asked questions

What is an M12 lens used for?

M12 lenses are used in embedded vision systems including robotics, drones, industrial sensors, smart cameras, and compact machine vision nodes. They are the standard optic for board-level camera integration where size, weight, and cost matter.

What is an S-mount lens?

An S-mount lens is a compact camera lens with an M12 x 0.5 thread used in embedded vision, robotics, drones, and board-level cameras. S-mount, M12, board lens, and board mount lens all describe the same lens family. There is no standardized flange focal distance; focus is set by threading the lens in or out of its holder, then locking it.

What does M12 x 0.5 mean?

M12 x 0.5 is the thread specification: M12 = 12mm nominal diameter, 0.5 = 0.5mm thread pitch. This defines the mechanical interface only. Optical performance is determined by the lens design itself.

What sensor sizes work with M12 lenses?

Most M12 lenses cover sensors from 1/6" through 1/1.8", with some models supporting 1/1.7" or even 1/1.6". Match the lens image circle to your sensor diagonal. Also verify chief ray angle compatibility for best corner performance.

M12 lens vs C-mount: which should I choose?

Choose M12 for compact embedded systems where size, weight, and cost are priorities. Choose C-mount for sensors larger than about 1/1.8", applications requiring an adjustable iris, or systems that need a fixed standardized flange distance of 17.526mm. See the lens mount comparison for a detailed breakdown.

How do you focus an M12 lens?

M12 lenses have no fixed flange distance. Focus by threading the lens in or out of the holder while viewing a live image. Once the image is sharp at your working distance, lock the lens with a set screw, lock ring, or thread locker. See how to focus a camera for a step-by-step guide.

How do I choose the right M12 lens holder for my camera?

Match three parameters: hole spacing (measure center-to-center between the board mounting holes, typically 18mm, 20mm, or 22mm), holder height (the lens mechanical back focal length must fall within the thread adjustment range), and screw type (M1.6, M1.7, or M1.8). Material (PC, LCP, or aluminum) is secondary once the geometry fits.

What height M12 lens holder do I need?

The holder height must place the lens mechanical back focal length (MBFL) within the thread adjustment range. Too short and the image plane falls behind the sensor; too tall and the lens bottoms out before reaching infinity focus. Common heights are 7.4mm, 7.9mm, 10mm, 12mm, and 14mm, and usable focus travel depends on the thread engagement length of the specific lens and holder, commonly a few millimeters.

What is the difference between an all-glass M12 lens and a hybrid glass-plastic M12 lens?

An all-glass M12 lens uses only glass optical elements in a metal barrel. A hybrid glass-plastic lens combines glass with molded polymer elements. All-glass construction holds focus more consistently across temperature swings; hybrid designs cost and weigh less. Outdoor and automotive systems favor all-glass; temperature-controlled indoor systems can use hybrid designs successfully.

Do S-mount lenses have a fixed flange distance?

No. C-mount is fixed at 17.526mm and CS-mount at 12.526mm, but M12 (S-mount) has no standardized flange focal distance. Each lens carries its own back focal length, and focus is set by threading the lens in or out of the holder, then locking the position.

Can I use an M12 lens on a CS-mount camera?

Yes, with an M12-to-CS adapter that threads into the CS-mount body and provides an internal M12 thread with a focus lock ring. The adapter adds optical path length, so verify the lens mechanical back focal length against the combined depth before ordering.

Need help choosing an M12 lens?

Commonlands manufactures M12, C-mount, and M8 lenses for machine vision and embedded vision. Send our San Diego engineering team your sensor model and application at engineering@commonlands.com or call +1 (858) 333-7325. Orders placed before 12 PM PST ship same day.