Machine Vision Optics Guide

Machine Vision Field of View: Calculation, Angle of View, and Common Pitfalls

The FOV formula takes three inputs, and it fails for three recurring reasons: nominal sensor names, distortion, and fisheye projection. This guide covers the formula, the angle-of-view relationship, and the checks that keep the numbers honest.

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

An M12 lens frames a rectangular target, showing the camera field of view at working distance

Field of view (FOV) in machine vision is the physical size of the scene the camera captures at a given working distance. For a rectilinear lens it is FOV = (sensor width × working distance) / focal length, where sensor width is the active imaging dimension in millimeters, not the nominal format name.

The formula fails when engineers use nominal sensor dimensions, ignore lens distortion, or apply it to fisheye lenses. Get those three things right and lens selection follows directly. Verify final numbers with the field of view calculator before ordering hardware.

What is field of view in machine vision?

Field of view (FOV) in machine vision is the physical area of the scene the camera captures at a given working distance, expressed in linear units at the object plane. A horizontal field of view of 120mm means the camera sees a strip 120mm wide at the inspection distance.

FOV is not a property of the lens alone. It depends on three inputs together:

  • Focal length. A longer focal length narrows the field of view.
  • Active sensor dimensions. A larger sensor widens the field of view.
  • Working distance. Moving farther from the object widens the field of view.

Change any one of these and the field of view changes. That interdependence makes FOV calculation a system-level task, not a lens spec lookup. Working distance itself is a design consideration rather than a fixed constant: early in a project brackets and gantries can move, and once the mechanical design is committed the distance becomes effectively fixed. The working distance guide covers that side of the tradeoff.

Why linear FOV matters more than angular FOV in inspection

Many machine vision tasks define coverage in physical units: inspect a 150mm wide circuit board, scan a 200mm label, verify alignment across a 60mm part. These are scene widths. The angular coverage of the camera tells you the cone it sees in degrees, but it does not tell you the physical area covered until you fix the working distance. Linear FOV at the object plane is the number that connects directly to the task.

Angular coverage becomes the more useful quantity when comparing lenses across different sensor formats, or when the working distance is variable. For fixed-distance inspection, work in linear scene dimensions throughout.

Terminology note

Scene width is not sensor width at normal working distances. A sensor with a 6.4mm active width sees a far wider scene when the subject sits many focal lengths away: through an 8mm lens at 500mm working distance it sees 400mm wide. The two widths converge only as magnification approaches 1:1, where the imaged scene equals the sensor's active area. Sensor width is an input to the calculation, not the output.

Five M12 lenses of increasing length arranged as a focal-length ladder on gray
Longer focal lengths narrow the field of view at a fixed distance.

How do you calculate the field of view of a camera?

For a rectilinear lens, horizontal field of view equals active sensor width multiplied by working distance, divided by focal length: FOV_H = (sensor width × WD) / f. Use the measured active sensor dimensions from the camera datasheet, not the nominal format name, and take working distance from the front of the lens to the object. That front-of-lens convention is a practical stand-in for the formula's true reference point, the lens's front focal point; the difference matters only at very short working distances, as covered below.

FOV_H = (S_H × WD) / f FOV_V = (S_V × WD) / f S_H = active sensor width (mm) · S_V = active sensor height (mm) · WD = working distance (mm) · f = focal length (mm)

Horizontal and vertical coverage use the same relation with the corresponding sensor dimension. For the diagonal field of view, apply Pythagoras to the horizontal and vertical results. This relation is exact for rectilinear projection: it is the projection geometry itself, not a thin-lens approximation (Hecht, Optics, 5th ed., §5.2), and it is the same relation the EFL calculator solves in reverse. It is exact at working distances long compared with the lens itself, where WD is referenced to the lens's front focal point; at very short working distances the reference point inside the lens matters, and measuring from the front of the lens barrel introduces an offset error on the order of the vertex-to-focal-point distance divided by WD. That offset is negligible at typical inspection distances and grows only as the working distance shrinks toward the focal length of the lens, where the internal reference point can no longer be ignored.

Active sensor dimensions only

Use the measured active imaging width from the camera datasheet, not the nominal format name. A sensor labeled 1/2" has an active width of approximately 6.4mm. Entering 12.7mm (half of 25.4) produces a result nearly double the real field of view.

Worked example

