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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.

Frequently Asked Questions

What does focal length measure in practical terms?

Focal length is the optical distance inside the lens where light converges to form a sharp image. For photographers, it's the primary specification that determines how much of a scene the lens captures and how large distant objects appear. A 24 mm wide-angle lens captures roughly four times the horizontal field of a 50 mm standard lens, while a 200 mm telephoto compresses the scene and magnifies far-away subjects. Manufacturers always specify focal length because it's the single most useful predictor of how a lens behaves.

How does magnification relate to focal length and subject distance?

Magnification is the ratio of the image height on your sensor to the real height of the subject. It depends on both the focal length and how far the subject is. The farther away an object is, the smaller it appears on your sensor (lower magnification), regardless of focal length. Conversely, moving closer magnifies the subject more. The formula rearranges these relationships: if you know magnification and distance, you can solve for the focal length needed to achieve that magnification at that distance.

Can I use this calculator to find the right lens for wildlife photography?

Yes. Measure or estimate the distance to your typical subject and decide how large it should appear on your sensor. Many wildlife photographers prefer magnifications between 0.05 and 0.2 (roughly 1:20 to 1:5 lifesize). Enter your working distance and desired magnification, then read off the required focal length. A deer at 30 meters with 0.05× magnification on a full-frame sensor, for example, needs approximately a 200 mm lens. Adjust for your sensor format (APS-C, Micro Four Thirds, etc.) by inputting that sensor's actual diagonal measurement.

What happens to angle of view when I change magnification?

Angle of view is the total angular width of the scene captured by the lens. As magnification increases—either through longer focal length or closer subject distance—angle of view decreases; you see less of the surroundings but more detail of the subject. The calculator shows this trade-off directly. A 24 mm lens offers roughly a 73-degree horizontal field, while a 200 mm telephoto gives only about 12 degrees. This inverse relationship is why telephoto lenses feel "zoomed in"—they sacrifice breadth of view for subject magnification.

Why does the calculator use object distance in millimetres when I measured in metres?

The formula internally converts object distance to millimetres to keep all units consistent with focal length (always in mm) and image size (in mm). If you measure distance in metres, multiply by 1000 to convert. A subject 10 metres away becomes 10,000 mm. The calculator handles this conversion automatically if you enter values correctly, but double-check your input units: object distance fields typically accept either unit, but verify the calculator's documentation for your specific use.

What is the difference between focal length at infinity and macro focal length?

Focal length at infinity is the rated specification on your lens—the distance light converges when the lens is focused on infinitely distant subjects. When you focus closer (macro work), the lens physically extends, changing the effective focal length slightly. This calculator uses the infinity focal length, which is the standard specification. For subjects closer than a few metres, you may notice small discrepancies between calculated and measured magnification because real lenses deviate from the thin-lens model. The error is usually negligible for distant subjects but grows larger as you focus very close.

More other calculators (see all)