Focal length is a lens value, given in millimeters, that decides how much of a scene a photo shows. It is not the physical length of the lens. It is an optical distance from the point where light rays meet to form a sharp image to the sensor.
Cameras store the focal length of each photo in its EXIF data. Together with aperture, shutter speed, and ISO, it shows how the photo was made.
How focal length changes a photo
A longer focal length gives a narrower angle of view and a higher magnification. Distant things look larger, and less of the scene fits in the frame. A shorter focal length gives a wider angle of view and a lower magnification.
Typical ranges for a full-frame camera, which has a sensor of 36 by 24 mm, are:
- 14 to 35 mm: wide-angle lenses, used for landscapes, buildings, and interiors
- 50 to 60 mm: standard lenses, closest to the angle of view of the human eye
- 70 to 200 mm: telephoto lenses, often used for portraits and product photos
- 300 to 800 mm: super telephoto lenses, used for wildlife and sports
A prime lens has one fixed focal length. A zoom lens covers a range of focal lengths, and you choose the setting for each photo.
What the value looks like
The FocalLength tag, ID 0x920A, stores the value in millimeters as a fraction. The Exif specification shows the example 50/1, which means 50 mm. ExifTool shows the same value as 50.0 mm.
The specification defines this tag as the actual focal length of the lens, not converted to a 35 mm film camera. So the same number gives a different view on cameras with different sensor sizes.
The 35 mm equivalent focal length
A second tag, FocalLengthIn35mmFilm with ID 0xA405, stores the equivalent focal length for a 35 mm film camera. ExifTool calls this tag FocalLengthIn35mmFormat. A value of 0 means the equivalent is unknown.
The Exif specification says the FocalLengthIn35mmFilm tag does not include digital zoom. A camera can store digital zoom in a separate tag, DigitalZoomRatio.
The conversion uses the crop factor, the size ratio between a full-frame sensor and the sensor of the camera. With a crop factor of 1.5, a 50 mm lens gives the view of a 75 mm lens on a full-frame camera. The lens itself does not change.
If a file has no FocalLengthIn35mmFilm tag, ExifTool calculates the equivalent from other tags. It shows a line such as 50.0 mm (35 mm equivalent: 75.0 mm). ExifTool notes that this calculated value may be wrong if the image was resized.
To take a similar photo with a different camera, compare the 35 mm equivalent, not the actual focal length.
Where the value comes from
The camera writes the focal length when you take the photo. With a zoom lens, the file records the setting used for that photo.
A camera can also store the LensInfo tag, called LensSpecification in the Exif specification. It holds 4 numbers: the shortest and longest focal length of the lens, and the smallest f-number at each end.
Which files carry it
Focal length is EXIF data, so it can appear in any file with an EXIF block. That includes JPG, TIFF, HEIC, PNG, and WebP images. Raw camera files such as CR2, NEF, ARW, and DNG carry it too, because they are based on TIFF.