Camera Field of View Calculator with Distortion Visualizer | Commonlands

Camera Field of View Calculator with Real-Time Distortion Visualization

Calculate HFOV, VFOV, and DFOV instantly with our interactive FOV calculator. Features real-time distortion visualization and a built-in database of Commonlands lenses with Sony, OmniVision, and OnSemi sensor presets.

Distortion Visualizer
Real-time grid overlay
Lens Database
Commonlands M12 & C-mount
Sensor Presets
Sony, OmniVision, OnSemi
4 Projection Models
Rectilinear & fisheye types

Interactive Field of View Calculator

Select a Commonlands lens and sensor from the database, or enter custom parameters. The distortion visualizer shows how barrel or pincushion distortion affects image geometry in real-time.

Real-Time Distortion Visualizer

See how lens distortion affects your image geometry with an interactive grid overlay

Lens & Sensor Database

Select Commonlands lenses with characterized distortion, plus Sony/OmniVision/OnSemi sensors

How to Use This Calculator

  1. Select a sensor: Choose from Sony, OmniVision, or OnSemi presets, or enter custom dimensions. See our CMOS sensor size reference for format specifications.
  2. Select a lens: Pick a Commonlands M12 lens or C-mount lens to auto-load focal length and distortion data.
  3. View distortion: The visualizer shows how the selected lens distorts a reference grid.
  4. Read results: HFOV, VFOV, DFOV, and scene coverage are calculated instantly.
Skip calculator, jump to article content

The embedded tool uses a distant-focus projection. Do not use its scene-size results when object distance is comparable to focal length. A finite-conjugate lens model is needed there. Its "Angular Resolution" outputs describe angular sampling per pixel, not the optical resolution of the camera.

How Does Field of View Calculation Work?

  • FOV depends on focal length and active sensor dimensions
  • Basic rectilinear formula: FOV = 2 x arctan(sensor_dimension / (2 x focal_length))
  • Wide-angle and fisheye lenses require projection-aware FOV data for accurate results
  • Scene width at distance: Width = 2 x WD x tan(HFOV/2)
  • Fisheye lenses use non-rectilinear projection models

The field of view formula assumes an ideal pinhole camera with rectilinear projection. Use it for low-distortion lenses only, typically telephoto and standard focal lengths. Wide-angle and fisheye lenses deviate significantly from the rectilinear model. Fisheye FOV cannot be interpolated from EFL and edge distortion alone. Use this calculator, Commonlands MCP tools, or precomputed product FOV tables for fisheye and distortion-sensitive lenses.

FOV Formula
FOV = 2 × arctan ( d / 2f )
FOV Field of view (degrees)
d Sensor dimension (mm)
f Focal length (mm)

Rectilinear projection. Add distortion correction for wide-angle lenses.

Need to Determine Your Target FOV First?

Use our Angle of View Calculator to find the required FOV for your scene coverage and working distance.

What Does the Distortion Visualizer Show?

The distortion visualizer displays a reference grid as it would appear through the selected lens. Barrel distortion (negative coefficients) curves straight lines outward from the image center, a pattern common in wide-angle M12 lenses below 4mm focal length. Pincushion distortion (positive coefficients) curves lines inward, occasionally seen in telephoto designs. The visualizer helps engineers understand the actual image geometry before committing to a lens selection.

Basic FOV Formula

  • Assumes perfect pinhole projection
  • Accurate for telephoto lenses
  • Underestimates coverage of barrel-distorted wide-angle lenses
  • No distortion visualization

This FOV Calculator

  • Includes polynomial distortion model
  • Real-time distortion grid visualization
  • Commonlands lens database with characterized distortion
  • Multiple fisheye projection models

What Parameters Affect Field of View?

Effective Focal Length (EFL)

The effective focal length determines the angular field of view through the relationship FOV = 2 × arctan(d / 2EFL), where d is the sensor dimension. Shorter focal lengths provide wider coverage. Longer focal lengths narrow the field but increase magnification. Browse M12 lenses sorted by focal length from 0.8mm fisheye to 100mm telephoto, or explore C-mount lenses for larger format sensors.

Note: back focal length (BFL) describes the physical distance from the rear lens element to the sensor plane and should not be used for FOV calculations. See our effective focal length calculator for more details on the distinction.

Sensor Active Area

FOV calculations require the active sensor dimensions, not the nominal format name. A "1/2.3 inch" sensor actually measures approximately 6.17 × 4.55 mm. The fraction refers to historical vidicon tube conventions, not physical dimensions. The calculator includes preset dimensions for common Sony, OmniVision, and OnSemi sensors used in machine vision and robotics applications. Browse the full image sensors list for datasheets and active area dimensions.

Sensor Size Reference

For comprehensive sensor format specifications including active area dimensions, pixel counts, and aspect ratios, see our detailed CMOS Sensor Size Reference Guide or browse the full image sensors list for specific part numbers. These sensors come from Sony, OmniVision, and OnSemi and are commonly used with our M12 mount lenses and C-mount lenses.

