Lens Mount Guide: M12 vs C-mount vs CS-mount for Machine Vision Cameras
How M8, M12, C-mount, and CS-mount differ in thread, flange focal distance, and back focal length, and how to pick the right mount before hardware is ordered.
M12 (S-mount) uses an M12x0.5 thread with no fixed flange distance. Focus is set by threading the lens in or out and locking it. C-mount and CS-mount both use 1"-32 UN threads, but C-mount has a 17.526mm flange focal distance while CS-mount has 12.526mm. A lens can thread onto the wrong mount and still fail to focus.
The 5mm difference is the rule: a C-mount lens works on a CS camera with a 5mm spacer. The reverse usually does not work. Choose M12 for compact embedded systems, CS for compact cameras with standardized focus, and C-mount for larger sensors, adjustable iris, and maximum lens interchangeability.
What is the difference between M12, C-mount, and CS-mount?
Two parameters define a lens mount: the thread interface, which is purely mechanical, and the registration distance, which sets where the image lands relative to the sensor. C-mount and CS-mount register at the flange, so the standard guarantees focus for any compliant lens and body. M8 and M12 register wherever the thread is locked, so the installer sets focus by hand. Commonlands manufactures lenses for all four, and S-mount, board lens, and M12 all name the same interface. The table compares them side by side.
| Parameter | M8 | M12 / S-mount | CS-mount | C-mount |
|---|---|---|---|---|
| Thread | M8x0.35 or M8x0.5 | M12x0.5 | 1"-32 UN | 1"-32 UN |
| Flange focal distance | Not standardized | Not standardized | 12.526mm | 17.526mm |
| Focus method | Thread in/out, lock | Thread in/out, lock | Focus ring on lens; flange registration standardized | Focus ring on lens; flange registration standardized |
| Typical sensor coverage | Up to 1/3" or 1/2.7" | Up to 1/1.8" (select models 1/1.7"-1/1.6") | Up to 1" in compact bodies | Up to 1" and beyond |
| Typical image circle | 4-7mm | Up to 9mm and beyond | Up to 16mm | 16mm and beyond |
| Iris control | Fixed | Fixed (most models) | Fixed or manual | Adjustable ring common |
| System size / mass | Smallest, under 1g possible | Small, 2-15g typical | Mid-size | Largest, heaviest |
| Typical cost | Low | Lowest range per capability | Mid-range | Highest |
| Best for | Endoscopes, pinhole cameras, micro UAVs | Embedded vision, robotics, drones | Compact industrial, ITS, security | Machine vision, inspection |
What is M12 (S-mount)?
M12, also called S-mount or board lens mount, uses an M12x0.5 metric thread that screws directly into a holder on a camera module or PCB. M12 lenses are small (typically 10-25mm long), lightweight (2-15 grams), and available from ultra-wide fisheye to telephoto focal lengths.
M12 has no standardized flange focal distance. Each design assumes a different back focal length, so focus is set during installation by threading the lens in or out against a live image, then locking it. That makes M12 flexible for embedded systems but not interchangeable the way C-mount and CS-mount lenses are. Optically it is a rigid assembly with no internal moving groups, and working distance runs from roughly 50mm to infinity uncorrected.
What is C-mount?
C-mount uses the same 1"-32 UN thread as CS-mount but registers at a 17.526mm flange focal distance. The extra 5mm of back focus makes room for larger rear groups, an iris assembly, and coverage of larger sensors, commonly up to 1" and beyond. C-mount is the industrial machine vision standard, with the broadest ecosystem of interchangeable lenses across manufacturers.
Unlike M12, it focuses through an internal cam that rebalances aberrations across the focus range (Kingslake, Lens Design Fundamentals, 2nd ed.). Working distance is typically 100mm to infinity. The cam sets a hard minimum object distance (MOD), measured from the front of the lens to the object, inside which the image goes uniformly soft and an extension tube is required.
Many C-mount lenses add an adjustable iris for depth-of-field control, practical in machine vision because illumination is programmatically controlled. Use the depth of field calculator to quantify the effect. Select models are ruggedized for harsh environments, which applies to specific lenses, not the mount.
What is flange focal distance?
Flange focal distance (FFD) is the standardized distance from a mount's flange reference surface to the image sensor plane, measured along the optical axis. It is a property of the mount system, not of any individual lens. C-mount FFD is 17.526mm, CS-mount FFD is 12.526mm, and M12 has no universal FFD.
The standard works because both sides conform to the same number: a C-mount lens is designed so its focal plane sits 17.526mm from the flange at infinity, and a C-mount body is machined so the sensor sits at that same distance. Any compliant pair then focuses without adjustment. FFD is strictly mount geometry, not focal length or working distance.
The term appears in several forms across datasheets: flange back distance, register distance, and flange-to-film distance in the original photography usage. For focal-length and field-of-view math, use the EFL calculator.
What is back focal length in machine vision?
Back focal length (BFL) is the distance from the rear vertex of the lens, the last glass surface, to the image plane at infinity focus. It determines whether a lens can physically reach focus on a given camera: for a given sensor, effective focal length sets field of view while BFL sets mounting clearance. The distinction from FFD is exact. FFD is fixed by the mount standard and measured from the flange. BFL is a property of one lens, measured from the last glass vertex.
For M12 lenses, datasheets specify mechanical back focal length (MBFL): the distance from the thread seating surface to the sensor at infinity focus. Because M12 has no FFD, MBFL is how compatibility is specified, and it typically ranges from 2mm on wide-angle designs to 15mm or more on telephoto designs. The holder height must match it. Two lenses of the same effective focal length can have different MBFL, so verify it per lens. For how EFL drives framing, see how to choose focal length for machine vision.
On the bench, thread the lens fully in, then back it out slowly while watching a live image. If focus never comes, the holder height is wrong for that lens. Blurry at infinity but sharp up close means the holder is too tall, and soft corners that focus cannot fix point to off-axis aberrations or a chief ray angle mismatch.
Datasheets label this dimension inconsistently (MBFL, back focal distance, or BFL) and not every maker publishes it, so check the mechanical drawing before ordering holders. See the Commonlands M12 lens holder selection guide.
Lens mount compatibility and adapters
Thread fit does not guarantee optical compatibility. A lens can screw onto the wrong camera and still fail to focus, because the sensor sits at the wrong distance from the lens's designed focal plane. C-mount and CS-mount share the same thread, so a single 5mm precision spacer converts one direction. The other direction has no passive fix. The rules below cover the combinations engineers actually attempt.
C-mount lens on a CS-mount camera
Yes. Add a 5mm C-to-CS adapter ring to restore the 17.526mm registration the lens was designed for. Many CS-mount cameras ship with one. The C CS mount adapter does exactly this, and no thread adapter is needed, only the spacing ring.
CS-mount lens on a C-mount camera
Usually no. A CS lens expects the sensor 5mm closer than a C-mount camera provides, and the flange stops it at the correct thread engagement, so it cannot go further in. Without modifying the camera body, infinity focus is typically not achievable.
M12 lens on a C-mount or CS-mount camera
Possible with an adapter, and governed entirely by MBFL. The Commonlands CLA127 M12-to-C/CS adapter is 3.5mm thick and does not stack onto the flange distance: it recesses the M12 thread into the 1-inch throat so the lens seat ends up close to the sensor, at an effective depth of roughly 4mm. Wide-angle M12 lenses with an MBFL below about 4mm cannot reach infinity focus through it. The image plane forms short of the sensor, and no thread position moves it back far enough.
M12 lenses with an MBFL greater than about 4mm are the practical candidates: telephoto focal lengths such as 12mm, 18mm, 25mm, and 35mm sit far enough back to reach focus. The CLA127 M12 to C-mount adapter provides the mechanical interface. Some camera bodies also carry an IR-cut filter near the sensor, so verify both the back-focus budget and rear-element clearance past that filter for your lens before committing.
M8 vs M12 lenses: which should you choose?
M8 lenses use an 8mm thread (M8x0.35 or M8x0.5) and target extreme miniaturization. M12 lenses use a 12mm M12x0.5 thread and are the standard for embedded machine vision. The numbers are thread diameter, not focal length, and the larger M12 thread leaves more room for optical elements, which translates into image circle and correction headroom. If the system can physically accept M12, M12 is usually the safer default.
M8 lenses typically produce 4-7mm image circles and target 1/3" sensors, with 1/2.7" (about 6.7mm diagonal) as the practical upper limit. Many M12 lenses cover up to 1/1.8" (about 8.9mm diagonal), select models reach 1/1.7"-1/1.6", and resolution options extend to 20MP. Neither format has a standardized flange distance, so the holder-matching rules above apply to both. For matching image circle to sensor diagonal, see sensor size and lens compatibility.
Where M8 wins is package volume: the CIL857 6mm lens weighs 0.8 grams in its M8 variant and 2 grams in M12. In endoscope housings, pinhole enclosures, wearables, and micro UAV payloads with gram-level budgets, M12 hardware does not fit. Outside those cases, M12 offers a wider focal length range (0.8mm to 100mm across the Commonlands catalog), more sub-1% distortion options, and far deeper US sourcing.
The CLA812-AL (M8x0.35 to M12x0.5) and CLA811-AL (M8x0.5 to M12x0.5) adapters mount M8 lenses securely into M12 holders. The lens still has an M8 image circle and M8 optical limits. Use adapters for evaluation on M12 development boards. For production systems where M12 fits, use an M12 lens directly.
Best lenses by mount type
The table ranks one primary lens per mount with a runner-up, all stocked in San Diego and shipping same day on orders placed before 12 PM PST.
| Mount | Lens | EFL | F# | Sensor coverage | Why this pick |
|---|---|---|---|---|---|
| M12 / S-mount | CIL250 25mm telephoto · $99 | 25mm | F/2.0 | Up to 8MP | Longest reach that still threads into a board-lens holder; IR corrected for day and night use |
| M12 / S-mount | CIL350 35mm telephoto · $59 | 35mm | F/2.4 | Up to 2/3", 8-10MP | Runner-up M12 telephoto; covers larger 2/3" sensors at a lower price |
| M8 / M12 | CIL857 6mm · $39 | 6mm | F/3.0 fixed | 1/2.7", 7.0mm image circle | Smallest and lightest option, 0.8g in the M8 build, for pinhole, endoscope, and USB cameras |
| C-mount | CIL531 8mm · $149 | 8mm | F/2.8-F/16 | Up to 2/3", 12MP | Wide field with an adjustable iris; about 58° HFOV on a 2/3" sensor |
| C-mount | CIL579 75mm telephoto · $149 | 75mm | F/3-F/20 | 8MP | Runner-up C-mount for long standoff; the wide iris range suits outdoor ITS and ANPR |
| CS-mount | 8mm CS-mount · $59 | 8mm | F/1.8 | Up to 1/1.7", 12MP | Fast portrait focal length that saves 5mm of body depth; Raspberry Pi HQ compatible |
Every entry is a lens Commonlands stocks and characterizes in-house, ranked by mount fit first, then by focal-length reach and aperture range.
Frequently asked questions
What is the difference between M8 and M12 lenses?
M8 lenses use an 8mm thread (M8x0.35 or M8x0.5) and M12 lenses use a 12mm M12x0.5 thread. The larger M12 barrel allows larger optical elements, broader sensor coverage, and more design freedom. M8 targets extreme miniaturization and typically covers sensors up to 1/3" or 1/2.7".
Can I use a C-mount lens on a CS-mount camera?
Yes. Add a 5mm C-to-CS adapter ring between the lens and camera. This compensates for the flange distance difference and restores proper focus at infinity.
Can I use a CS-mount lens on a C-mount camera?
Usually not in practical systems. A CS lens expects the sensor to sit 5mm closer than a C-mount camera provides. Without mechanical modification, infinity focus is typically not achievable.
When should I choose M12 over C-mount?
Choose M12 when size, weight, and board-level integration matter. M12 lenses are smaller, lighter, and less expensive. Choose C-mount when you need larger sensor coverage, an adjustable iris, or a standardized interchangeable mount system.
Can I adapt an M12 lens to a CS-mount camera?
Mechanically yes, with an adapter. Optically it depends on the lens MBFL and the adapter depth. Through the 3.5mm Commonlands CLA127 adapter the lens seat sits about 4mm from the sensor, so M12 lenses with an MBFL below about 4mm typically cannot reach focus. Telephoto focal lengths such as 12mm, 18mm, 25mm, and 35mm are the better candidates. Verify the focus range before committing.
Need help choosing a mount?
Commonlands manufactures M8, M12, C-mount, and CS-mount lenses for machine vision and embedded vision, with MTF characterization on our lens designs. Our San Diego engineering team can work through FFD, MBFL, and adapter geometry with you before hardware is ordered.



