The Thin Lens Equation

A lens bends light rays passing through it. The thin lens equation relates three key distances: where the object sits, where its image forms, and the lens's focal length. This equation holds for both convex (converging) and concave (diverging) lenses, provided the lens is thin enough that its thickness is negligible.

1/f = 1/do + 1/di

M = |di| / do

  • f — Focal length of the lens (in cm or m). Positive for converging lenses, negative for diverging lenses.
  • d<sub>o</sub> — Object distance—how far the object sits from the lens centre.
  • d<sub>i</sub> — Image distance—how far the image forms from the lens centre. Positive for real images, negative for virtual ones.
  • M — Magnification, the ratio of image size to object size. Always expressed as a positive number.

Converging Lens Behaviour

A converging lens (positive focal length) exhibits different image properties depending on where you place the object:

  • Beyond 2f: The image is real, inverted, and smaller than the object (M < 1). This is how a camera works.
  • At exactly 2f: The image is real, inverted, and the same size as the object (M = 1).
  • Between f and 2f: The image is real, inverted, and larger than the object (M > 1). This setup is used in projectors.
  • At the focal point (f): The image distance approaches infinity. Light rays exit parallel, forming no focused image.
  • Closer than f: The image is virtual, upright, and magnified (M > 1). This is how a magnifying glass works.

Sign Convention and Image Properties

The sign convention is critical for interpreting results. Real images (formed by converging light) have positive image distances and can be projected onto a screen. Virtual images (formed by diverging light) have negative image distances and appear behind the lens—you cannot project them.

Image orientation depends on magnification sign in more advanced formulations, but the thin lens equation itself always uses absolute magnification. A real image from a single lens is always inverted relative to the object; a virtual image is always upright.

Focal length is positive for converging lenses and negative for diverging lenses. This sign choice ensures the equation works consistently across all configurations.

Common Pitfalls and Practical Tips

Avoid these mistakes when applying the thin lens equation:

  1. Watch your sign conventions — The biggest source of error is inconsistent signs. Decide at the start whether you're using the real/virtual convention (di positive for real, negative for virtual) and stick to it. The equation is only valid if all terms follow the same sign system.
  2. Remember the absolute value in magnification — Magnification is always reported as a positive number representing size ratio, even though image distance might be negative for virtual images. The formula M = |di|/do ensures you always get a positive result.
  3. Verify physical reasonableness — If your calculated image distance is extremely large or the magnification seems wrong for your setup, recheck your object distance. For a converging lens, an object very close to the focal length should give huge magnification values.
  4. Distinguish real from virtual images — Real images have positive di values and can be projected or photographed. Virtual images have negative di values and appear only when looking through the lens. This distinction matters for experimental verification.

Diverging Lenses and Extended Applications

Diverging lenses (negative focal length) always produce virtual, upright, and diminished images regardless of object position. They cannot form real images. Examples include most eyeglass corrections for myopia (nearsightedness) and peepholes in doors.

The thin lens equation works identically for both lens types. The negative focal length automatically ensures that calculated image distances are negative (virtual) and magnifications less than one. This universality makes the equation extremely powerful in optical design.

For more complex systems—such as compound microscopes, telescopes, or multi-lens cameras—you apply the thin lens equation iteratively, using the image from one lens as the object for the next.

Frequently Asked Questions

What does focal length tell you about a lens?

Focal length is the distance at which a lens brings parallel light rays to a single point. A short focal length (like 20 mm) produces strong magnification and a narrow field of view; a long focal length (like 200 mm) produces weaker magnification and a wider field of view. For diverging lenses, focal length is negative, indicating they spread parallel rays outward as though coming from a virtual point behind the lens.

Can the thin lens equation predict both real and virtual images?

Yes. Real images occur when the calculated image distance is positive; they form on the opposite side of the lens from the object and can be projected. Virtual images occur when the image distance is negative; they appear on the same side as the object and cannot be projected. For a converging lens with the object closer than the focal length, you get a virtual image—exactly what happens in a magnifying glass.

How do you use magnification to determine image size?

If you know the object height and magnification, multiply them: Image Height = Object Height × Magnification. For example, a 2 cm object viewed through a lens with magnification 3 produces an image 6 cm tall. Remember that for real images from a single lens, this magnified image is inverted relative to the original object.

Why does the thin lens equation fail when an object is exactly at the focal point?

When the object distance equals the focal length, the term 1/do equals 1/f, making 1/di equal zero. This means the image distance is infinite—the light rays emerge parallel and never converge to form a real image. This is why you cannot project an image of an object placed exactly at a lens's focal point, though it is useful in applications like flashlights where parallel light is desired.

Does the thin lens equation work for thick lenses or mirrors?

The thin lens equation applies only when lens thickness is negligible compared to focal length and object distance. Thick lenses require principal planes and more complex calculations. For mirrors, a similar equation exists but uses different sign conventions and applies to parabolic or spherical reflecting surfaces, not refracting ones.

How is lens power related to focal length?

Lens power (measured in diopters) is the reciprocal of focal length in metres: Power = 1/f. A lens with focal length 0.5 m (50 cm) has power +2 diopters. Stronger lenses (shorter focal length) have higher power values. Eyeglass prescriptions are written in diopters for this reason—they directly indicate the bending strength of the corrective lens needed.

More physics calculators (see all)