Understanding Focal Length
Focal length is the fundamental optical property of any lens, expressed in millimetres. It measures the distance from the lens's rear principal plane to the point where converging light rays meet on the sensor or film—the focal point itself. This distance determines how much of your scene the lens captures and how large subjects appear in the final image.
Manufacturers specify focal length because it directly controls two critical aspects of photography: magnification and field of view. A 50 mm lens on a full-frame camera behaves very differently from a 200 mm lens, not because one is
Focal Length and Magnification Formula
The relationship between focal length, object distance, and magnification follows a direct mathematical path. By rearranging the thin-lens equation, we can solve for focal length when we know how much the subject is magnified on the sensor.
Magnification = Image size ÷ Object size
Focal length = (Object distance ÷ ((1 ÷ Magnification) + 1)) × 1000
Angle of view = (180 ÷ π) × 2 × arctan(Image size ÷ (2 × Focal length × (Magnification + 1)))
Magnification— The ratio of image height on the sensor to actual object height; dimensionless.Object distance— Distance from the lens's front principal plane to the subject, measured in millimetres.Image size— The diagonal measurement of the imaging sensor or film frame, in millimetres (e.g., 36 mm for full-frame, 23.6 mm for APS-C).Focal length— Distance from the lens rear principal plane to the sensor plane when focused at infinity, in millimetres.Angle of view— The total angular width of the scene the lens captures, measured in degrees.
How to Use the Calculator
Enter any three of the five parameters—object size, image size, object distance, magnification, focal length, or angle of view—and the calculator solves for the remaining two. This bidirectional approach means you can start from different angles depending on your workflow.
- Working from object distance: If you know how far your subject is and how much magnification you need, the calculator determines the required focal length and resulting field of view.
- Working from magnification: Starting with how large the subject appears on your sensor (e.g., 0.005× for a distant building), you can find the focal length that produces this ratio at your chosen distance.
- Working from focal length: Specify a lens focal length and object distance to see what magnification and angle of view that setup achieves.
Common sensor diagonal measurements include 3.6 mm (smartphone), 5.8 mm (1/2-inch), 8.8 mm (2/3-inch), and 36 mm (full-frame). Object distance always measures from the front principal plane of the lens to the subject.
Practical Considerations and Pitfalls
Accurate focal length calculations require attention to real-world optical and measurement details.
- Principal planes are not the physical front element — The front principal plane sits inside the lens, not at its outer surface. Measuring from the physical barrel to your subject will introduce systematic error. Use the lens specifications or measure from the actual focal point position for precision work.
- Magnification for macro work differs from zoom magnification — A 0.1× magnification ratio (1:10 lifesize) describes what the sensor captures, not the zoom factor. Don't confuse this with telephoto zoom multipliers; they serve different purposes entirely.
- Angle of view changes with sensor size and focus distance — The same 50 mm lens produces different angles of view on an APS-C sensor versus full-frame. Also, as objects move closer, the formula accounts for focus-induced changes in effective magnification and field coverage.
- Atmospheric refraction and focus breathing affect distant subjects — In telephoto work on very distant subjects, atmospheric haze shifts apparent focus slightly. Modern lens designs also exhibit focus breathing—effective focal length changes slightly when focusing away from infinity—though this matters less for distant subjects.