How can I measure a lens’s actual effective focal length at a given focus distance?
Asked 6/29/2011
4 views
2 answers
0
Manufacturers often round the stated focal length, and some lenses also change effective focal length when focused close. EXIF usually reports the nominal value, not the true focal length at that focus distance.
How can I test or calculate the actual effective focal length my lens is using at a specific focus distance?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
15y ago
2 Answers
13
There is a mathematical / measurement method to calculate the effective focal length of a lens by measuring its angle of view.
The formula for angle of view is given as
$$ \alpha = 2\arctan{d\over2f} \qquad[1]$$
To calculate effective focal length \$f\$, rearranging equation 1 comes down to:
$$\begin{align} f &= {d\over 2\tan(\alpha/ 2)} \\ &= {d\over 2}\cot\left({\alpha\over 2}\right) \end{align}$$
where \$d\$ represents the size of the sensor in the direction measured. \$d\$ would be 24 mm in case you are using a full frame camera.
Let us now have the following setup for measuring \$\alpha\$;

You have a camera sitting at a height \$H\$ from the ground and a distance of \$X\$ from the wall with a scale. Now take a picture and you should be able to read the maximum height the lens can see (this would be \$H + Y\$).
Now knowing \$X\$ and \$Y\$, we can calculate half the angle of view (i.e. \$\alpha/2\$) using a right-triangle calculator (\$X\$ would be the opposite side and \$Y\$ the adjacent side), which uses the formula
$$ {\alpha\over 2} = \arctan{Y\over X} $$
Now that you have figured out \$\alpha/2\$, use it on equation 1 to calculate the effective focal length of the lens.
The value is only accurate as your measurements.
Edit 1:
In reference to @mattdm’s comment: Are the manufacturer-stated sensor dimensions close enough?
With reference to sensor sizes of camera’s in these links: here and here, we can logically assume that camera makers or at least Canon and Nikon round their sensor sizes 1/10 of an mm; i.e. there is a possibility of ±0.05 mm error in case they round the sensor size.
Let us consider 3 type of lenses:
- Wide angle lens (say 13 mm, angle of view: 85.4º)
- Normal lens (50 mm, angle of view 27.0º)
- Telephoto lens (300 mm, angle of view: 4.58º)
The effect of a 0.05 mm change in sensor size are:
change for wide Angle lens = 0.05 / (2 * tan(85.4/2)) = 0.04613 mm appx.
Which represents an difference of 0.35% (i.e. (0.04613 / 13) * 100 )
change for normal lens= 0.05 / (2 * tan(27/2)) = 0.012 mm appx.
Which represents an difference of 0.024% (i.e. (0.012/ 50) * 100 )
change for telephoto lens= 0.05 / (2 * tan(4.58/2)) = 0.0019 mm appx.
Which represents an difference of 0.0006% (i.e. (0.0019/ 300) * 100 )
We can thus see that with a 13mm wide angle lens and taking a 0.05mm error in manufacturers’ measurement, the change in the focal length is only 0.35%.
I hope that my math is correct.
Edit 2:
Regarding measurements for \$X\$ and \$H\$,
- \$H\$ should be measured from ground to the horizontal center of the sensor.
- \$X\$ is the distance between sensor and the wall.
Originally by user6212. Source · Licensed CC BY-SA 4.0
user6212
14y ago
0
Generated from our catalog & community — verify before relying on it.
You can estimate the effective focal length by measuring the lens’s angle of view or magnification at that focus distance.
A practical method is to photograph a target of known size at a known distance, then determine how much of the scene fits in the frame. From the measured field of view and your sensor dimension, use the pinhole-camera relation:
f = d / (2·tan(α/2))
where d is the sensor size in the measured direction and α is the angle of view.
Another equivalent method is to measure magnification from a subject of known size:
- magnification M = image size / object size
- then combine M with the object distance using the thin-lens approximation to solve for focal length.
A more advanced option is camera/lens calibration as used in computer vision, which can estimate intrinsic parameters for a given setup.
This works best for ordinary lenses that can be approximated by a pinhole/thin-lens model. Results may be less reliable for tilt/shift lenses, strongly distorted wide-angles, and other complex designs. Also note that many lenses really do change effective focal length at close focus, so you should test at the exact focus distance you care about.
Recommended products
UniqueBot
AI15y ago
Your Answer
Related Questions
What does a lens’s focal length actually mean, and why isn’t it always the lens-to-sensor distance?
How do I calculate whether a lens hood or front attachment will appear in the frame?
Why doesn’t a lens’s physical length match its focal length?
Can an afocal lens system project a sharp image onto a screen?
How do you determine the distance at which depth of field reaches infinity?