Thin Lens Equation Calculator

Solve the thin lens equation 1/f = 1/d_o + 1/d_i for image distance, magnification, and image characteristics. Supports converging and diverging lenses.

About the Thin Lens Equation Calculator

The thin lens equation 1/f = 1/d_o + 1/d_i is one of the most important relationships in optics, connecting the focal length of a lens to the positions of an object and its image. For converging (positive) lenses, the focal length is positive; for diverging (negative) lenses, it is negative. This equation assumes the lens thickness is negligible compared to the focal length — an excellent approximation for most practical situations.

The sign conventions follow the standard real-is-positive rule: real objects and real images have positive distances, while virtual images have negative image distance. The magnification m = −d_i/d_o gives both the size ratio and orientation of the image: negative magnification means the image is inverted, positive means upright. When |m| > 1 the image is enlarged; when |m| < 1 it is diminished.

This calculator solves the thin lens equation in any direction — find image distance from object distance and focal length, find required object distance from desired image distance, or verify a known configuration. A comprehensive object-distance table shows how image properties change as the object moves from inside the focal length to far beyond, illustrating the transition from virtual/upright/enlarged to real/inverted/diminished images. Visual diagrams and preset configurations make it easy to explore the full range of thin lens behavior.

Why Use This Thin Lens Equation Calculator?

Use this calculator when you need image distance and magnification quickly from a basic lens setup without moving into a full thick-lens model.

It is useful for classroom optics, magnifier setups, simple imaging systems, and first-pass lens placement during early design work. It also keeps the object distance, focal length, and image classification together so the basic lens behavior is easier to check in one step.

How to Use This Calculator

  1. Select what to solve for: image distance, object distance, or verification.
  2. Enter the focal length (positive for converging, negative for diverging).
  3. Input the object distance and/or image distance as required.
  4. Optionally enter object height for image height calculation.
  5. Review the image distance, magnification, and image classification.
  6. Use the distance table to explore image behavior at different object positions.

Formula

1/f = 1/d_o + 1/d_i. Magnification: m = −d_i/d_o. Image height: h_i = m × h_o. Power: P = 1/f (in diopters when f is in meters).

Example Calculation

Result: d_i = 166.7 mm, m = −0.667× (real, inverted, diminished)

1/100 = 1/250 + 1/d_i → 1/d_i = 1/100 − 1/250 = 0.006 → d_i = 166.7 mm. M = −166.7/250 = −0.667 (inverted, 2/3 size).

Tips & Best Practices

Practical Guidance

The thin lens equation is easiest to use when you think about image behavior before calculating. Converging lenses can flip between virtual and real images depending on whether the object is inside or outside the focal length, while diverging lenses keep the image virtual for real objects.

Common Pitfalls

The most common mistakes are sign errors and unit mismatches. Another is stretching the thin-lens approximation too far for thick lenses or multi-element camera optics. If the setup includes several elements, lens spacing and principal planes start to matter as much as the simple equation itself. Real optical systems often need that extra detail once the first-pass lens placement is set.

Frequently Asked Questions

What happens when the object is at the focal point?

The image forms at infinity — rays emerge parallel from the lens. This is the basis of collimators and spotlight projectors.

When does a converging lens produce a virtual image?

When the object is inside the focal length (d_o < f). The image is virtual, upright, and enlarged — this is how a magnifying glass works.

Does a diverging lens ever produce a real image?

Not with a real object. A diverging lens always produces a virtual, upright, diminished image for real objects. It can produce a real image only with a virtual object (converging beam entering the lens).

What is optical power in diopters?

Power P = 1/f (f in meters) is measured in diopters (D). A 100mm lens has P = +10D. Eyeglass prescriptions use diopters. Positive = converging, negative = diverging.

How accurate is the thin lens approximation?

Very accurate for most single-element lenses where thickness << focal length. For thick lenses or multi-element systems, use the thick lens or matrix optics formulations.

Can I combine thin lenses?

Yes. For thin lenses in contact: 1/f_total = 1/f₁ + 1/f₂. For separated lenses, use the image of the first lens as the object for the second.

Related Pages