Focal Length Calculator

Created by Krishna Nelaturu
Last updated: Oct 09, 2022

Our focal length calculator will help you figure out the focal length needed to capture a distant object through a thin lens. It will also calculate the magnification and field of view of the lens. This article will teach you the focal length equation and image distance formula. Additionally, you will learn how to calculate the field of view and magnification using focal length. So hop in!

If you're interested in learning how a lens is made for a given focal length using materials of different refractive indices, visit our lensmaker equation calculator without fail!

Focal length equation

The focal length of a lens measures how sharply it can bend the light rays to converge at or diverge from a focal point. It is the distance between the center of the lens and the point where the light rays converge or diverge.

focal length of a bi-convex lens
Focal length of a bi-convex lens.

The formula for the focal length of a thin lens is:

1f=1u+1v\frac{1}{f} = \frac{1}{u} + \frac{1}{v}

Where:

  • ff - Focal length of the lens;
  • uu - Distance from the object to the center of the lens (also known as object distance); and
  • vv - Distance from the image to the center of the lens (also known as image distance).

For more, visit our thin lens equation calculator calculator.

💡 The focal length is positive for a converging lens and negative for a diverging lens.

For a converging lens, it is common practice to form a sharp image of a distant light source on a screen. Since the object (light source) is far away, 1u\frac{1}{u} becomes negligible, and the focal length is approximately equal to the image distance.

In photography, it is desirable to eliminate the parameter image distance from the focal length equation by introducing the magnification of the image.

Calculating magnification and field of view

Magnification MM refers to the enlargement or contraction of the image size compared to the object size. It is given by:

M=Image sizeObject sizeM = - \frac{\text{Image size}}{\text{Object size}}

Magnification is also related to the focal length and object distance by the following equation:

M=ffuM = \frac{f}{f-u}

💡 Magnification is negative for real images and positive for virtual images. However, the traditional practice in photography is that the magnification is positive for positive focal length. Hence, the formula for magnification in photography is:

M=Image sizeObject size=fufM = \frac{\text{Image size}}{\text{Object size}} = \frac{f}{u-f}

Rewriting this equation will give us the formula for focal length in terms of object distance and magnification:

f=uMM+1f = \frac{uM}{M+1}

The field of view or angle of view refers to how much of the scenery can be captured by the lens. Wide angle lenses and ultrawide cameras are becoming household names thanks to many smartphones.

We can calculate the field of view FoV\text{FoV} of a lens from its focal length using the equation:

FoV =360πtan1(Image size2f(M+1))\small \text{FoV } = \frac{360}{\pi} \tan^{-1}\left(\frac{\text{Image size}}{2f(M+1)}\right)

How to use this focal length calculator

Our focal length calculator is an amateur photographer's best friend:

  • To calculate the focal length of your sensor:
    • Enter the object distance and the image's magnification.
    • Provide the object size to find out the image size.
  • To calculate the magnification, enter the sizes of the image and object, or provide the object distance and focal length.
  • To calculate the field of view of your lens:
    • Enter the focal length of the lens along with the image size and magnification.
    • Alternatively, provide the focal length, image size, and object size.

If you're interested in more optical calculations, check out our mirror equation calculator.

Krishna Nelaturu
Object size
in
Image size
mm
Object distance
ft
Magnification
×
Focal length
mm
Angle of view
deg
People also viewed…

Angular resolution

Angular resolution calculator finds out the angular resolution of a lens.

Index of refraction

Learn how light changes speed and the consequences of this phenomenon with our index of refraction calculator.

Schwarzschild radius

Discover the fundamental of black hole physics with our Schwarzschild radius calculator.
main background