Camera field of view calculator
Calculate a webcam's field of view from a simple measurement or from lens specs, convert diagonal to horizontal and vertical angles, and see how portrait rotation changes the frame.
Field of view (FOV) is the angle of the scene a camera captures. You can work it out for a webcam with basic trigonometry. You either need a measurement you take yourself or the lens and sensor figures from a spec sheet. Before you calculate anything, check which angle you mean: horizontal, vertical or diagonal. If you plan to turn the camera or its image to portrait orientation, the horizontal and vertical values effectively trade places.
The short answer
To calculate the field of view, place the camera a known distance from a flat surface. Measure how much of that surface is visible across the frame, then apply this formula:
FOV = 2 × atan( visible width ÷ (2 × distance) )
Use the same unit for width and distance. If you measure the visible height instead of the width, the result is the vertical FOV. This method works for any webcam and does not depend on published specs, so it is usually the most reliable way to check a camera you already own.
Horizontal, vertical or diagonal: which number do you have?
A single FOV figure can describe three different angles. The horizontal angle spans the frame from left to right. The vertical angle spans it from top to bottom. The diagonal angle runs from one corner to the opposite corner and is always the largest of the three. Webcam listings often quote one figure without saying which it is. If you compare a diagonal value with someone else's horizontal value, the cameras will seem more different than they really are. The material available for this guide did not include specifications for any particular camera, so check your own camera's documentation to see which angle it states.
Step-by-step: measure your webcam's field of view
- 1. Set the camera to the resolution and aspect ratio you will actually use. Changing resolution can crop the image on some cameras, which changes the effective FOV.
- 2. Turn off digital zoom, auto-framing or face-tracking features if your camera or call app has them, because they crop the frame.
- 3. Point the camera straight at a wall or door, square to it, not angled.
- 4. Measure the distance from the front of the lens to the wall.
- 5. Look at the live preview and mark the points on the wall where the left and right edges of the frame fall, using tape or sticky notes.
- 6. Measure the distance between the marks. This is the visible width.
- 7. Calculate: FOV = 2 × atan(visible width ÷ (2 × distance)). Many calculator apps have an atan or tan⁻¹ button. Make sure the result is shown in degrees, not radians.
- 8. Repeat for the top and bottom edges if you also want the vertical FOV.
Here is a worked example with illustrative numbers that do not describe any particular camera. If the lens is 100 cm from the wall and the visible width is 120 cm, then FOV = 2 × atan(120 ÷ 200) = 2 × atan(0.6), which is about 62 degrees horizontally.
Verify the result
Move the camera to a second distance and repeat the measurement. The visible width should change, but the calculated angle should come out about the same. If the two angles differ noticeably, check three things: whether the camera was square to the wall, whether you measured from the lens itself rather than the camera body, and whether any automatic cropping switched on between shots. Wide-angle webcams often show barrel distortion, which bows straight lines outward near the edges. With these cameras the simple formula is only an approximation, and edge-to-edge measurements give the most practical answer.
Calculating from focal length and sensor size
If the manufacturer publishes the lens focal length and the sensor dimensions, you can calculate FOV without measuring:
Horizontal FOV = 2 × atan( sensor width ÷ (2 × focal length) )
Vertical FOV = 2 × atan( sensor height ÷ (2 × focal length) )
Diagonal FOV = 2 × atan( sensor diagonal ÷ (2 × focal length) )
Use the actual focal length and the physical sensor dimensions, both in millimetres. Do not use a 35 mm equivalent focal length with the real sensor size, because that combination gives a wrong result. Webcam makers often do not publish these figures. If yours are missing, use the measurement method instead.
Converting a diagonal FOV to horizontal and vertical
If your camera's spec lists only a diagonal angle, you can split it into horizontal and vertical angles using the aspect ratio. This assumes a standard lens without strong fisheye distortion:
k = tan(diagonal FOV ÷ 2)
Horizontal FOV = 2 × atan( k × W ÷ √(W² + H²) )
Vertical FOV = 2 × atan( k × H ÷ √(W² + H²) )
For 16:9: W ÷ √(W² + H²) ≈ 0.872 H ÷ √(W² + H²) ≈ 0.490
For 4:3: W ÷ √(W² + H²) = 0.8 H ÷ √(W² + H²) = 0.6
Portrait rotation and field of view
Turning to portrait orientation can happen in two quite different ways, and they affect the field of view differently.
| Method | What happens to the frame | Effect on FOV |
| Physically rotating the camera 90 degrees | The full sensor is still used, turned on its side | The old vertical FOV becomes the new horizontal FOV, and the old horizontal becomes the new vertical. Nothing is lost. |
| Rotating the image in software to fill a portrait frame | The app may cut a tall slice out of a wide image | If it crops, the frame keeps its full height but loses much of its width, so the horizontal FOV shrinks sharply. |
Suppose software crops a 9:16 portrait frame out of a 16:9 landscape image at full height. The portrait frame's width is then about 32 percent of the original width (9/16 × 9/16). To estimate the new horizontal FOV, multiply tan(original horizontal FOV ÷ 2) by about 0.316, take the atan of the result, and double it. Whether a given app crops, letterboxes or rotates the full frame depends on the app. The material behind this guide did not cover any specific app, so check your preview. The quickest test is to repeat the wall-marking method in portrait mode and compare the result with your landscape measurement.
Using FOV to place the camera
Once you know the angle, you can work backwards to find how far away the camera needs to be to fit a given width, such as your shoulders, a desk or a background:
Distance = width to fit ÷ ( 2 × tan(FOV ÷ 2) )
Use the horizontal FOV to fit width and the vertical FOV to fit height, after swapping them if you are working in portrait. The result tells you only what will fall inside the frame. Focus, lighting, and how the image looks once a call app compresses it are separate matters, and a correct FOV calculation does not guarantee any of them.