Skip to content

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.

Optical bench

Key values as a table
QuantityValue
Lens 1: focal length10 cm, converging
Object distance30 cm
Object height1 cm
Image position from lens 1 (positive: behind it)15 cm
Magnification−0.5×

Result

Magnification: −0.5× A real, inverted image 0.5 cm tall, 15 cm behind the lens.
Lens 1 and the object
cm

cm

cm

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

  1. 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.
  2. 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.
  3. 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. 1/f = 1/dₒ + 1/dᵢ gives dᵢ = 30 cm behind the lens.
  2. Magnification m = −dᵢ/dₒ = −2, so the image is upside down.
  3. 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.

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.

Send feedback