Lens Image Circle

The lens must project an image circle larger than the sensor diagonal to avoid dark corners (vignetting). Most M12 lenses designed for 1/2" format sensors provide approximately 8-10 mm image circles. When using larger sensors, verify coverage in the lens specifications. Our product pages include sensor compatibility information for each lens. Check measured relative-illumination data at the required image height. Low distortion and uniform illumination are separate properties, so one does not establish the other.

Distortion and Projection Model

Barrel distortion in wide-angle lenses maps more angular content to the image periphery than the rectilinear formula predicts. TV distortion measures line bow and does not determine the additional angular coverage. Use the measured angle-to-image-height curve and active sensor dimensions to calculate that field. Fisheye lenses use specific mathematical projections: equidistant (r = f·θ), equisolid-angle (r = 2f·sin(θ/2)), or stereographic (r = 2f·tan(θ/2)). These produce dramatically different FOV from rectilinear lenses of the same focal length.

For more on how lens characteristics affect image quality, see our technical blog articles covering topics like sensor matching and optical performance.

How Do I Apply FOV Results to System Design?

Determining Working Distance

To find the working distance required for a specific scene width, rearrange the geometry:

Working Distance
WD = W / ( 2 × tan ( HFOV / 2 ) )
WD Working distance
W Scene width
HFOV Horizontal FOV

Uses the actual angular field below 180° on a centered plane perpendicular to the optical axis. Distance is measured from the entrance pupil. Lens projection affects how sensor positions map to angles.

Example: To view a 2-meter wide scene with 60° HFOV, the required working distance is approximately 1.73 m. Verify that the depth of field at this distance covers your subject depth using the depth of field calculator.

Selecting Focal Length for Target FOV

If you know your required field of view, use our angle of view calculator to determine the target FOV from your scene requirements, then calculate the required focal length:

Focal Length Selection
f = d / ( 2 × tan ( FOV / 2 ) )
f Required focal length
d Sensor dimension
FOV Target field of view

For target FOV on known sensor format

Example: To achieve 70° HFOV on a Sony IMX477 sensor (6.29 mm width), select a lens with approximately 4.5 mm focal length. Browse M12 lenses filtered by focal length to find matching options, or use our EFL calculator for precise focal length determination.

What Are Common FOV Calculation Mistakes?

Confusing Field of View with Angular Sampling

Total field of view indicates the angular extent captured by the sensor. Angular sampling (IFOV, instantaneous field of view) is the angle subtended by a single pixel, approximately pixel_pitch / focal_length on axis. Dividing total FOV by pixel count gives only a field-averaged value.

On wide rectilinear lenses the per-pixel angle varies noticeably from center to edge. For a 90° HFOV imaged across 1920 pixels at 1 meter working distance, the scene spans 2 meters, roughly 1 mm per pixel on a flat target. This sampling is one limit on detectable detail. Optical blur, contrast, noise, and processing also affect performance in machine vision applications.

Using Nominal Format Instead of Active Area

Sensor format designations (1/2.3", 1/1.8", etc.) are historical conventions that do not correspond to physical dimensions. A "1/2.3 inch" sensor measuring 6.17 × 4.55 mm has a diagonal of approximately 7.7 mm, not 11 mm (which would be the actual fraction). Always use the active area dimensions from the sensor datasheet. See our CMOS sensor size reference for common sensor specifications.

Fisheye Specification Ambiguity

Manufacturers specify fisheye lens FOV inconsistently. Some quote diagonal coverage at the full image circle. Others provide horizontal FOV on a specific sensor format. Always verify: (1) which dimension is specified, (2) the projection model, and (3) whether the stated coverage applies to your sensor format. Compare the estimate with measured image-height versus angle data for the specific fisheye lens. A generic projection cannot verify a manufacturer's claim on its own.

Ignoring Distortion in Wide-Angle Systems

Wide-angle lenses can depart substantially from rectilinear projection. Barrel distortion can increase the field captured on a fixed sensor, but focal length alone does not predict its size. Use the visualizer to explore a model, then check the lens's measured image-height versus angle data.

How Do I Implement Distortion Correction with OpenCV?

This calculator estimates FOV from the selected projection and nominal specifications. Its generic distortion control is an illustration, not a calibration of your lens. For computer vision applications requiring precise undistortion, you'll need to calibrate your specific lens-sensor combination using physical samples and calibration targets. OpenCV provides two camera models depending on your lens type.

Pinhole Camera Model with Distortion

For rectilinear and moderate wide-angle lenses, OpenCV's standard calibration uses the Brown-Conrady distortion model with five coefficients. The cv2.calibrateCamera() function estimates intrinsic parameters (focal length, principal point) and distortion coefficients (k1, k2, p1, p2, k3) from checkerboard images.

Python / OpenCV Standard Calibration
# Calibrate using checkerboard images
ret, mtx, dist, rvecs, tvecs = cv2.calibrateCamera(
    objpoints,    # 3D points in world coordinates
    imgpoints,    # 2D points in image plane
    gray.shape[::-1],
    None, None
)

