Drag the green object arrow left and right to explore image formation for converging and diverging lenses. Compare a manual focal length with the focal length predicted by the lens maker equation.
This simulator can calculate the focal length in two different ways. In Manual slider mode, you choose f directly. In Lens maker equation mode, the simulator computes f from the refractive index and the two surface radii.
After the simulator finds f, it uses the thin-lens equation below to determine where the image forms:
Here dₒ is the object distance and dᵢ is the image distance. Then the magnification is found from m = -dᵢ / dₒ, which tells whether the image is upright or inverted and how tall it should be.
For a converging lens, a real image appears on the right side when the object is outside the focal length. For a diverging lens, the image stays virtual and upright on the same side as the object.