Machine Vision Lens Selection

Fixed vs Varifocal vs Zoom Machine Vision Lenses: Focus Behavior, Tradeoffs, and Selection

Three lens types differ on one operational question: what happens to focus when the focal length changes? This guide covers the definitions, the tradeoffs, the prototype-to-production workflow, and catalog-verified options.

By Max Henkart, Commonlands · Updated June 2026 · 9 min read

Commonlands fixed focal length lens beside a larger varifocal lens with two adjustment rings

A fixed focal length lens has one focal length and typically gives the best sharpness, distortion control, and calibration stability per dollar. Choose it once working distance and field of view are confirmed. A varifocal lens changes focal length but loses focus with every adjustment, so it must be refocused after zooming. A parfocal lens, the true zoom, holds focus through the change.

Adjustable lenses earn their cost during prototyping and in systems that reframe during operation. Everywhere else, fixed focal is the production answer.

What Is the Difference Between Fixed, Varifocal, and Zoom Lenses?

Fixed focal has one focal length. Varifocal changes it but loses focus. A parfocal zoom changes it while holding focus. The deciding question is not image quality but when, and how often, the focal length has to change. The table below is the reference for every decision on this page.

Property Fixed focal Varifocal Parfocal zoom
Focal length One EFL, set at manufacture Adjustable range Adjustable range
Focus through a focal change Not applicable; focus is set once Lost; refocus after every change Held through the range
Mid-cycle reframing No No; requires a stop and refocus Yes, manual or motorized
Optical complexity Lowest Moderate, with one moving group Highest, with coordinated moving groups
Relative cost Lowest Low to moderate Highest
MTF at a given focal length Optimized at one operating point Balanced across the range Balanced across the range
Distortion One profile; calibrate once Changes with focal setting Changes with zoom position
Calibration burden Single calibration typically holds Recalibrate after each adjustment Calibrate per zoom position used
Package size and weight Smallest and lightest Larger Largest
Best fit Stable production geometry Commissioning, then locked Framing that changes during operation

Fixed focal designs make up the bulk of machine vision catalogs and true parfocal zooms the smallest group, because the compensating mechanics cost the most to build well. That availability pushes production toward fixed focal, which is why the Commonlands catalog runs mostly fixed focal M12 and C-mount lenses with two manual varifocal zooms for bring-up.

A motorized zoom M12 lens with an elongated multi-group barrel on a camera board
Zoom lenses move internal groups to change focal length continuously.

What Is a Fixed Focal Length Lens?

A fixed focal length lens has one effective focal length (EFL). There is no zoom ring. For a given sensor, the lens produces one angle of view. It is the machine vision default because the optical design is corrected at a single operating point instead of compromised across a range, and because one calibration typically holds until the lens is disturbed or the environment shifts.

The focal length you need is a calculation from working distance, active sensor width, and required scene width, not a preference. The focal length selection guide walks the geometry. Once the number is verified on a real target, buying flexibility you will never use has no return.

Fixed Focal Does Not Mean Fixed Focus

Fixed focal refers to the focal length, not the focus setting. Most fixed focal industrial lenses keep a focus ring set at the working distance during installation and then locked. Some compact M12 lenses ship pre-focused from the factory, a separate property called fixed focus. Aperture is independent too: many fixed focal C-mount lenses carry an adjustable iris, while M12 lenses typically have a fixed aperture set at manufacture.

Photography calls a fixed focal lens a prime lens. The optics match. Industrial lenses document sensor format coverage, distortion, resolution, and minimum working distance. Verify image circle against the sensor diagonal, corner MTF at the operating aperture, and distortion against the measurement tolerance before ordering. Commonlands documents all three on every fixed focal M12 and C-mount product page.

What Is a Varifocal Lens?

A varifocal lens adjusts focal length by moving an internal element group, and the plane of focus shifts with it. The zoom ring and focus ring are decoupled: after any focal-length change the image is soft until the focus ring is readjusted. Varifocal designs defer the focal-length decision from the purchase order to the installation.

That deferral is the value. Mount the camera, turn the zoom ring until the framing is right, restore sharpness with the focus ring, and lock both. From that point the lens behaves like a fixed focal lens. Engineers reach for varifocal lenses during proof-of-concept work at untested mounting positions and at multi-product stations where framing changes between production runs.

The optical cost is real. A designer correcting one focal length can target aberrations at that exact configuration. A varifocal designer balances correction across the whole range instead. A varifocal set to 8mm will typically show softer corners and more distortion than a fixed 8mm lens from the same price tier.

