Thin Lens Equation Calculator
Calculate image distance, object distance, or focal length using the thin lens equation.
Interpreting the Thin Lens Equation and Its Signs
The thin lens equation connects where an object is placed, the focal length of the lens, and where the image forms. For the common real-is-positive convention used in many introductory problems, a converging lens has positive focal length and a diverging lens has negative focal length. A positive image distance corresponds to a real image on the opposite side of the lens; a negative image distance corresponds to a virtual image.
The equation is reciprocal, so object distance and image distance do not change linearly. Moving an object close to the focal point can send the image very far away. If a real object is placed inside the focal length of a converging lens, the calculated image distance becomes negative: the rays leave the lens diverging and the observer traces them backward to a virtual, upright, magnified image.
| Symbol | Meaning | Why it appears / units |
|---|---|---|
| f | Focal length | Positive for converging, negative for diverging lenses in this convention. |
| do | Object distance | Distance from object to lens; usually positive for a real object. |
| di | Image distance | Positive for real images, negative for virtual images. |
| m | Lateral magnification | Negative means inverted; positive means upright. |m| gives the size ratio. |
Keep every distance in the same unit. Centimeters are convenient because the reciprocals preserve the equation as long as f, do, and di all use centimeters. The sign convention is more important than the chosen unit system.
Worked Examples
Common Mistakes
A diverging lens requires negative f in this convention. Entering it as positive predicts the behavior of a converging lens instead.
The sign of magnification describes orientation. Image type is determined from di: positive is real and negative is virtual.
The reciprocal terms must use the same distance unit. Mixing units destroys the numerical relationship even though each individual value looks reasonable.
Frequently Asked Questions
Formula Explorer connections
Interpretation: This relationship connects light propagation, geometry, wavelength, refraction, interference or image formation. Assumption: Use a consistent sign convention and units. Paraxial rays, thin elements, coherent light, vacuum wavelength or ideal optical components may be assumed.