A 1/2.3" sensor has an active width of approximately 6.17mm. At 300mm working distance with a 6mm lens:

FOV_H = (6.17mm × 300mm) / 6mm FOV_H = 308.5mm The camera sees approximately 309mm wide at 300mm working distance.

Choosing focal length from a target field of view

Rearrange the formula to solve for focal length when you know the scene size to cover:

f = (S_H × WD) / FOV_H_target f = (6.4mm × 400mm) / 200mm = 12.8mm Example: a 200mm wide object at 400mm working distance on a sensor with 6.4mm active width calls for a 12.8mm focal length.

Round to an available focal length and re-check the resulting coverage. A 12mm lens gives slightly wider coverage (213mm) and a 16mm lens gives narrower coverage (160mm). Choose based on whether the task requires full coverage of the object at the stated working distance or tolerates excess scene. The focal length selection guide walks through this decision in detail.

The pixel-to-scene relationship

Once field of view and sensor resolution are known, the ground sample distance (scene width per pixel) follows directly:

GSD = FOV_H / sensor pixel columns GSD = ground sample distance (mm/pixel), the physical scene width each pixel covers.

GSD determines whether the system can resolve the feature sizes the inspection requires; the spatial resolution guide covers how it interacts with lens MTF and pixel size. Use the FOV calculator to evaluate field of view and pixel coverage together.

What is the difference between angle of view and field of view?

Angle of view is an angular property of the lens and sensor together, measured in degrees, and it stays effectively constant at any working distance. Field of view is the physical scene coverage, in millimeters, that the angle produces at a specific working distance on a specific sensor. The two are related by FOV_H = 2 × WD × tan(AoV_H / 2).

Angle of view (AoV) describes the cone of space the camera sees. When a datasheet lists 90° angle of view, the camera captures a 90-degree slice of the world along the specified sensor axis. Once the lens and sensor are chosen, the angle is essentially fixed. Moving the camera changes the scene width that falls inside the cone, not the cone itself.

Property Angle of view (AoV) Field of view (FOV)
Unit Degrees Millimeters, meters, or inches
Depends on working distance? Effectively no; fixed for a lens and sensor pair except at very close focus Yes; it doubles when working distance doubles
Useful for Lens specification, comparing sensor formats Scene coverage at a known inspection distance
AoV = 2 × arctan( d / (2 × f) ) FOV_H = 2 × WD × tan(AoV_H / 2) d = active sensor dimension along the axis of interest (mm) · f = effective focal length (mm). The first formula gives the angle; the second converts it to scene width at a working distance. Both assume rectilinear projection.

Because sensors are rectangular, the angle differs by axis: HFOV uses the active sensor width, VFOV the active height, and DFOV the diagonal. On a sensor with approximately 6.3mm × 4.7mm active area, a 4mm lens gives roughly 76° HFOV, 61° VFOV, and 89° DFOV. Datasheets do not always state which axis a quoted angle uses, and DFOV is always larger than HFOV on a rectangular sensor, so check the axis before comparing lenses.

Plain-English analogy

A flashlight beam has a fixed angle set by its optics. Moving the flashlight farther from a wall makes the illuminated circle larger, but the beam angle never changes. Angle of view is the beam angle; field of view is the circle on the wall.

The practical workflow runs through both quantities: to cover a 200mm wide object at 500mm working distance, the required HFOV is approximately 22.6°. Use the field of view calculator to go from scene coverage to the required angle, and the angle of view calculator to confirm a lens and sensor combination delivers it.

How do focal length and sensor size affect field of view?

Field of view scales directly with active sensor width and inversely with focal length. Doubling the sensor width doubles the FOV at a given working distance; halving the focal length also doubles it. Angle of view responds nonlinearly: halving the focal length does not double the angle, and short focal lengths are far more sensitive to small changes.

That nonlinearity has a practical consequence. At long focal lengths, a 0.5mm change barely moves the angle of view. At 2.5mm, the same 0.5mm change shifts the field dramatically, so short focal lengths must be specified more precisely to hit a target field of view.

The linear scaling also means different lens and sensor pairings can produce the same coverage. An 8mm lens on a 2/3" sensor and a 6mm lens on a 1/1.8" sensor deliver similar horizontal coverage at the same working distance, even though they look different on paper. Active sensor dimensions are the common denominator.

Active area vs nominal format name