A varifocal does not solve an unstable working distance. If the target moves toward or away from the camera, the fix is sufficient depth of field, not a lens a technician has to readjust. It also does not preserve calibration: changing the focal setting shifts image scale, the distortion profile, and the principal point, so coefficients captured at one setting are invalid at another. Fix the focal length before calibrating. Commonlands stocks two manual varifocal M12 zooms, the 4mm-9mm CIL436 and the 6mm-42mm CIL461, for this commissioning role.

What Is a Zoom Machine Vision Lens?

A zoom machine vision lens changes focal length while a compensating optical group holds the image plane in place, so the picture stays sharp through the range. That focus stability is what separates a true zoom from a varifocal, and it is why zoom lenses carry more elements, tighter mechanical tolerances, and higher prices.

Inside the barrel, one group changes focal length while a second cancels the focus shift, coupled by a cam or driven by motors (Kingslake, Lens Design Fundamentals, 2nd ed., §18.3). Zoom ratio is the longest focal length over the shortest, so 6mm to 42mm is 7X. On many zoom designs the entrance pupil cannot grow in step with focal length once it reaches the front element clear aperture, so the f-number climbs toward the telephoto end:

N = EFL / DEP N = f-number · EFL = effective focal length (mm) · DEP = entrance pupil diameter (mm). On the Commonlands CIL436 M12 zoom the pupil widens from about 2.1mm at 4mm (F/1.9) to 3.0mm at 9mm (F/3.0): it grows, but slower than focal length, so the lens loses about 1.3 stops across its 2.25X range. See the entrance pupil section of the f-number guide.

So any loop that commands a zoom move must also command exposure, gain, or illumination. A datasheet that quotes a single f-number for a zoom is almost always quoting the wide end. A motorized zoom makes runtime reframing possible without a technician, but adds failure modes: motor step accuracy, position tracking, and settling time. A system commanding moves mid-cycle must confirm the move has settled before it trusts the next frame.

Commonlands CIL461 7X zoom M12 lens mechanical drawing, 6mm to 42mm zoom barrel
The CIL461 7X zoom M12 lens. Its mechanism adds length, mass, and moving groups a fixed focal M12 body does not carry.

What Is a Parfocal Lens?

A parfocal lens maintains focus while its focal length changes. The word names that behavior, nothing else. A true zoom is parfocal by design. A varifocal is not, because it has no compensating group. The Commonlands CIL461 7X zoom M12 lens is a manual varifocal, so it loses focus through a focal change: set the focal length, restore focus, lock both rings, and treat it as fixed from then on.

Varifocal vs Zoom Lenses in Machine Vision

Both change focal length. Only the parfocal zoom does it without losing focus. A varifocal reframe stops the line to adjust, refocus, and recalibrate. A parfocal zoom reframes mid-cycle with focus intact. If the focal length is set once and locked, the cheaper varifocal wins, but if framing must change during operation without a refocus step, the parfocal zoom is the only type that fits. Pay for parfocal behavior when the application uses it, not as insurance.

How Do You Choose Between Fixed, Varifocal, and Zoom Lenses?

Choose by when the focal length changes, then confirm against the table. Moving from an adjustable prototype lens to a fixed focal production lens should be an explicit design-review item, not an accident.

Your situation Lens type
Working distance and field of view confirmed; geometry frozen Fixed focal length lens
Framing uncertain until installation; adjusted once, then locked Varifocal
Field of view changes during operation; no refocus step allowed Parfocal zoom, motorized if commanded by software
Target distance itself varies during operation Fixed focal with sufficient depth of field, not a zoom
High-accuracy measurement with tight distortion tolerance Fixed focal, calibrated once at installation
Commonlands CIL461 7X zoom M12 lens threaded into an open board camera during bring-up
A 7X zoom M12 lens on a board camera during bring-up. The zoom answers the focal-length question. A fixed focal lens usually ships the answer.

Fixed and Zoom Lens Picks Compared

Commonlands stocks two manual varifocal zooms for bring-up and a set of fixed focal lenses for production, across M12 and C-mount. The table ranks them the way an integrator reaches for each: the CIL461 6mm–42mm zoom to find a focal length, then a fixed focal lens to lock it in. The fixed picks run $39 to $149 and hold a single calibration. The zoom trades that stability for a 7X framing range.

