How do lenses make an image?
Put one or two lenses on a bench, drag the object and the focal points, and watch the rays build the image.
What you enter stays on your device while you use this tool. Opening a shared link sends the settings in its address to HowToolbox to prepare the page.
Optical bench
Key values as a table
| Quantity | Value |
|---|---|
| Lens 1: focal length | 10 cm, converging |
| Object distance | 30 cm |
| Object height | 1 cm |
| Image position from lens 1 (positive: behind it) | 15 cm |
| Magnification | −0.5× |
- Magnification
- −0.5×
- Image height (negative: upside down)
- −0.5 cm
- Image position from lens 1 (positive: behind it)
- 15 cm
1/f = 1/dₒ + 1/dᵢ: 1/10 = 1/30 + 1/15
Put one or two lenses on a bench, drag the object and the focal points, and watch the rays build the image.
The ray diagram fills the screen, with the lens settings in a panel under it and full screen for the whole bench.
How to use
- Set the focal length of lens 1 (positive for a converging lens, negative for a diverging one) and how far the object stands in front of it.
- Choose two lenses to add a second one: the image of the first lens becomes the object of the second, as in a microscope or a telescope.
- Drag the object's tip, the focal points or the second lens in the drawing, and read the image position, size and magnification.
How it works
A thin lens bends light rays so that those from one point of an object meet again at one point of the image. A converging lens (thicker in the middle) pulls rays together; a diverging lens (thinner in the middle) spreads them. The focal length f tells how strongly: the shorter, the stronger.
For one lens, 1/f = 1/dₒ + 1/dᵢ, where dₒ is the object distance and dᵢ the image distance. The magnification is m = −dᵢ/dₒ: a negative value means the image is upside down, and a positive dᵢ means a real image you could catch on a screen, a negative one a virtual image you only see by looking through the lens. With two lenses, the image of the first is the object of the second, and the magnifications multiply.
For example, a 10 cm lens with an object 30 cm away gives an image 15 cm behind it, 0.5 times the size and upside down. The drawing follows the three principal rays: parallel to the axis, through the lens's centre and through its focal point. It assumes thin lenses and small angles, so it ignores lens errors such as blur at the edges. Source: OpenStax University Physics, volume 3, section 2.4.
Worked example
Where does a 10 cm lens form the image of an object 15 cm away?
- 1/f = 1/dₒ + 1/dᵢ gives dᵢ = 30 cm behind the lens.
- Magnification m = −dᵢ/dₒ = −2, so the image is upside down.
- It is a real image: a screen at that spot would show it.
A real, inverted image 30 cm behind the lens, 2 times the size.
Sources
- OpenStax University Physics, vol. 3, §2.4 Thin LensesUsed for: formula
Frequently asked questions
What is the difference between a real and a virtual image?
A real image is where light rays actually meet, so a screen placed there shows it. A virtual image is where rays only seem to come from, as in a magnifying glass; you can see it but not project it.
Why is the image upside down?
A single converging lens flips the picture when the object is beyond the focal point. A negative magnification means exactly that. Close to the lens, inside the focal point, the image is upright and magnified.
What happens when the object is exactly at the focal point?
The rays leave the lens parallel, so they never meet: the image forms at infinity. A second lens could still bring them together, but this tool only reports that no finite image forms.
How can a diverging lens make an image?
A diverging lens always makes a smaller, upright virtual image on the object's side. You see it by looking through the lens, as with the peephole in a door.
Can I use a mirror here?
This bench is for lenses. For a single lens or a curved mirror in other units, see the lenses calculator, which uses the same equation.
Next you might need
More in Physics
- Artificial gravity calculator, private, runs on your device
- Black hole time dilation, private, runs on your device
- Blackbody radiation calculator, private, runs on your device
- Buoyancy calculator, private, runs on your device
- Circular motion calculator, private, runs on your device
- Colour mixing: light and paint, private, runs on your device





