ScienceMarch 30, 2026

Thin Lens Equation Calculator Guide: Focal Length, Image Distance & Magnification

By The hakaru Team·Last updated March 2026

Quick Answer

  • *The thin lens equation is 1/f = 1/dₒ + 1/dᵢ, relating focal length, object distance, and image distance.
  • *Converging (convex) lenses have positive focal lengths; diverging (concave) lenses have negative focal lengths.
  • *Magnification is calculated as M = –dᵢ/dₒ, where negative values mean an inverted image.
  • *The same equation form applies to concave and convex mirrors with adjusted sign conventions.

What Is the Thin Lens Equation?

The thin lens equation describes how light bends through a lens to form an image. It connects three values: the focal length of the lens, the distance from the object to the lens, and the distance from the lens to the image.

The formula is straightforward:

1/f = 1/dₒ + 1/dᵢ

Where:

  • f = focal length of the lens
  • dₒ = object distance (from the object to the lens)
  • dᵢ = image distance (from the lens to the image)

According to Hecht's Optics(6th edition, 2024), this equation is accurate to within 1% for lenses whose thickness is less than 10% of their focal length. That covers most everyday lenses — eyeglasses, camera lenses, magnifying glasses, and projector optics.

Sign Conventions Matter

The thin lens equation only works if you follow consistent sign conventions. The most common convention (used in physics courses and the College Board AP Physics curriculum) is:

QuantityPositive WhenNegative When
Focal length (f)Converging (convex) lensDiverging (concave) lens
Object distance (dₒ)Object on incoming-light sideVirtual object (rare)
Image distance (dᵢ)Real image (opposite side)Virtual image (same side as object)
Magnification (M)Upright imageInverted image

Getting the signs wrong is the most common mistake in optics problems. A 2023 study in Physical Review Physics Education Research found that 62% of introductory physics students made at least one sign error on lens equation problems. Our calculator handles sign conventions automatically.

Worked Example: Converging Lens

An object is placed 30 cm from a converging lens with a focal length of 10 cm. Where does the image form?

1/dᵢ = 1/f – 1/dₒ
1/dᵢ = 1/10 – 1/30
1/dᵢ = 3/30 – 1/30 = 2/30
dᵢ = 15 cm

The image forms 15 cm on the opposite side of the lens. Since dᵢ is positive, the image is real and can be projected onto a screen.

Magnification: M = –dᵢ/dₒ = –15/30 = –0.5

The image is inverted (negative sign) and half the size of the object (|M| = 0.5). This is exactly how a camera lens works when photographing distant subjects.

Worked Example: Diverging Lens

An object is 20 cm from a diverging lens with a focal length of –15 cm.

1/dᵢ = 1/(–15) – 1/20
1/dᵢ = –4/60 – 3/60 = –7/60
dᵢ = –8.57 cm

The negative image distance means the image is virtual — it appears on the same side as the object. This is why objects viewed through a diverging lens (like a peephole in a door) always appear smaller and upright. According to the Optical Society of America, diverging lenses are used in over 30% of corrective eyeglass prescriptions to treat myopia (nearsightedness).

Image Types at Different Object Distances

For a converging lens, the image characteristics change dramatically depending on where you place the object relative to the focal point:

Object PositionImage PositionImage TypeSize
Beyond 2fBetween f and 2fReal, invertedReduced
At 2fAt 2fReal, invertedSame size
Between f and 2fBeyond 2fReal, invertedEnlarged
At fAt infinityNo image
Inside fSame side as objectVirtual, uprightEnlarged

This table is fundamental to understanding cameras, projectors, microscopes, and magnifying glasses. A magnifying glass works because you hold the object inside the focal length, producing an enlarged virtual image.

Real-World Applications

Camera Lenses

A standard 50 mm camera lens focused on a subject 2 meters away produces an image about 51.3 mm behind the lens. The global camera lens market was valued at $5.8 billion in 2024 (Grand View Research), and every lens design starts with the thin lens equation as its foundation before adding corrections for aberrations.

Corrective Eyeglasses

Optometrists prescribe lenses in diopters, which is simply the reciprocal of focal length in meters (D = 1/f). A –2.0 diopter prescription means a diverging lens with f = –0.5 m. The World Health Organization estimates 2.7 billion people worldwide need corrective lenses, making this the most common application of the thin lens equation.

Microscopes and Telescopes

Compound microscopes use two converging lenses in series. The objective lens creates a real, magnified intermediate image, and the eyepiece acts as a magnifying glass on that image. Total magnification is the product of both lens magnifications — a 40× objective with a 10× eyepiece gives 400× total magnification.

The Lensmaker's Equation

The thin lens equation tells you where images form. The lensmaker's equation tells you why a lens has a particular focal length:

1/f = (n – 1) × [1/R₁ – 1/R₂]

Where n is the refractive index of the lens material, and R₁ and R₂ are the radii of curvature of the two lens surfaces. Crown glass (n = 1.52) and flint glass (n = 1.62) are the most common optical materials, chosen based on the desired focal length and aberration correction.

Calculate image distance, focal length, or magnification instantly

Use our free Lens Equation Calculator →

Frequently Asked Questions

What is the thin lens equation?

The thin lens equation is 1/f = 1/dₒ + 1/dᵢ, where f is the focal length, dₒ is the object distance, and dᵢ is the image distance. It works for both converging and diverging lenses when you apply the correct sign conventions. The equation assumes the lens thickness is negligible compared to its focal length.

What is the sign convention for the thin lens equation?

Object distance (dₒ) is positive when the object is on the incoming light side. Image distance (dᵢ) is positive for real images (opposite side) and negative for virtual images (same side as the object). Focal length is positive for converging lenses and negative for diverging lenses.

How do you calculate magnification from the lens equation?

Magnification (M) equals –dᵢ/dₒ. A positive M means the image is upright (virtual), while a negative M means the image is inverted (real). The absolute value tells you the size ratio. For example, M = –2 means the image is inverted and twice the size of the object.

What happens when an object is at the focal point?

When dₒ = f, the equation gives 1/dᵢ = 0, meaning dᵢ approaches infinity. The refracted rays exit parallel to each other and never converge to form an image. This principle is used in collimated light sources, flashlights, and laser beam expanders.

Can this equation be used for mirrors?

Yes. The mirror equation has the same mathematical form: 1/f = 1/dₒ + 1/dᵢ. For concave mirrors, f is positive; for convex mirrors, f is negative. The magnification formula M = –dᵢ/dₒ also applies. Our lens equation calculator works for both lenses and mirrors.