Rank Type Lens Mount and EFL Calibration and repeatability Best fit
1 Zoom (varifocal) CIL461 M12, 6mm–42mm, F/2.3 Refocus and recalibrate after any focal change. Lock both rings once the framing is set. Bring-up: sweep the range at the real mounting position to find the focal length.
2 Fixed CIL059 M12, 5.9mm, F/1.7 One -4% distortion profile. Calibrate once and it holds while the lens is untouched. Wide, locked production geometry on 1/1.7-inch sensors. The F/1.7 build resolves 4-6MP at 3µm pixels, and the slower F/4.0 and F/5.6 builds carry the 8-12MP ratings.
3 Fixed CIL125 M12, 12.5mm, F/2.4 No focal adjustment to drift, and a light M12 body keeps mounting stress low. Telephoto framing on weight-limited embedded, drone, and robotics builds.
4 Fixed CIL522 C-mount, 12mm, F/1.4 The iris tunes depth of field, not field of view, so a stored distortion correction stays valid. Faster-aperture C-mount for lower light at 4.2µm pixel pitch.
5 Fixed CIL532 C-mount, 12mm, F/2.0–F/16 iris Stopping down buys depth of field without changing field of view, so the stored distortion correction stays valid. Past roughly F/8 on its 2.2µm pixels, diffraction starts costing more resolution than depth of field returns. 2/3-inch 12MP production work that needs iris control on the line.
6 Zoom (varifocal) CIL436 M12, 4mm–9mm (2.25X), F/1.9–F/3.0 Refocus and recalibrate per setting. Carries -65% barrel distortion at the wide end. Wide-angle reframing during bring-up; correct the distortion before any metric task.

For motorized C-mount zoom, vendors like Computar and Fujinon carry deeper catalogs. The fixed focal picks above are where Commonlands competes on published MTF, US stock, and price. Confirm image circle against your sensor before ordering.

14mm M12 Lens CIL142

Telephoto 14.2mm M12 Lens

$59.00

Download .STPView Product
20mm M12 lenses for finite conjugate

Telephoto 21.8mm M12 Lens

$70.00

Download .STPView Product
5mm Lens AR2020 Low Distortion

Low Distortion 5mm M12 Lens

$79.00

Download .STPView Product
8mm C Mount Lens Kowa Computar 2/3"

8mm C-Mount Lens 2/3" 12MP

$149.00

CIL531-F2.8-CMANIR — 50 in stock

Download .STPView Product

Browse Machine Vision Lenses

Commonlands machine vision lens types, fixed to varifocal to zoom, lined up by complexity
Mechanical complexity rises from fixed to varifocal to zoom designs.

Frequently Asked Questions

The Commonlands catalog runs mostly fixed focal M12 and C-mount lenses, so these distinctions decide what actually ships in a build.

What is the difference between a varifocal lens and a zoom lens?

Both adjust focal length. The difference is focus behavior. A true zoom (parfocal) lens holds focus through the focal-length change, so it can reframe mid-operation. A varifocal lens loses focus with every adjustment and needs a separate refocus step. Catalogs blur the two terms, so verify focus behavior in the datasheet.

Does a zoom lens change effective aperture as you zoom?

Often, yes. On many zoom designs the entrance pupil cannot grow in step with focal length once it reaches the front element clear aperture, so the f-number climbs toward the telephoto end. A lens marked F/2.8 at its wide end can be several stops slower at full zoom. Exposure or illumination must compensate after any zoom move.

Does changing the focal setting on a varifocal lens require recalibration?

Yes, in almost every case. A focal-length change alters image scale, field of view, and the distortion profile, and it shifts focus. Distortion coefficients, pixel-per-mm scale factors, and homographies measured at the old setting no longer apply. Refocus, recalibrate, and revalidate before the system makes measurements again.

Is a fixed focal length lens the same as a prime lens?

Optically, yes: both terms mean one focal length with no zoom. Prime lens is photography vocabulary. Fixed focal length lens is the machine vision term. Industrial fixed focal lenses are specified for sensor format coverage, distortion, and resolution across the image circle, which photography primes typically do not document.

Can I use a varifocal lens in a production machine vision system?

Yes, when field reframing is required (different part sizes at one station, for example). Lock the rings after setup and budget a refocus-plus-recalibration procedure for every adjustment. If the focal setting will never change in production, a fixed focal lens gives better repeatability with no drift-prone adjustment point.

Lock in the Right Focal Length

Send your working distance, scene size, and sensor part number to the Commonlands engineering team in San Diego. They will confirm whether a fixed focal lens covers it or a zoom earns its place, including motorized zoom requirements. Orders placed before 12 PM PST ship the same day.