Uses the thin lens equation 1/a + 1/b = 1/f to find where the image forms and how large it is. A negative image distance means a virtual image on the same side as the object. For a diverging lens, enter a negative focal length.
Where a lens forms its image follows from a single equation.
Here is the object distance, the image distance and the focal length.
This is the heart of it.
Place an object 30 cm from a converging lens of focal length 10 cm.
The magnification is . Fifteen centimetres beyond the lens sits an inverted image at half size. This is the geometry of a camera and of a projector.
Take the same lens but move the object inside the focal length, to cm.
The negative means a virtual image, magnified twofold. Looking through the lens you see an upright image at twice the size, apparently 10 cm behind the object. That is a magnifying glass.
The equation is telling you why a magnifier only magnifies when the object is inside the focal point.
Put the object exactly at the focal point () and the refracted rays leave perfectly parallel: no image forms anywhere. This calculator returns an error for that case.