A typical M12 lens holder kit drawing lists one number that decides whether the part mounts at all: base diameter, 14 mm. It is not the thread size and it is not the flange. It is the outside diameter of the boss that has to slide through your camera board's lens cutout, and if the cutout is smaller, the holder does not go on. What follows: what base diameter measures, the other three dimensions that decide the fit, the 0.5 mm per side clearance rule, and the caliper checks to run on holder and board before you order. Everything here applies to S-mount (M12) holders on board-level cameras and other bare-board builds.
What base diameter actually measures
An M12 lens holder is a short barrel with three features: an internal M12×0.5 thread that carries the lens, a flange that sits against the board, and a plain cylindrical boss between them. Base diameter is the outside diameter of that boss, measured just above the flange. It is the widest cylinder on the lens side of the flange, so it is the part that has to enter the cutout. Holders turn up wherever a bare board camera needs a lens seated at a repeatable height: embedded products, depth rigs, compact inspection heads.
The name misleads twice. It is not the thread: an M12 thread has a nominal major diameter of 12 mm, and the boss around it on a typical kit holder measures 14 mm, leaving about 1 mm of wall to carry the thread. It is not the flange either: the flange, or the ear-to-ear span on tab-style holders, is wider still and is what bears on the board and covers the hole.
Styles differ enough that the drawing matters. A common plastic holder of the CCTV style lists overall dimensions of 24 × 17 × 14 mm (length × width × height) with screw ears 20 mm apart, and its round boss is what enters the cutout. Threads vary too: M12×0.5 is the common S-mount standard, but M6 and M8 mounts exist on smaller boards, so confirm the thread first — the board camera thread size guide covers the options. Dimension drawings also commonly carry a note that values are for reference purposes only, so measure the part with calipers rather than trusting a listing photo.
The four dimensions that decide the fit
Fit is decided by four measurements, and a listing photo shows none of them:
| Dimension | What it controls | Example value | Where to measure |
|---|---|---|---|
| Base diameter | Whether the boss passes through the cutout | 14 mm | Across the boss, just above the flange |
| Flange width | Bearing on the board, cover over the cutout | 17 mm across the narrow face | Across the ears at the widest points |
| Ear spacing | Alignment with the board's mounting holes | 20 mm, centre to centre | Hole centre to hole centre |
| Seated height | Lens-to-sensor distance, so back focus | 14 mm, seat face to thread start | Flange seat face to start of thread |
The base value comes from a typical kit drawing; the other example values come from a widely sold plastic holder listed at 24 × 17 × 14 mm overall with 20 mm ear spacing. Your parts will differ, so measure them. Two formulas turn those numbers into a yes or a no:
Aim for 0.5 mm per side of clearance and at least 1.0 mm per side of bearing land; the worked example below shows why, and the thresholds that follow from it.
Worked example: a 14 mm base against a 15.0 mm board cutout
Take a real integration: a bare board camera with a round lens cutout, and a kit holder with a 14 mm base. The inputs:
- Base diameter 14.0 mm — the specification line on a typical kit drawing.
- Board cutout 15.0 mm — the smallest of three inside-caliper readings, taken at the top face, mid-thickness and bottom of a standard 1.6 mm PCB.
- Flange width 17.0 mm across the narrow face — measured on the holder.
- Rule: 0.5 mm per side of clearance, so a plastic boss slides into a drilled cutout without force, and 1.0 mm per side of flange land, so it bears on solid board.
The arithmetic:
- Clearance per side = (15.0 − 14.0) / 2 = 0.5 mm. The boss passes with exactly the clearance the rule asks for.
- Bearing land = (17.0 − 15.0) / 2 = 1.0 mm per side. The flange seats fully on the board.
- Ear spacing 20.0 mm, so drill the board's mounting holes 20.0 mm apart, centre to centre.
The decision: order the holder. At a 14 mm base, 15.0 mm is a pass. The thresholds around it: 14.5 mm is the practical floor (0.25 mm per side; it assembles, but needs gentle, square seating). Below 14.5 mm, enlarge the cutout in 0.5 mm steps with a step drill, deburr and clean, or pick a holder with a smaller base. Above 17.0 mm (1.5 mm per side), shim or centre the boss before tightening so the flange cannot rock on its screws.
Measuring the holder and the board
Five caliper checks, in the order that finds problems fastest:
- Base diameter. Outside jaws across the boss just above the flange; take a second reading 90° round and use the larger, because moulded bosses are rarely perfectly round.
- Board cutout. Inside jaws at the top face, mid-thickness and bottom; the smallest reading governs, because drilled and routed holes taper.
- Flange width. Across the ears at the widest points; compare with the cutout for the 1 mm per side of land.
- Ear spacing against board holes. Centre to centre on both. If they disagree, drill the board to the holder — never file a moulded holder to force a match.
- Seated height. Flange seat face to start of thread. This is a back-focus number, not a fit number, and it is the one people forget.
If the board has CAD data, read the cutout, hole spacing and keep-outs from the STEP file before anything ships, then confirm as-built with calipers — the housing design guide walks through working from those models. Fit is between holder and board, so measure the camera side with the same care: a GigE board-level camera such as the MV-CB016-10GM-M-W presents an M12 mount on a 1/2.9-inch sensor, and the PCB around that mount is what your holder must clear.
- Sensor format
- 1/2.9"
- Lens mount
- M12
- Interface
- GigE
- Resolution
- Up to 3 MP
The camera finder filters board options by mount and sensor format, which is the fastest way to shortlist the camera half of the fit.
Height, thread travel and back focus
Fit gets the holder onto the board; the seated height decides whether the lens ever reaches focus. An M12×0.5 thread advances 0.5 mm per turn, so every millimetre of height you add or remove is two full turns of focus travel. The thread-pitch physics guide explains that relationship, and short-thread close-focus lockouts show what a few tenths of a millimetre of height can take away. A holder too short for the lens may never reach focus at your working distance; one too tall consumes the travel you needed for close focus.
Back focus basics — how focal length and sensor distance set the target height — are in lens focal length vs back focus in board cameras. The full set-up on a bare board, setting holder height and locking it, is in S-mount lens holder on board level cameras: set height and back focus. Once the lens sits at focus, clamp it with the set screw or collar — lens locking screws cover the hardware — then re-check the corners, because clamping shifts focus slightly. The M12 focusing procedure is the checklist for that last pass.
When a kit holder is the wrong part
A fixed-height holder locks you into one optical path. If the board has no moulded socket and you want the lens-to-sensor distance as a deliberate setting, an adjustable focusing ring spanning 24-45 mm does the same job with the height as a choice; it is one of the lens accessories made for bare-board builds like this.
- Type
- Adapters & rings
Still choosing the camera? Some boards ship in CS-mount as well as S-mount variants, and the mount decides whether you need a holder at all — settle it at order time, as the CS-mount vs S-mount variant guide explains. With the mount fixed, pick the lens by working distance and field of view, following the working-distance method, then thread it in. Any M12 board lens then screws straight in; the holder fit does not change with focal length:
- Sensor format
- 1/2.5"
- Mount
- M12
- Sensor format
- 1/1.8"
- Mount
- M12
The lens finder narrows the M12 board lenses by sensor format, resolution and focal length; match the image circle to your sensor while you are there. Over half the range sits under 6 mm focal length, which is typical for board work.
Before you order
Run the list in order; each line takes under a minute:
- Base diameter measured on the holder, not read off a photo.
- Cutout measured at three depths; the smallest number governs.
- Clearance per side computed against the 0.5 mm rule.
- Flange land of at least 1 mm per side confirmed.
- Ear spacing and board holes matched; board drilled to the holder where they differ.
- Seated height checked against the back focus the lens needs.
- Thread confirmed M12×0.5, or whatever your board actually takes.
If a dimension will not line up, send both sets of numbers through the contact page and we will point you at a holder or focusing ring that fits. To pick the rest of the chain, start at the lens configurator; in-stock items ship within one business day. The lenses topic hub collects the rest of the S-mount guides, from thread pitch to locking.
Questions
Is base diameter the same as the M12 thread size?
No. An M12×0.5 thread has a nominal major diameter of 12 mm and advances 0.5 mm per turn. Base diameter describes the plain boss outside the thread that enters the board cutout — about 14 mm on a typical kit holder, which leaves roughly 1 mm of wall around the thread. Measure them separately: thread size tells you which lenses fit; base diameter tells you which boards fit.
How much clearance should the board cutout have around the base?
Aim for 0.5 mm per side (1.0 mm on diameter). The workable band for a plastic boss in a drilled cutout runs from about 0.2 mm per side, below which it binds or the flange cracks on insertion, to about 1.5 mm per side, above which the holder can rock before the screws pull it square — shim or centre it there. For a 14 mm base that is a 14.4-17.0 mm cutout, with 15.0 mm comfortable.
Does the base diameter affect the image?
Not directly — it is a mechanical dimension. It matters through seating: a boss forced into a tight hole, or a flange rocking over an oversized one, tilts the lens axis, which shows up as focus falling off on one side of the field. Seat the holder square, tighten the screws evenly, then check corner sharpness after locking the lens focus.
What if the holder's ear spacing does not match my board's mounting holes?
Then drill the board to the holder, not the reverse — a typical plastic holder spaces its ears 20 mm apart. A mismatch small enough to force still skews the seat and tilts the optical axis. Mark the holes from the holder itself, drill with the board supported, deburr, and confirm the flange still bears flat before a lens goes anywhere near the sensor.



