What Is the Thin Lens Equation?
The thin lens equation describes how a lens forms an image. It connects three quantities: the focal length f of the lens, the distance from the object to the lens dₒ, and the distance from the lens to the image dₕ. This calculator solves for the image distance and the magnification, so you can predict where an image will appear and whether it is enlarged, reduced, upright, or inverted.
How to Use It
Enter the focal length and the object distance using consistent units (centimeters are common in optics problems). A converging (convex) lens has a positive focal length; a diverging (concave) lens has a negative focal length. The calculator returns the image distance and the magnification automatically.
The Formula Explained
The governing relationship is \(1/f = 1/d_o + 1/d_i\). Rearranged to find the image distance:
$$\frac{1}{d_i} = \frac{1}{f} - \frac{1}{d_o}$$The magnification is
$$M = -\frac{d_i}{d_o}$$A positive \(d_i\) means a real image forms on the opposite side of the lens; a negative \(d_i\) means a virtual image forms on the same side as the object. A negative \(M\) indicates an inverted image, while a positive \(M\) indicates an upright image.
Worked Example
Suppose a converging lens has \(f = 10\,\text{cm}\) and an object sits at \(d_o = 30\,\text{cm}\). Then
$$\frac{1}{d_i} = \frac{1}{10} - \frac{1}{30} = \frac{3}{30} - \frac{1}{30} = \frac{2}{30}$$so \(d_i = 15\,\text{cm}\). The magnification is \(M = -15/30 = -0.5\), meaning the image is real, inverted, and half the size of the object.
FAQ
What sign convention is used? Distances measured along the direction light travels are positive. Real images and converging lenses give positive values; virtual images and diverging lenses give negative ones.
What does negative magnification mean? A negative magnification means the image is inverted relative to the object. The absolute value tells you the size ratio.
Can I use it for mirrors? The mirror equation has the same form, so you can use it for thin mirrors too, keeping in mind the mirror sign conventions.