Angle of View Calculator — lens and sensor to field of view

Enter the focal length and the sensor width and height. The tool returns the horizontal, vertical, and diagonal angles of view for a rectilinear lens, AoV = 2 atan(dimension / (2 × focal length)), and the frame width and height at a subject distance using similar triangles (distance × dimension / focal length). This is not a fisheye or panoramic projection, and it is not the gaming FOV converter on this site.

Lens, sensor, and distance

Formulas

hAoV = 2 atan(width / (2 × f))

vAoV = 2 atan(height / (2 × f))

dAoV = 2 atan(diagonal / (2 × f))

frame width = distance × width / f

frame height = distance × height / f

Where f = focal length, in the same length unit as the sensor sides (millimetres); width, height = active sensor sides, in millimetres; diagonal = √(width² + height²); distance = subject distance, in metres, for the frame size.

The angle formula is for a rectilinear (pinhole-like) projection, with the angle measured from the optical axis to the sides of the frame.

Frame width and height use similar triangles, which is exact for that same rectilinear model. Sensor millimetres and a distance in metres are consistent in the ratio.

This is a different calculation from the site's gaming FOV converter, which maps horizontal and vertical field of view at an aspect ratio.

Checked examples

50 mm on 36×24 mm: hAoV = 2 atan(36/100) = 39.60°. vAoV = 2 atan(24/100) = 26.99°. dAoV = 2 atan(43.267/100) = 46.79°. At 3 m, width = 3×36/50 = 2.16 m, height = 3×24/50 = 1.44 m.

24 mm on 23.5×15.6 mm: hAoV = 2 atan(23.5/48) = 52.17°. At 5 m, width = 5×23.5/24 = 4.90 m, height = 5×15.6/24 = 3.25 m.

16 mm on 17.3×13 mm: hAoV = 2 atan(17.3/32) = 56.79°. At 10 m, width = 10×17.3/16 = 10.81 m, height = 10×13/16 = 8.13 m.

Limits

Focal length, sensor sides, and subject distance must be positive, within the ranges on the form. The result is an ideal rectilinear angle of view, not a measured lens with distortion. Not for: fisheye, cylindrical, or other non-rectilinear projections; converting a game's horizontal FOV to vertical FOV; depth of field or distortion mapping.

Wikipedia — Angle of view.