Nominal sensor format names are historical designations from tube camera outer diameters. They do not describe the physical size of the imaging area, and using them as dimensions corrupts the FOV calculation:

Nominal format Common active width (mm) Common active height (mm) Error if the format fraction is used as the width
1/4" ~3.6 ~2.7 Using 6.35mm gives ~76% error
1/3" ~4.8 ~3.6 Using 8.47mm gives ~76% error
1/2.3" ~6.17 ~4.55 Using 11.04mm gives ~79% error
1/2" ~6.4 ~4.8 Using 12.7mm gives ~98% error
1/1.8" ~7.18 ~5.32 Using 14.11mm gives ~97% error
2/3" ~8.8 ~6.6 Using 16.93mm gives ~92% error

Active dimensions also vary by manufacturer and pixel count within the same nominal format, so look up the specific camera model before running any calculation. The CMOS sensor size guide explains where the naming convention came from, and the image sensor reference lists active dimensions for common machine vision sensors.

Why do distortion, fisheye projection, and image circle change the real answer?

The rectilinear FOV formula assumes straight lines in the scene map to straight lines on the sensor. Barrel distortion, fisheye projection models, and an image circle mismatched to the sensor each break that assumption, so the formula can overstate or understate the real, usable coverage by a large margin.

Barrel distortion makes the formula optimistic about usable coverage

Many standard machine vision lenses approximate rectilinear projection well enough that the formula holds. Wide-angle lenses, especially below 4mm focal length on smaller sensors, often exhibit barrel distortion: local magnification drops with field height, so the lens actually covers more total angular field than the rectilinear formula predicts, and the formula is pessimistic about raw angular coverage. But that same falloff compresses the image on the sensor at the edges, so each edge pixel covers more scene and a rectified output must stretch it back out. The formula is optimistic only about the usable, low-distortion coverage: the region where geometry stays accurate is smaller than the raw formula result suggests.

For tasks that rely on accurate geometry (measurement, alignment, or print verification), specify lenses designed for low distortion. The low distortion lens guide covers how these designs are specified, and the M12 lens catalog lists distortion percentages per lens. For high-distortion lenses, use the manufacturer's measured distortion curve rather than calculating coverage from focal length alone.

Fisheye lenses require a different calculation entirely

Fisheye lenses do not follow the rectilinear model. They use alternative projections such as equidistant, equisolid, stereographic, or orthographic mapping, and neither the arctan formula nor the tan conversion applies:

Rectilinear:  r = f · tan(θ) Equidistant:  r = f · θ Equisolid:    r = 2f · sin(θ/2) r = image height from the optical axis, f = focal length, θ = ray angle. tan(θ) is undefined at 90°, which is why a rectilinear lens cannot reach a 180° field of view. A 190° fisheye achieves its coverage precisely because it uses a non-rectilinear projection.
Image height versus field angle for rectilinear, stereographic, equidistant, and equisolid lens projections
Image height plotted against field angle for four projection models. Rectilinear projection approaches infinite image height at 90°, while fisheye projections map angles past 90° to finite image heights.

If a fisheye lens specifies a 180° diagonal field of view, it images a 90° half-angle cone. Converting that to a scene width at a working distance requires the specific projection function, not the tan formula. When evaluating a fisheye, check the projection model in the datasheet and use the manufacturer's mapping data or test coverage empirically. The fisheye and wide-angle distortion guide treats the projection models in depth.

Image circle and sensor crop

Lenses project a circular image onto the sensor plane, and the mismatch cuts both ways. If the sensor diagonal is larger than the lens image circle, the corners are vignetted (dark, blurred, or cut off) and the usable field of view is smaller than the formula result. If the image circle is larger than the sensor, the sensor crops the projection: a C-mount lens rated for 2/3" sensors installed on a 1/2" sensor delivers a narrower angle of view than its datasheet states, because the sensor uses only the central portion of the image circle.

Verify that the lens image circle covers the sensor diagonal, and calculate with the active dimensions of your actual sensor rather than the maximum format the lens supports. The sensor size and lens compatibility guide covers both failure modes.

What are the most common field of view mistakes?

