Thin Lens Equation and Lensmaker's Equation
Slip on a pair of glasses, raise a magnifying glass to a postage stamp, or press the shutter on a camera, and you are trusting the same two curved pieces of glass to do the same job: gather a fan of rays leaving a point and bend them back toward a point somewhere else. A lens looks like a single object, but optically it is two refracting surfaces working in series — light bends once on entering the glass and once on leaving it. When the glass is thin enough that the gap between those two bends is negligible next to the focal length, the whole element collapses to a single plane carrying a single number: its power. That idealisation is the thin lens, and it carries almost the entire practical load of imaging optics. Two formulas run the show. The lensmaker's equation builds a lens: it turns the two surface curvatures and the glass index into a focal length. The thin-lens equation then uses the lens: given where the object sits, it says where the image lands, and whether that image is real or virtual, upright or inverted, magnified or shrunk. Both drop straight out of one earlier result — refraction at a single spherical surface — applied twice and added. The price of that power is discipline. Every distance, every radius, every focal length carries a sign, and one flipped sign turns a converging lens into a diverging one or a real image into a virtual one. We fix a single convention and hold it for every symbol, because the most common mistake in all of geometric optics is not a wrong formula but a wrong sign.
- A thin lens is two spherical refracting surfaces in the limit of negligible separation; light effectively bends at one plane and adds a fixed convergence, the power .
- The lensmaker's equation gives the focal length from the two radii and the glass index — the design formula.
- The thin-lens equation locates the image; the transverse magnification fixes its size and orientation — the imaging formulas.
- Signs are everything: with the Hecht convention is a real object, a real image, when the centre of curvature lies on the outgoing side, and for a converging lens.
- For a converging lens, a real object forms a real, inverted image when ; when , the image is virtual, erect, and magnified --- the regime used by a magnifying glass.
- Key idea: applying the spherical-refraction formula at each surface of a thin lens and then taking the negligible-thickness limit gives , while paraxial ray geometry gives . The first determines the focal length from the lens geometry; the second determines the image position.
A thin lens is nothing more than two spherical refractions stacked at one plane. Compose them in the paraxial, zero-thickness limit and the intermediate image cancels, leaving the lensmaker's equation for the focal length and the thin-lens equation for imaging. Read with a single, rigidly held sign convention, those two relations locate every image a simple lens can form and label it real or virtual, erect or inverted, enlarged or reduced.
Where this lives today
Autofocus relies on the same thin-lens imaging picture. A phone camera moves its lens by small amounts while an autofocus system evaluates image sharpness or phase information, adjusting the lens position until the subject is focused on the sensor. The thin-lens equation provides the underlying geometrical relation between object distance, image distance, and focal length. Eyeglass and contact-lens prescriptions are written in dioptres — — precisely because thin lenses in contact add their powers, so the optician's correction simply sums with the eye's own . In the optics lab, placing a fibre tip or pinhole near the front focal plane of a converging lens can produce an approximately collimated beam, while two suitable lenses separated by approximately can form a Keplerian beam expander with angular-magnification magnitude . Where the thin-lens idealisation runs out, its successors carry Gauss's programme forward: finite thickness is absorbed into principal planes, the wavelength dependence that blurs colour is cancelled by cementing a crown lens to a flint lens into an achromatic doublet (powers adding, dispersions opposing), and the residual paraxial errors become the Seidel aberrations that lens-design software tames by ray-tracing. The thin-lens equation and lensmaker's equation remain the starting point for many such first-order optical designs, before more detailed corrections are included.
The physical picture
Picture a lens as a device that adds a fixed dose of convergence to whatever bundle of rays passes through. Rays arriving parallel to the axis leave aimed at a single point — the focal point a distance behind the lens. Rays diverging from a nearby object are bent less steeply toward the axis, so they reconverge farther away; the closer the object, the farther the image. That single trade-off is the reciprocal relation , and the whole geometry of imaging is contained in it. The cleanest way to see where an image forms is to trace three special rays from the tip of the object. One leaves parallel to the axis and, by definition of the focal point, bends through . One passes straight through the centre of a thin lens undeviated. One heads through the front focal point and emerges parallel to the axis. All three must cross at the image tip — three routes to the same conclusion, which is why the construction is so reliable.
Now change one thing — slide the object inside the focal length. The rays from it are diverging too steeply for the lens to bring them back to a crossing on the far side; instead they leave still diverging, and their backward extensions meet on the same side as the object. There is no light there, so the image is virtual: you cannot catch it on a screen, but your eye, looking through the lens, sees an enlarged upright version of the object. That is a magnifying glass. The single reciprocal curve below captures both behaviours at once — and the boundary between them is the sharpest feature on the plot.
The blue branch is the familiar world of the projector and camera: for a real object beyond the focal length, the lens forms a real image on the screen or sensor; the image distance increases from (object at infinity) toward infinity as the object approaches . Cross into the amber band — where the real object lies closer than the focal length — and the curve moves below the axis: becomes negative, indicating a virtual, erect image whose magnification exceeds one. The vertical divide at , where runs off to infinity, is the real-to-virtual crossover, drawn in centimetres. One lens, one equation, two different imaging regimes on either side of a single point.
The core equations
Because this is an imaging article, we commit to one sign convention and never leave it. Hecht convention: light travels left to right; the object distance is positive for a real object (to the left of the lens); the image distance is positive for a real image (to the right, where the light actually goes); a radius is positive when the surface's centre of curvature lies on the outgoing side; and the focal length is positive for a converging lens. Every formula below is written in these signs. The foundation is a result we recall from Refraction at a Spherical Surface: a single spherical interface of radius separating indices and images an axial point by
where: — index on the incoming side; — index on the outgoing side; — radius of the surface, positive if its centre lies downstream. This is the atom; a lens is two of them. Apply it once at each refracting face of a thin lens of index in air, neglect the thickness, and the intermediate image cancels to give the lensmaker's equation, which connects the surface geometry and refractive index to the focal length:
where: — refractive index of the lens material relative to the surrounding medium; — radius of the first (front) surface; — radius of the second (back) surface, each signed by the centre-of-curvature rule. Read it physically: power grows with how strongly the material bends light (through the factor ) and how tightly the faces curve. A flat face () adds no power; if the two surface curvatures cancel, the net power can vanish. Once is known, the thin-lens equation locates the image of an axial object:
where: — object distance ( real object); — image distance ( real image on the far side, virtual image on the near side); — focal length ( converging, diverging). The sign of that falls out is the answer to "real or virtual". To finish the description — size and orientation — the transverse magnification compares image height to object height :
where: — transverse magnification; a negative value means inverted, a positive value erect, and means enlarged. Finally, opticians and lab optics quote a lens not by focal length but by power in dioptres, which is simply the reciprocal focal length in metres:
where: — optical power; — focal length in metres. Power is the natural currency because thin lenses in contact simply add their dioptres — the reason an optometrist can stack a correction onto the eye's own by addition.
We want to prove — not assert — that a lens's focal length comes entirely from its two surfaces, by feeding the single-surface refraction law through both faces of the glass and taking the thin limit. The plan: image the object through surface 1 (air into glass, radius ) to get an intermediate image; feed that intermediate image as the object for surface 2 (glass into air, radius ); collapse the two surfaces to one plane; and show the intermediate-image term cancels, leaving a focal length that depends only on , and .
Step 1. Refract at the first surface with , : equation gives , where is where surface 1 alone would form the image. Why: the glass front is just one spherical interface, so the surface law applies verbatim with air outside and glass in.
Step 2. Refract at the second surface with . In the thin-lens limit, the two surfaces are effectively in the same plane. The intermediate image formed by surface 1 lies on the outgoing side of surface 2, so it acts as a virtual object for the second refraction and has object distance . Equation (1) then reads . This negative sign is what makes the intermediate-image terms cancel when the two surface equations are added.
Step 3. Add the two equations. The term from Step 1 and the term from Step 2 cancel, giving . The intermediate image disappears from the final relation because it is only an internal step in the two-surface refraction.
Step 4. Send the object to infinity, , so the image forms at the back focal point, . Comparing with Step 3 identifies , the lensmaker's equation, and simultaneously delivers . Why: "focal length" is defined as where collimated light converges, so this limit is what pins the abstract to the physical lens. *Adding the two surface equations confirms that drops out exactly, and the result matches term for term.*
Go deeper · Derivation B · 2 minThe thin-lens equation and the sign of the magnification
Having reduced the lens to a single plane of power , we now extract the imaging relation and the magnification, and — crucially for an imaging article — check that the signs behave for both a real and a virtual image. The plan: rearrange the thin-lens equation to solve for the image; use the undeviated central ray and similar triangles to get ; then evaluate a converging lens at an object outside its focus and again at an object inside its focus, reading the sign of and of each time.
Step 1. Write equation as . A positive result means : a real image on the outgoing side. A negative result means : a virtual image on the incoming side. Why: the algebra itself decides real versus virtual — there is no separate rule to remember, only the sign that emerges.
Step 2. The ray through the centre of a thin lens is undeviated, so object and image tips subtend equal and opposite angles at the centre: , which is . A real image () with a real object () gives — inverted; a virtual image () gives — erect. Why: the minus sign is geometric, born of the ray crossing the axis at the centre, and it is what couples "which side" to "which way up".
Step 3 (real). For a converging lens, , with the real object beyond the focal point at : , so and — a real, inverted image twice the object size. The lens converts the diverging rays from the object into a converging bundle that crosses on the far side of the lens.
Step 4 (virtual). Now slide the object inside the focus, : , so and — a virtual, erect image twice the size. As from either side, and : that divergence is the real-to-virtual crossover. Why: inside the focus the lens can no longer force a real crossing, so it hands back a magnified upright image — the magnifying glass, living entirely in the band. *Both cases reproduce (, real inverted) and (, virtual erect), with the signs confirmed explicitly.*
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| Object at infinity () | collimated input focuses at the back focal point — this defines | |
| Object at the focus () | output collimated; the realvirtual crossover | |
| Object inside the focus () | virtual, erect, magnified — the simple magnifier / eyepiece | |
| Symmetric conjugates () | unit-magnification inverted real image — the relay | |
| Diverging lens (), real object | always virtual, erect, minified — no real image possible | |
| Flat or equal radii () | zero power — a window, not a lens |
Worked examples
1 · One lens, both images — building and using a biconvex lens
A biconvex lens is ground from crown glass, , with front radius and back radius . (a) Find its focal length and power. (b) An object stands in front of it — locate and describe the image. (c) The object is moved to — locate and describe the image.
Step 1. Build the lens with the lensmaker's equation. With the centre of the front surface downstream, ; the back surface bulges the other way, so . Then , giving and power . The positive confirms a converging lens.
Step 2 (b, real). With : , so — positive, hence a real image behind the lens. Its magnification is : inverted and twice life-size. Put a screen there and the image lands on it.
Step 3 (c, virtual). With : , so — negative, hence a virtual image in front of the lens, on the object's side. Its magnification is : erect and twice life-size. No screen can catch it; the eye looking through the lens sees the enlarged upright image. This is the magnifying glass.
Step 4. The two regimes are two branches separated by the focal point: crossing cm changes the image from real and inverted to virtual and erect, while the image distance grows without bound as approaches from either side. This is why a magnifier is not useful when the object is placed extremely close to the focal point.
2 · A diverging lens and its dioptre prescription
A biconcave lens has , and . Find its power, and locate the image of an object away.
Step 1. The signs reverse for a biconcave lens: the front surface's centre lies upstream, so , and . The lensmaker's equation gives , so and — a strong diverging lens, the kind that corrects severe short-sight.
Step 2. Image the object with : , so . The negative sign marks a virtual image, in front of the lens on the object's side.
Step 3. Magnification: — erect and reduced to 40%. A diverging lens does this for every real object: the image is always virtual, erect and minified, sitting between the lens and its front focal point. That is why a peephole or a strong myopia lens shows a shrunken, upright, wide field.
Step 4. Two examples, one lesson: the sign of distinguishes converging from diverging lenses, while the sign of identifies real and virtual images under the chosen convention. For these paraxial thin-lens cases, the arithmetic then captures the essential imaging geometry.
Physics of the portrait
Lenses were ground and used for centuries before anyone reduced a whole optical system to a handful of numbers. The person who did — who showed that any train of lenses, however thick and however many, behaves exactly like a single equivalent lens once you know its focal points and principal planes — turned optics into an algebra.
Origins · 1 minCarl Friedrich Gauss and how this was discovered
Gauss is remembered for number theory, the method of least squares, and terrestrial magnetism, but late in life he also refounded optics. In his 1841 Dioptrische Untersuchungen (Dioptrical Investigations) he showed that, in the paraxial regime where angles are small, an arbitrarily complicated centred lens system is completely characterised by a set of cardinal points — two focal points and two principal planes (with nodal points for systems in different media). Once these are known, one locates images and computes magnifications with the same simple formulas that govern a single thin lens, treating the entire instrument as one black box of known focal length. This is why the paraxial, first-order regime of imaging is called Gaussian optics to this day: it is the framework in which the thin-lens and lensmaker's equations live, and the foundation on which every camera, microscope and telescope is first designed before aberrations are addressed.
Going further
Texts. Hecht, Optics, 5th ed., Ch. 5 (Geometrical Optics — the thin lens, the lensmaker's equation, and the sign convention adopted here) · Saleh & Teich, Fundamentals of Photonics, 3rd ed., Ch. 1 (Ray Optics) · Jenkins & White, Fundamentals of Optics, Ch. 3–5 (lenses and the Gaussian formulation) · Born & Wolf, Principles of Optics, Ch. 4 (paraxial imaging and cardinal points). Both formulas descend from single-surface refraction applied at each face and added in the thin limit. Key numerical anchors: the biconvex case , power ; the thin-lens imaging pair (real) and (virtual); the diverging lens , power , with . The relaxed-eye power and are standard figures.
Prerequisites. Refraction at a Spherical Surface · Snell's Law of Refraction · Ray Model of Light · Refractive Index and Optical Path Length. Leads to. Image Formation and Magnification · Thick Lenses and Principal Planes · Stops, Pupils, and Field of View · Dispersion and Prisms.
Why is a real image inverted but a virtual image erect?
It comes straight from the magnification sign, . For a real object always, so the sign of is set entirely by the sign of . A real image forms on the far side with , making — inverted. A virtual image forms on the near side with , making — erect. Geometrically, the central ray crosses the axis at the lens centre only for a real image, and that crossing is what flips the picture upside down. No crossing, no inversion.
What does a negative image distance actually mean physically?
A negative means the image lies on the same side as the incoming object, where no real light converges. The emerging rays are diverging, and only their backward extensions meet — so there is no glowing spot in space you could land on a screen. Your eye, however, interprets those diverging rays as though they came from that point, and sees an image there. That is a virtual image: perfectly visible, entirely real to your eye, but not projectable. Magnifying glasses, diverging lenses, and flat mirrors all form them.
Why does the same lens have a longer focal length underwater?
Because power depends on the index contrast between lens and surroundings, not the lens index alone. In air the bending factor is ; immerse the lens in water and it becomes , nearly four times smaller. The radii are unchanged, so shrinks and grows — the lens is much weaker. This is exactly why your eye cannot focus underwater (its cornea loses most of its power) and why swim goggles, by restoring an air gap in front of the eye, bring the world back into focus.
Why do the two radii subtract in the lensmaker's equation instead of adding?
Because the two surfaces contribute with opposite algebraic sense once the sign convention is applied. The combination is what falls out of adding the two single-surface equations, where the second surface enters with and the index step reversed. For a biconvex lens and , so is positive and the two terms reinforce — both surfaces converge. Writing it as a subtraction with signed radii is what lets one formula handle biconvex, biconcave, plano-convex and meniscus lenses without special cases.
Is the thin-lens equation exact, or an approximation?
It is a double idealisation. First, it is paraxial: it assumes rays make small angles so that , which is what makes all points of the object image to sharp points; real wide-angle rays miss slightly, producing spherical aberration. Second, it is thin: it ignores the lens thickness, so the object and image distances are both measured from one plane. Real lenses need the thick-lens correction, which restores the thickness through a term and splits the single plane into two principal planes. For thin lenses and modest apertures, though, the simple equation is accurate to a fraction of a percent.
What exactly is a dioptre, and why do opticians use it instead of focal length?
A dioptre is one inverse metre: a lens of focal length (in metres) has power dioptres, so a lens has and a lens has . Opticians prefer power because thin lenses in contact add their powers — combining the eye's optics with a corrective lens is then simple addition, and a prescription can be read off directly. Power also grows smoothly through zero (a flat window is ), whereas focal length blows up to infinity there, which is awkward to tabulate.
Can a converging lens ever make an object look smaller?
Yes — that is its everyday job in a camera. Once the object sits beyond twice the focal length (), the real image it forms has : inverted and reduced. That is how a camera lens squeezes a whole scene onto a small sensor, and how your own eye images a distant building onto the few millimetres of your retina. The enlarging behaviour people associate with a "lens" only appears in the narrow window , where the image turns virtual and erect. The same piece of glass shrinks or magnifies depending entirely on where the object sits relative to and .