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.

Lens Type
Converging (+)
Focal length = 100.00 mm
Object Distance
250.000 mm
Distance from object to lens (always positive for real objects)
Image Distance
166.667 mm
Positive → Real image (opposite side of lens)
Magnification
-0.6667×
Negative → Inverted image
Image Height
-13.333 mm
|h_i| = |m| × h_o = 0.667 × 20
Image Character
Real, Inverted, Diminished
d_o = 2.50f
Optical Power
10.000 diopters
1/f in meters. Positive for converging, negative for diverging.
Object–Lens–Image Layout
Object
Image
d_o (×f)d_o (mm)d_i (mm)MagnificationType
0.5f50.0-100.002.000Virtual
0.75f75.0-300.004.000Virtual
1f100.0Parallel rays
1.25f125.0500.00-4.000Real
1.5f150.0300.00-2.000Real
2f200.0200.00-1.000Real
3f300.0150.00-0.500Real
5f500.0125.00-0.250Real
10f1,000.0111.11-0.111Real
100f10,000.0101.01-0.010Real
Planning notes, formulas, and examples

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.

When This Page Helps

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 the Inputs

  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 used
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

  • Keep the sign convention consistent from the start, especially when working with diverging lenses or virtual images.
  • If the object is close to the focal point, expect the image distance to change rapidly with small input changes.
  • Use the thin-lens model for first-pass estimates; thick elements and compound optics need a more complete treatment.
  • When the goal is image size on a sensor, track magnification and image distance together instead of solving for only one value.

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.

Sources & Methodology

Last updated:

Frequently Asked Questions

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