# dist contains [k1, k2, p1, p2, k3]
# Undistort images using the calibration
undistorted = cv2.undistort(img, mtx, dist)

The radial distortion coefficients (k1, k2, k3) model barrel and pincushion distortion, while tangential coefficients (p1, p2) model decentering-type distortion. They do not correct every effect of sensor or lens misalignment. Sensor tilt may require an extended model and can also cause defocus that remapping cannot repair. Check reprojection residuals across the image and on separate validation images. Focal length alone does not determine which model fits or guarantee a sub-pixel result.

Fisheye Camera Model

For ultra-wide and fisheye lenses, the standard model fails at extreme angles. OpenCV's fisheye module implements the Kannala-Brandt equidistant projection model with four distortion coefficients (k1, k2, k3, k4).

Python / OpenCV Fisheye Calibration
# Fisheye calibration for wide-angle lenses
calibration_flags = (
    cv2.fisheye.CALIB_RECOMPUTE_EXTRINSIC +
    cv2.fisheye.CALIB_FIX_SKEW
)

ret, K, D, rvecs, tvecs = cv2.fisheye.calibrate(
    objpoints, imgpoints, gray.shape[::-1],
    None, None,
    flags=calibration_flags
)

# D contains [k1, k2, k3, k4] for equidistant model
# Undistort to rectilinear (crops FOV significantly)
map1, map2 = cv2.fisheye.initUndistortRectifyMap(
    K, D, np.eye(3), K, img.shape[:2][::-1], cv2.CV_16SC2
)
undistorted = cv2.remap(img, map1, map2, cv2.INTER_LINEAR)

FOV Reduction When Undistorting Fisheye

Converting a fisheye image to rectilinear projection significantly reduces usable FOV. There is no universal usable angle after dewarping a 180° fisheye. The output projection, crop, pixel count, and tolerated edge stretching determine the retained field. A finite rectilinear image cannot include a full 180° field. For applications requiring the full fisheye FOV (SLAM, panoramic stitching), work directly with the distorted images using the fisheye projection model.

Calibration Workflow

The recommended workflow for implementing distortion correction in your vision system:

  1. Order samples: Select candidate lenses from our M12 or C-mount collections based on FOV estimates from this calculator
  2. Capture calibration images: Photograph a checkerboard pattern (typically 9×6 or 7×5 inner corners) at 15-30 different orientations covering the full FOV
  3. Run calibration: Use cv2.calibrateCamera() for standard lenses or cv2.fisheye.calibrate() for wide-angle
  4. Evaluate reprojection error: Set an acceptance limit from the task error budget. Check residuals across the field and on independent validation images
  5. Apply correction: Use cv2.undistort() or pre-compute rectification maps for real-time performance

Calculator vs. Calibration Accuracy

Use these calculations as design estimates. Generic projection and distortion controls illustrate a model rather than establish a measured mapping for every lens. Obtain EFL tolerance and distortion data for the selected part, then calibrate the assembled camera to check the required accuracy. Use this calculator for system design and lens selection, then calibrate your actual hardware for production deployment.

Related Calculators

Complete your optical system design with our full suite of engineering tools:

Field of View Calculator FAQ

For low-distortion rectilinear lenses, camera field of view is calculated using: FOV = 2 x arctan(sensor_dimension / (2 x focal_length)). Do not use this formula to interpolate fisheye FOV from EFL and edge distortion alone. For wide-angle and fisheye lenses, use the calculator, Commonlands MCP, or precomputed product FOV tables.

HFOV (horizontal field of view) measures angular coverage across the sensor width. VFOV (vertical field of view) measures coverage across height. DFOV (diagonal field of view) measures corner-to-corner coverage. For a 4:3 aspect ratio sensor, DFOV is close to 1.25 x HFOV at narrow fields of view, but the arctangent relationship shrinks the ratio for wide-angle lenses: a 90 degree HFOV gives roughly a 103 degree DFOV.

Barrel distortion maps more angular content to the image periphery than rectilinear projection predicts. A lens with -15% barrel distortion at the edge captures 10-20% more angular coverage than the undistorted formula suggests. The distortion visualizer shows this effect in real-time.

The calculator includes presets for common Sony, OmniVision, and OnSemi sensors. For comprehensive sensor specifications including active area dimensions, see our CMOS Sensor Size Reference Guide.

If you know your scene width and working distance but need to determine the required FOV, use our Angle of View Calculator. Once you have your target FOV, return to this calculator to verify lens selection.

The distortion visualizer displays a reference grid as it would appear through the selected lens. Barrel distortion curves lines outward (common in wide-angle lenses). Pincushion distortion curves lines inward. This helps engineers understand actual image geometry before selecting a lens.

Prefer to use our old legacy FoV calculator? It is still available by clicking below.

Open Legacy Calculator

Contact Us

Connect with our US-based engineering team