A convex lens in a magnifying glass, a concave lens in a short-sighted person's spectacles, two lenses in a telescope. The same small formula decides what each one does. The lens formula looks a lot like the mirror formula, but one sign is different, and that single sign is what catches students who learn both on the same night.

Convex lens: beyond F the image is real and inverted, inside F it is virtual and erect

The thin lens formula

1/v − 1/u = 1/f

Notice the minus sign. For mirrors it was a plus. Distances are measured from the optical centre of the lens, with the direction of incident light positive. An object on the left of the lens has a negative u. A convex lens has positive f, a concave lens has negative f. A real image forms on the other side of the lens, so v is positive. A virtual image forms on the same side as the object, so v is negative. The magnification is

m = h′/h = v/u

Here again the lens and mirror differ: the mirror had m = −v/u, the lens has m = +v/u. If you keep one formula in your head and bend it to the other, you will make this error. Learn the two as a pair.

Convex lens: what the image does as the object moves in

Take a convex lens of focal length 10 cm and bring the object closer, step by step.

u = −30 cm: 1/v = 1/f + 1/u = 1/10 − 1/30 = 1/15, so v = +15 cm. m = v/u = 15/(−30) = −0.5. Real, inverted, half the size. This is how a camera works.
u = −20 cm (object at 2F): 1/v = 1/10 − 1/20 = 1/20, so v = +20 cm and m = −1. Real, inverted, same size, formed at 2F on the other side.
u = −15 cm: 1/v = 1/10 − 1/15 = 1/30, so v = +30 cm and m = −2. Real, inverted, twice as large. A projector sits in this region.
u = −5 cm (inside F): 1/v = 1/10 − 1/5 = −1/10, so v = −10 cm and m = −10/(−5) = +2. Negative v means the image is on the object side, virtual. Positive m means erect. A magnifying glass works exactly like this.

So the rule for a convex lens is simple: object beyond F gives a real, inverted image on the opposite side, object inside F gives a virtual, erect and magnified image. At F the image goes off to infinity.

Concave lens: always the same kind of image

A concave lens always gives a virtual, erect and diminished image, between the optical centre and the focus, on the same side as the object. Try f = −10 cm and u = −30 cm: 1/v = 1/f + 1/u = −1/10 − 1/30 = −4/30, so v = −7.5 cm. m = v/u = −7.5/(−30) = +0.25. The image is a quarter of the size and upright. That is why a concave lens is used to correct short sight: it makes distant objects appear smaller and closer, which is what a myopic eye needs.

Power of a lens

The power measures how strongly a lens bends light and is the reciprocal of the focal length in metres.

P = 1/f (f in metres), unit: dioptre (D)

A convex lens of f = 10 cm = 0.1 m has P = +10 D. A concave lens of f = −10 cm has P = −10 D. For lenses placed in contact, the powers add: P = P₁ + P₂. Opticians prescribe in dioptres, so a pair of spectacles marked −2.5 D has a concave lens with focal length 40 cm.

Lens maker's formula

The focal length of a thin lens depends on its material and the curvature of its two faces.

1/f = (n − 1)(1/R₁ − 1/R₂)
Worked check: a double convex lens of glass (n = 1.5) has R₁ = +20 cm and R₂ = −20 cm. Then 1/f = 0.5 × (1/20 + 1/20) = 0.05, so f = 20 cm. Put the same lens in water (n = 1.33) and the relative index drops to 1.5/1.33 ≈ 1.13, so the lens becomes much weaker, with f ≈ 78 cm. That is why a diver's vision is blurred without a mask: the cornea loses most of its bending power in water.

Two mistakes I keep correcting

One, using the mirror formula for a lens. The difference is a single sign, but it changes the answer. Two, mixing up which side is positive. In a lens the light goes through, so a real image is on the far side and v is positive. In a mirror the light bounces back, so a real image is in front and v is negative. Drawing the ray diagram first tells you which sign to expect.

Try it yourself

Lens Ray Diagram Lens Power & Diopter Optical Instruments Human Eye Defects