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.
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.
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.
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).
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).
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.
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.
The image forms at infinity — rays emerge parallel from the lens. This is the basis of collimators and spotlight projectors.
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.
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).
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.
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.
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.