The most common FOV errors are using nominal sensor format names as physical dimensions, applying the rectilinear formula to fisheye lenses, confusing angle of view with field of view, comparing DFOV from one datasheet against HFOV from another, and ignoring the lens image circle. Each can produce a coverage estimate that fails at installation.

  • Using nominal sensor format as a physical dimension. Entering 1/2" as 12.7mm instead of the actual ~6.4mm active width produces a calculated FOV nearly double the real one. Take active dimensions from the camera datasheet.
  • Applying the rectilinear formula to fisheye or high-distortion lenses. Fisheye projections follow a different mapping entirely, and heavy barrel distortion means the total angular field the lens covers exceeds the formula's rectilinear prediction, even as the edge image is compressed on the sensor and the low-distortion usable coverage ends up smaller. The formula alone cannot tell you whether the coverage is usable for measurement.
  • Treating angle of view and field of view as the same number in different units. Angle of view is effectively fixed for a lens and sensor pair; field of view changes with working distance. Reading a lens's angle spec as a fixed scene width is a common source of coverage errors.
  • Comparing DFOV from one source with HFOV from another. Datasheets do not always specify the axis. Two lenses both advertised at 90° can differ substantially in horizontal coverage if one figure is diagonal and the other horizontal.
  • Ignoring image circle and sensor crop. A lens with a small image circle on a large sensor vignettes the corners; a lens rated for a larger format on a smaller sensor produces a narrower angle than its datasheet. Check the image circle against the sensor diagonal in both directions.
  • Calculating FOV without confirming the installed working distance. FOV scales linearly with working distance. Mounting tolerances, part height variation, or a revised fixture change the real distance, and the real coverage changes proportionally.
  • Skipping the calculator verification step. Manual calculation with estimated sensor dimensions and rounded focal lengths accumulates error. Run the field of view calculator with exact sensor dimensions and the candidate focal length before selecting hardware.

Which lenses cover wide, standard, and narrow fields of view?

Focal lengths from 2.6mm to 25mm on common sensor formats produce horizontal fields of view from roughly 712mm down to 74mm at 300mm working distance. The lenses below span that range, from a 190° fisheye that requires projection-model math to a 25mm telephoto for small-feature inspection at longer distances.

Top lenses ranked by field of view band

Pick the field of view band the task needs and the focal length follows. These five Commonlands lenses cover the usable range at a fixed working distance, ranked widest to narrowest, from the CIL227 190° fisheye to the CIL250 25mm telephoto.

FOV band Lens Mount / EFL Published coverage Best-fit application
Ultra-wide fisheye CIL227 2.7mm fisheye M12, 2.7mm 190° FOV at an 8.0mm image circle (equidistant projection) Hemispheric coverage for security, drones, and presence detection
Wide CIL059 6mm low-distortion M12, 6mm 76° FOV at an 8.8mm image circle Low-distortion wide coverage for measurement on 1/1.7" sensors
Wide CIL062 6mm no-distortion M12, 6mm ~359mm at 300mm WD on a 1/1.8" sensor Clean geometry for gauging and alignment at a lower price
Medium CIL531 8mm C-mount C-mount, 8mm ~330mm at 300mm WD on a 2/3" sensor (~58° HFOV) Adjustable-iris depth control on 12MP 2/3" sensors
Narrow telephoto CIL250 25mm telephoto M12, 25mm ~74mm at 300mm WD on a 1/2.3" sensor (~14° HFOV) Small-feature inspection at longer working distances
How we picked

Every coverage figure here comes from this article's 300mm scene-coverage table or the datasheet quoted on the lens product page, not a fresh focal-length estimate. We ranked strictly by field of view band and split the two 6mm options by distortion budget rather than coverage, because the low distortion lens guide shows why that choice drives measurement accuracy. The fisheye figure is the lens's equidistant-projection coverage, not a rectilinear formula result. Confirm any pick against your sensor with the field of view calculator and the angle of view calculator before ordering.

How focal length changes scene coverage at 300mm working distance

The table shows approximate horizontal field of view for rectilinear lenses at 300mm working distance on common sensor formats. All values use active sensor widths.

Focal length Sensor format Active width (mm) FOV_H at 300mm WD (mm) Coverage category
2.6mm 1/2.3" 6.17 ~712 Very wide
6mm 1/2.3" 6.17 ~309 Standard
6mm 1/1.8" 7.18 ~359 Standard (larger sensor)
8mm 2/3" 8.8 ~330 Standard (C-mount)
25mm 1/2.3" 6.17 ~74 Telephoto / narrow

