Formula & Calculator

Thin Lens Equation

Relates focal length to object and image distances for a thin lens.

OpticsGeometric OpticsLenses

Thin Lens Equation Calculator 1/f = 1/dₒ + 1/dᵢ

1/f = 1/dₒ + 1/dᵢ
f = focal length  ·  dₒ = object distance  ·  dᵢ = image distance
⟹ Solve f, dₒ, dᵢ
cm
cm
cm
Please fix the errors above.
Solve for:
Presets:
Focal Length
f: dₒ: dᵢ:
✓ Copied!
Lens Power (1/f)
Weak (< 0.05) Medium (0.05–0.15) Strong (> 0.15)
1/f = 1/dₒ + 1/dᵢ  ·  All distances are positive for real objects and images.

Interpretation

1/f = 1/d_o + 1/d_i. Relates focal length f, object distance d_o, and image distance d_i. Used to determine image location for thin lenses.

1/f = 1/d_o + 1/d_i
Thin Lens Equation

Variables

SymbolQuantityUnit
fFocal lengthm
d_oObject distancem
d_iImage distancem

What it means

The thin lens equation is the fundamental formula for locating images formed by thin lenses. It uses the sign convention: positive for real objects and images. It applies to converging and diverging lenses. This equation is used in designing cameras, projectors, microscopes, telescopes, and eyeglasses. It also helps understand the optics of the human eye. The magnification is related: m = −d_i/d_o. Understanding this equation is crucial for optical engineers and anyone working with imaging systems. It is derived from geometry and Fermat’s principle. The equation is also used in ray tracing and in optical design software.

Worked example

Thin Lens Equation – Two Detailed Examples

Real‑World
Scenario: A photographer uses a lens of focal length 12 cm to focus on a subject placed 20 cm in front of the lens. They need to find the image distance d_i to adjust the camera sensor position. Using the thin lens equation 1/f = 1/d_o + 1/d_i, they calculate 1/12 = 1/20 + 1/d_i, so d_i = 30 cm. The image forms 30 cm behind the lens, which corresponds to the sensor plane. This ensures a sharp image.
ParameterValue
do (cm)20
f (cm)12
11/d_i = 1/f − 1/d_o = 1/12 − 1/20 = (5−3)/60 = 2/60 = 1/30
2d_i = 30 cm
Result 30 cm ✓ Image distance
Scenario: A magnifying glass with a focal length of 8 cm is used to view a small object placed 10 cm from the lens. The user wants to know where the virtual image will appear. Applying the thin lens equation, they get d_i = −40 cm (negative indicates a virtual image on the same side as the object). This tells them the image appears at 40 cm behind the lens, providing the magnified view needed for reading fine details.
ParameterValue
do10
f8
11/d_i = 1/8 − 1/10 = (5−4)/40 = 1/40
2d_i = 40 cm, but virtual → d_i = −40 cm
Result −40 cm (virtual) ✓ Virtual image
Insight: The thin lens equation relates object distance, image distance, and focal length. Positive d_i indicates a real image (formed on the opposite side); negative indicates a virtual image (formed on the same side).

Common mistakes

  • Thin lens equation: 1/f = 1/d_o + 1/d_i – sign convention matters.
  • Sign convention: For real objects, d_o is positive. For real images, d_i is positive. For virtual images, d_i is negative.
  • Focal length f: Positive for converging (convex) lenses, negative for diverging (concave).
  • Units: All distances must be in the same units (e.g., cm, m).
  • Lens thickness: The equation assumes a thin lens (thickness ≪ radii of curvature) – for thick lenses, use the lensmaker’s equation with principal planes.

Applications

The thin lens equation, 1/f = 1/d_o + 1/d_i, relates the focal length (f) of a thin lens to the object distance (d_o) and image distance (d_i). This is the central formula in geometrical optics for determining image formation. Engineers, opticians, and photographers use it to design camera lenses, eyeglasses, microscopes, and telescopes. By solving for the required focal length, they can achieve the desired magnification or focus. It is also used in machine vision systems to set up proper focus and field of view. The equation assumes thin lenses, but is a good approximation for many practical systems. Understanding this formula is essential for anyone designing or using optical imaging devices.

  • Design and selection of camera lenses and projectors
  • Prescribing corrective lenses in optometry
  • Design of microscopes, telescopes, and magnifiers
  • Setting up machine vision and inspection systems
  • Educational demonstration of image formation

Frequently Asked Questions

Q01What is the Thin Lens Equation used for?
A01

It relates the focal length (f) of a thin lens to the object distance (dₒ) and image distance (dᵢ): 1/f = 1/dₒ + 1/dᵢ. It is the basis for imaging calculations in optics.

Q02What do the variables f, dₒ, and dᵢ represent?
A02

f = focal length (positive for converging, negative for diverging).
dₒ = object distance (positive for real objects).
dᵢ = image distance (positive for real images on the opposite side).

Q03What is the sign convention for the Thin Lens Equation?
A03

Using the Cartesian sign convention: distances are positive in the direction of incident light. For a converging lens, f > 0; for diverging, f < 0. Real images have dᵢ > 0; virtual images have dᵢ < 0.

Q04How is the Thin Lens Equation derived?
A04

It is derived from the paraxial approximation using Snell's Law and the geometry of spherical surfaces, assuming the lens thickness is negligible.

Q05What is the magnification of a thin lens?
A05

Linear magnification m = −dᵢ/dₒ. If |m| > 1, the image is magnified; if negative, the image is inverted.

Q06Give a worked example using the Thin Lens Equation.
A06

A converging lens has f = 10 cm. An object is placed 30 cm from the lens. Find the image distance: 1/10 = 1/30 + 1/dᵢ → 1/dᵢ = 1/10 − 1/30 = 2/30 → dᵢ = 15 cm (real image).

Q07What are the limitations of the Thin Lens Equation?
A07

It assumes a thin lens (negligible thickness) and paraxial rays (small angles). It does not account for lens aberrations or thick lens effects.

Q08How is the Thin Lens Equation used in camera design?
A08

To compute the required focal length for a given field of view and to determine the lens-to-sensor distance to achieve focus at various object distances.

Q09What is the difference between a convex and a concave lens?
A09

A convex lens is thicker in the middle, converges light, and has positive f. A concave lens is thinner in the middle, diverges light, and has negative f.

Q10How do you determine the focal length of a lens experimentally?
A10

By measuring object and image distances and solving the equation, or by using the method of distant object (dₒ ≈ ∞) where f ≈ dᵢ.