Lens Field of View Calculator
This lens field of view calculator shows what a camera and lens see from a given distance, for machine vision and security cameras, in two steps. Field of View gives the field of view (FOV) on the scene, the horizontal and vertical angles of view and the spatial resolution in mm per pixel (mm/px), from the sensor, the focal length and the distance. Object View shows a 3D model of a part as that camera sees it.
The results of the first step can be downloaded as a PNG or copied as text after Field of View.
Worked Example
The calculator opens with the worked example of the Machine Vision Lens Calculator. There, an APS-C camera with 6000 × 4000 pixels views a 2.700 × 1.867 m scene from 2.400 m and needs a 19.81 mm lens; the nearest shorter stock lens is 16 mm.
With that 16 mm lens at 2.400 m, traced through a retrofocus wide-angle design, the field of view is 3.546 × 2.353 m, the horizontal and vertical angles of view are 73.76° and 52.92°, and one pixel covers 0.5763 mm at the centre of the image; the ideal thin lens gives 3.478 × 2.319 m, 72.22° and 51.87°, and 0.5796 mm. The crop factor is 1.532, so 16 mm on this sensor gives the angle of view of 24.51 mm on a full-frame camera.
Field of View
This step gives the field of view (FOV) a lens covers on the scene, its horizontal and vertical angles and the spatial resolution in mm per pixel (mm/px), from the sensor, the focal length and the distance from the sensor to the scene.
Traced through a retrofocus wide-angle design (US 5,557,473 A), scaled to 16 mm. Distortion at the image corner: −1.046 %.
The entrance pupil, the lens’s centre of perspective, lies 36.65 mm in front of the sensor.
Crop factor 1.532: 16 mm on this sensor gives the angle of view of 24.51 mm on a full-frame (36 × 24 mm) camera, its 35 mm equivalent focal length.
Dashed: the neighbouring stock lenses at the same distance, 12.5 mm (6.198 × 3.191 m) and 25 mm (2.231 × 1.474 m).
Drag, or use the arrow keys when it has focus, to turn the drawing.
Equations
is the magnification, the size of the image on the sensor divided by the size of the scene, the focal length and the distance from the sensor to the scene. Of the two roots, the one below 1 applies: the image is smaller than the scene.
is the distance from the lens to the scene.
and are the width and height of the field of view on the scene, and and the sensor’s width and height; in portrait they swap.
is the length of the scene one pixel covers on the plane in focus, and the number of pixels across the sensor.
and are the angles off the optical axis at which the lens sees the left and right, and the top and bottom edges of the scene; the angles of view are and . With the lens focused at infinity, as on lens data sheets, they are and .
and are the distances from the front principal plane to the scene and from the rear principal plane to the sensor, and the distance between the two planes. The whole lens moves to focus.
is the angle, at the entrance pupil, of the scene point whose chief ray (the ray through the centre of the aperture stop) reaches the edge of the sensor, found by tracing; is the distance from the entrance pupil to the scene. Likewise for and the diagonal.
is the distortion: is where the chief ray from a scene point at height lands on the sensor, and where the ideal thin lens would put it.
is the crop factor: the diagonal of the 36 × 24 mm frame, 43.27 mm, divided by the sensor’s diagonal. is the 35 mm equivalent focal length, the focal length that gives the same angle of view across the diagonal on that frame.
Assumptions
- The main results come from a typical published lens design, scaled to the focal length and traced ray by ray, so the field, the angles and the distortion follow from its optics; the ideal thin lens’s values are in the line under each result.
- The design is chosen by how far off the optical axis the image corner lies: up to 23°, a double Gauss; up to 46°, a retrofocus wide-angle; beyond, a very wide-angle (fisheye) design.
- Real lenses of the same field can distort more or less than the design: of the eight lenses whose data sheets were read, two with the image corner about 37° and 38° off the axis list −6.84 % and −18.4 %, where the retrofocus design gives −2.4 % and −2.6 %.
- Rays are traced at one wavelength, 587.6 nm; colour is not included.
- The angles are those at the set distance. Lens data sheets give them with the lens focused at infinity, slightly wider: by up to about 1 % at a distance of 100 focal lengths, and more at closer distances.
- Pixels are taken as square.
- Their size is the sensor maker’s pixel size or, where the maker gives the sensor’s size, its width divided by the number of pixels across it; every other dimension follows from those two. For Other sensor, they are the values entered.
- The pixel counts are those a camera delivers by default.
- The lens must also cover the sensor’s format, and the lens maker’s data decides the final setup.
- The crop factor is taken across the diagonal, against the 36 × 24 mm frame.
- The neighbouring stock lenses are the standard focal lengths of two makers’ current C-mount machine vision series and, for the security-camera sensors, one maker’s current fixed lenses (decision R2).
Cite as: Jacek Garbuliński, Lens Field of View Calculator, Blixild, 2026, https://blixild.com/lens-field-of-view-calculator.html
Object View
This step shows a 3D model of a part as the camera of Field of View sees it, so the framing, the viewing angle and what one surface hides of another can be checked before a camera is mounted. Open a sample or your own STL or OBJ model, set the point the camera aims at, and place the camera around the part or in coordinates.
Uses the sensor, the camera orientation, the focal length and the lens design from Field of View.
Part
Scene centre
Click or drag in either view, or use the arrow keys when a view has focus, to move the scene centre.
Camera position
The camera’s view
Drag the isometric view to turn it. Drag the image to turn the part: the camera moves around it. Pinch, or hold Ctrl and turn the wheel, to bring the camera nearer or move it away; with the image focused, the arrow keys turn and the + and − keys move.
Equations
is the unit vector from the scene centre to the camera, from the yaw and the pitch .
is the sensor’s place and the entrance pupil’s, the point the camera sees from; is the distance from the entrance pupil to the scene, as in Field of View.
and are the image’s right and up in the model’s coordinates, and and the same before the roll . Straight above or below the scene centre the image’s right is , set by the yaw. A pixel at a distance from the image’s centre shows the direction off the optical axis, from the traced lens, as in Field of View.
Assumptions
- The camera points at the scene centre, which is the centre of the image.
- The model’s coordinates are taken in the unit chosen, with z up.
- Only the model’s geometry is read: materials, colours and textures in the file are not, and an OBJ file’s groups are drawn as one part.
- The lens design and the other assumptions of Field of View apply.
Limitations
- The lens is a typical published design scaled to the focal length, not your lens. Real lenses of the same field distort more or less (the assumption of Field of View, with the eight data sheets’ figures).
- The image shows geometry only: where each point of the part lands on the sensor. It shows no blur (focus, depth of field, diffraction or aberrations other than distortion), no vignetting or fall-off in brightness towards the corners, no colour fringes, no noise and no motion blur. Every point is drawn sharp.
- The shading is a fixed light that shows the part’s shape, not the station’s lighting; surfaces are one grey, without their colour, gloss or texture.
- Black areas lie beyond the design’s field. A real lens may cover more or less of the sensor, and a camera’s housing, mount or hood may also cut the image.
- The camera in the isometric view is a symbol: the camera body, the lens barrel and the rest of a station are not modelled, so they cannot block the view here as they may in place.
- The image is drawn at the screen’s resolution, not the sensor’s pixels; detail finer than a screen pixel is not shown as the sensor would record it.
- The lens is focused on the plane through the scene centre, square to its axis; parts of the model nearer or farther are drawn sharp all the same.
- The model is read as given: its units as chosen and its z up; the page does not repair or check its geometry.
Questions and Answers
When and why should I use this calculator?
Use it when a camera and lens are chosen, or being compared, and you need to know what they see from a given place: the size of the field of view on the scene, the angles of view, and the size of one pixel there. It serves machine vision stations and security cameras alike. To find the focal length for a given scene instead, use the Machine Vision Lens Calculator. The results trace a typical lens design for the focal length; the lens maker’s data and a test image decide the final setup.
How do I calculate the field of view from the focal length?
Divide the sensor’s width by the magnification. The magnification follows from the focal length and the distance from the sensor to the scene: it is the root below 1 of . Far from the lens, this comes close to the simpler rule of the sensor’s width times the distance, divided by the focal length. In the worked example, a sensor 23.50 mm wide with a 16 mm lens at 2.400 m sees a field 3.478 m wide; the simpler rule gives 3.525 m. The calculator’s main result traces a typical lens design and so includes its distortion: 3.546 m in the worked example.
What is the difference between the field of view and the angle of view?
The field of view is a size on the scene, in metres; the angle of view is the angle the lens takes in, in degrees. The angle depends on the sensor and the lens; the field of view also depends on the distance, and grows in proportion to it. Lens and security-camera data sheets often give the angle, horizontally, vertically and across the diagonal; machine vision work usually needs the field of view on the parts.
Why does the angle here differ from the lens data sheet?
For two reasons. Data sheets give the angle with the lens focused at infinity; focused closer, the lens sits farther from the sensor and the angle is a little narrower: in the worked example, 73.76° at 2.400 m against 73.94°. And lenses distort the image, short lenses most. The calculator traces a typical design for the focal length: for a 2.8 mm lens on a 1/2.8 in sensor it gives 116.5° horizontally, where one maker’s data sheet lists 106° and a lens without distortion gives 89.67°. Real lenses of the same focal length differ in their distortion, so the data sheet of the lens decides.
What is the crop factor, and what is a 35 mm equivalent focal length?
The crop factor compares a sensor with the 36 × 24 mm frame of 35 mm film, full frame in today’s cameras: it is that frame’s diagonal, 43.27 mm, divided by the sensor’s diagonal. A lens on a smaller sensor sees a narrower field than on full frame; its focal length times the crop factor gives the full-frame lens with the same diagonal angle of view. In the worked example, 16 mm on the APS-C sensor, with a crop factor of 1.532, matches 24.51 mm on full frame. Security-camera sensors are small, so their crop factors are large: 6.773 for a 1/2.8 in sensor.
What does lens distortion do to the field of view?
Short lenses often show barrel distortion: straight lines near the edges of the image bow outwards, and the lens takes in a wider angle than a lens without distortion of the same focal length. The calculator traces a typical published design for the focal length, so its results include that design’s distortion, and it gives the distortion at the image corner: −1.046 % for the worked example’s 16 mm lens. Real lenses of the same field differ: of eight lenses whose data sheets were read, two with the image corner about 37° and 38° off the axis list −6.84 % and −18.4 %. The first step also gives the length one pixel covers at the image corner, radially and tangentially.
What do mm per pixel and pixels per metre mean?
Both describe how finely the camera samples the scene. Millimetres per pixel is the length of the scene one pixel covers, the measure used in machine vision; pixels per metre is its inverse, the measure security-camera specifications use. In the worked example, one pixel covers 0.5763 mm, which is 1735 pixels per metre across the scene. Both are values at the centre of the image, on the plane in focus; the first step also gives the length at the image corner.
Sources
Nakamura, S. (1980). Gauss type photographic lens. US Patent 4,234,242 A, Nippon Kogaku K.K. https://patents.google.com/patent/US4234242A/en
- Example 1: the lens data (radii, spacings, refractive indices and Abbe numbers); f = 100, F/2.0, angle of view 46°, back focus 74.8
Sugiyama, Y., Sato, H. (1996). Wide angle lens. US Patent 5,557,473 A, Nikon Corp. https://patents.google.com/patent/US5557473A/en
- First embodiment (Table 1): the lens data; f = 28.6, F/2.86, angle of view 75.4°
Tada, E., Ito, T. (2007). Fisheye lens system. US Patent 7,173,776 B2, Pentax Corp. https://patents.google.com/patent/US7173776B2/en
- Embodiment 1 (Table 1): the lens data; f = 2.96, F/1.8, half angle of view 89.6°; the diaphragm 3.328 behind surface 11
Send an enquiry
To discuss a camera and lens for measurement, inspection or monitoring, send an enquiry.
Describe your requirements briefly. We respond within one business day.
contact@blixild.com