The 2.6mm row corresponds to the CIL028 wide-angle lens pictured at the top of this page, which covers 100° HFOV on 1/2.3" sensors with reduced barrel distortion, so the formula remains a reliable predictor of its coverage. The 8mm C-mount on a 2/3" sensor and the 6mm M12 on a 1/1.8" sensor land within 10% of each other: the cross-format equivalence from the sensor size section, in numbers.

The C-mount option adds an adjustable iris, which matters when the required field of view comes with a depth requirement: stopping down extends depth of field, and machine vision illumination is typically controlled programmatically, so the light loss is recoverable. The depth of field guide and the DOF calculator cover that tradeoff.

A domed fisheye M12 lens beside a flat rectilinear M12 lens on gray
Projection geometry, not just focal length, changes how wide a lens sees.

자주 묻는 질문

What is angle of view in machine vision?

Angle of view (AoV) is the angular extent, in degrees, that a camera and lens combination captures along a given sensor axis. It is set by the effective focal length and the active sensor dimension on that axis, and it stays effectively constant with working distance; only refocusing at very close range narrows the angle slightly. The rectilinear formula is AoV = 2 × arctan(d / (2 × f)).

What is field of view in machine vision?

Field of view (FOV) in machine vision is the physical area of the scene the camera captures at a given working distance, measured in millimeters at the object plane. A horizontal field of view of 120mm means the camera sees a strip 120mm wide at that distance. FOV is set by focal length, active sensor dimensions, and working distance together.

How do I calculate machine vision field of view?

For a rectilinear lens: FOV_H = (sensor width × working distance) / focal length, all in millimeters. Use the actual active sensor dimensions, not the nominal format name. A 1/2" sensor has an active width of approximately 6.4mm, not 12.7mm. To find the focal length for a target FOV, rearrange: f = (sensor width × working distance) / target FOV. Fisheye and high-distortion lenses need a projection-corrected calculation.

How does working distance change the field of view?

Field of view scales linearly with working distance for a rectilinear lens: double the working distance and the field of view doubles. Increasing working distance is a simple way to cover a larger scene without changing lenses, but each pixel then covers more scene area, which reduces the effective resolution for small-feature detection.

Why should I use active sensor size instead of nominal sensor format?

Nominal format names (1/2", 2/3", 1/1.8") are legacy designations based on tube camera outer diameters and do not describe the imaging area. A 1/2" sensor typically has an active width around 6.4mm, not 12.7mm. Using the format name in the FOV formula produces errors from roughly 75% to nearly 100%. Take the active dimensions from the sensor datasheet.

Why do wide-angle and fisheye lenses break simple FOV math?

The standard formula assumes rectilinear projection, where straight lines in the scene map to straight lines on the sensor. Wide-angle lenses with barrel distortion compress the image edges, so the usable undistorted coverage differs from the formula prediction. Fisheye lenses use a different projection model entirely (equidistant or equisolid), so the arctan and tan formulas do not apply at all.

What is the difference between horizontal, vertical, and diagonal angle of view?

Horizontal AoV (HFOV) uses the active sensor width, vertical AoV (VFOV) uses the active sensor height, and diagonal AoV (DFOV) uses the sensor diagonal. For a rectangular sensor, DFOV is the largest of the three. Lens datasheets may quote any axis without saying which, so check before comparing lenses; DFOV can exceed VFOV by more than 30 degrees on a 16:9 sensor.

Why does angle of view not change with working distance?

Angle of view is set by the optics and sensor geometry. The lens accepts a cone of light whose angle is fixed by focal length and active sensor size. Moving the camera changes which portion of the scene falls inside that cone (the physical scene width) but not the cone's angular extent. Refocusing at a very close distance increases the lens-to-sensor distance, which narrows the angle slightly; at typical inspection distances the effect is negligible.

How do I choose focal length from a target field of view?

Rearrange the FOV formula: f = (sensor width × working distance) / target FOV, all in millimeters. Start from the active sensor width in the camera datasheet, the working distance your system geometry dictates, and the required scene coverage. Round to the nearest available focal length, then verify the resulting FOV with the Commonlands field of view calculator before ordering hardware.

Need help hitting a target field of view?

US-based optical engineers can review your sensor, working distance, and inspection geometry and recommend a specific lens. ISO 9001:2015 certified. Orders placed before 12 PM PST ship the same day from San Diego.