Lensmaker's Equation Calculator
- The Lensmaker's equation builds the lens from its two surfaces: 1/f = (n - 1) x [1/R1 - 1/R2 + thick-lens term], with the sign convention that a radius is positive when the surface's centre lies to the right.
- Here the refractive index n = 1.52 gives (n - 1) = 0.52, and the curvatures are 1/R1 = 0.05 and 1/R2 = -0.05 per cm, with no thickness correction (thin lens, or a flat surface makes the term vanish).
- 1/f = 0.52 x 0.1 = 0.052 per cm, so the focal length is f = 19.23 cm — a converging lens — and the power is 100 x 0.052 = +5.20 dioptres.
- A flat surface counts as an infinite radius and contributes no curvature; flipping a lens end-for-end swaps R1 and R2 with sign changes, which is why the same glass can be ground in several shapes of equal power.
- The formula assumes the lens sits in air; immerse it in water and the effective (n - 1) shrinks to (n/n_medium - 1), weakening the power dramatically.
This lensmaker's equation calculator turns a lens's material and shape into its focal length and optical power. You enter the refractive index n and the two surface radii R1 and R2, and the tool applies the Lensmaker's equation, 1/f = (n − 1)[1/R1 − 1/R2 + (n − 1)d/(n·R1·R2)], to return f in centimeters and power in dioptres. For example, a symmetric biconvex lens in glass with n = 1.52 and radii of +20 cm and −20 cm gives a focal length of 19.23 cm and a power of +5.20 dioptres. A plano-convex lens with n = 1.50 and R1 = +10 cm, with a flat second surface, gives f = 20.00 cm and +5.00 D. A meniscus with n = 1.60, R1 = +10 cm and R2 = +50 cm still converges, at f = 20.83 cm and +4.80 D. The calculator follows the standard sign convention: a radius is positive when the surface's centre of curvature lies to the right of the surface, and a flat surface has an infinite radius and adds no curvature.
The Lensmaker's equation is the accepted standard for this kind of calculation because it derives a lens's focal length directly from the physical properties that define it — the refractive index of the material and the curvature of each surface — rather than from measured trial and error. That makes it the method used in optical design and coursework alike, and it explains why the same inputs always reproduce the same focal length and power. This page shows the formula in full, step-by-step workings for each calculation, the worked examples above and the sources behind them, so you can check every number yourself instead of trusting a black box. Enter your own n, R1 and R2 to see the result and the steps that produce it.
Worked examples
Symmetric biconvex lens, n = 1.52
Primary result: 19.23. Full step-by-step working is shown with the result. (1.52 · 20 cm · -20 cm · 0 cm)
| Focal length (cm) | 19.23 |
| Lens power | +5.20 D |
| Curvature bracket (1/R1 - 1/R2 + thick) | 0.1 per cm |
| Behaviour | Converging |
Plano-convex lens, n = 1.50
Primary result: 20.00. Try it with your own numbers in the calculator above. (1.5 · 10 cm · 0 cm · 0 cm)
| Focal length (cm) | 20.00 |
| Lens power | +5.00 D |
| Curvature bracket (1/R1 - 1/R2 + thick) | 0.1 per cm |
| Behaviour | Converging |
Meniscus lens, n = 1.60
Primary result: 20.83. Every intermediate value is printed in the worked steps. (1.6 · 10 cm · 50 cm · 0 cm)
| Focal length (cm) | 20.83 |
| Lens power | +4.80 D |
| Curvature bracket (1/R1 - 1/R2 + thick) | 0.08 per cm |
| Behaviour | Converging |
The equation and its sign convention
The lensmaker's equation calculator applies a single formula that turns a lens's material and shape into its focal length and power: 1/f = (n − 1)[1/R1 − 1/R2 + (n − 1)d/(n·R1·R2)]. Read from left to right, it says that the bending power of a lens comes from three things: how much the glass slows light relative to air, how strongly each of its two surfaces curves, and a correction for the lens's thickness. Each piece has a physical meaning worth knowing before you trust a result.
The first factor, (n − 1), is the refractive index minus one, where n is the index of the lens material and the surrounding medium is air (index 1). It sets the overall scale: a higher-index glass bends light more for the same curvature. The bracket then holds two curvature terms, 1/R1 and −1/R2, one for each surface. R1 is the radius of the front surface and R2 the radius of the back surface, and the minus sign in front of 1/R2 is what lets a converging front surface and a diverging back surface combine correctly. A flat surface has an infinite radius, so its curvature term is zero and it adds nothing to the sum.
The third term inside the bracket, (n − 1)d/(n·R1·R2), is the thick-lens correction. Here d is the center thickness of the lens. This term exists because a real lens is not infinitely thin, and its thickness slightly changes the power; setting d to zero reduces the formula to the familiar thin-lens version. The correction is usually small but grows with index and thickness, which is why a calculator that asks for thickness can be more accurate than one that ignores it.
The sign rule is the part that trips people up. A radius is positive when the surface's center of curvature lies to the right of the surface, and negative when that center lies to the left. The convention is applied as light travels left to right through the lens. A flat surface has infinite radius and adds no curvature. The worked examples show the rule in action. A symmetric biconvex lens in glass of n = 1.52 with radii +20 cm and −20 cm has a focal length of 19.23 cm and a power of +5.20 dioptres. A plano-convex lens with n = 1.50 and R1 = +10 cm, with a flat second surface, gives f = 20.00 cm and +5.00 D. A meniscus with n = 1.60, R1 = +10 cm and R2 = +50 cm still converges, with f = 20.83 cm and +4.80 D — both radii positive, yet the result is positive because the front surface curves more strongly than the back.
Worked examples: biconvex, plano-convex, meniscus
Three lenses, three shapes, and almost the same power — that is the quickest way to see what a lensmaker's equation calculator is actually doing. Each example below plugs the same formula into the numbers step by step, so you can follow the arithmetic rather than just read the answer. The formula is 1/f = (n − 1)[1/R1 − 1/R2 + (n − 1)d/(n·R1·R2)], where n is the refractive index, R1 and R2 are the two surface radii, and d is the center thickness.
Start with the symmetric biconvex lens in glass of n = 1.52, with radii +20 cm and −20 cm. The first radius is positive because its center of curvature lies to the right; the second is negative because its center lies to the left, which is what makes the lens bulge outward on both faces. Feeding these values in gives a focal length of 19.23 cm and a power of +5.20 dioptres. The two surfaces contribute equally here, so the power is split evenly between front and back.
Now the plano-convex lens with n = 1.50 and R1 = +10 cm, where the second surface is flat. A flat surface has an infinite radius and adds no curvature, so the 1/R2 term drops out entirely and all the bending happens at the front. The result is f = 20.00 cm and +5.00 D. Notice that this lens uses a lower-index glass than the biconvex one and still lands close to the same power, because its single curved surface is steeper — a 10 cm radius instead of 20 cm.
Finally the meniscus with n = 1.60, R1 = +10 cm and R2 = +50 cm. Both radii are positive, since both centers of curvature sit to the right of their surfaces, but the second surface is much gentler. That difference still leaves a net converging effect: f = 20.83 cm and +4.80 D. Here the higher index of 1.60 does much of the work, compensating for the weak second surface.
Read together, the three examples show that power is not a property of the glass alone. A steeper curve, a flatter back, or a higher index can each be traded against the others to arrive at roughly +5 dioptres. That is why a lens designer has room to choose a shape that suits mounting, weight, or aberration control while holding the focal length steady.
- Biconvex: n = 1.52, R1 = +20 cm, R2 = −20 cm → f = 19.23 cm, +5.20 D
- Plano-convex: n = 1.50, R1 = +10 cm, flat second surface → f = 20.00 cm, +5.00 D
- Meniscus: n = 1.60, R1 = +10 cm, R2 = +50 cm → f = 20.83 cm, +4.80 D
Thin vs thick lenses
The full Lensmaker's equation builds a lens's power from its material and geometry: 1/f = (n − 1)[1/R1 − 1/R2 + (n − 1)d/(n·R1·R2)]. The term containing d is the thickness term, and it is the only part of the formula that accounts for the gap between the two surfaces. For a thin lens, d is small enough that the term nearly disappears, and the familiar thin-lens form with just 1/R1 − 1/R2 gives a good answer. As the lens gets thicker relative to its focal length, the thickness term grows and shifts the result, which is why a lensmaker's equation calculator that keeps the full expression will match a thick lens more closely than a thin-lens shortcut.
A flat surface is the clearest case where the thickness term vanishes. A flat surface has infinite radius and adds no curvature, so its 1/R term drops to zero. Take a plano-convex lens with n = 1.50 and R1 = +10 cm on a flat second surface: the equation gives f = 20.00 cm and a power of +5.00 dioptres, and the thickness term contributes nothing because the flat side carries no curvature to multiply against. This is a useful check when you are learning the sign convention: a radius is positive when the surface's centre of curvature lies to the right of the surface, and a flat surface simply sits outside that counting.
Curvature on both sides does not always mean a simple converging shape. A meniscus with n = 1.60, R1 = +10 cm and R2 = +50 cm still converges: f = 20.83 cm and +4.80 D. Both radii are positive here, so the two curvature terms partly cancel, and the lens is weaker than either surface alone would suggest. A symmetric biconvex lens in glass of n = 1.52 with radii +20 cm and −20 cm gives f = 19.23 cm and +5.20 D. Comparing these two results shows how the signs, not just the sizes, of R1 and R2 set the power.
Principal planes are where the thick-lens story becomes practical. In a thin lens the two principal planes sit essentially at the lens itself, so you can measure focal length from the glass. In a thick lens they move, and focal length is measured from those planes rather than from the front or back surface. That is why the thickness term matters once d is no longer negligible: the calculator is not only adjusting the power, it is telling you where the reference planes sit. When d is tiny, the distinction fades and the thin-lens result is close enough for most everyday work.
From focal length to power
A lens's focal length and its power describe the same optical property from two directions. Power is measured in dioptres, and the conversion is simple: power in dioptres equals 100 divided by the focal length in centimetres, which is the same as 1 divided by the focal length in metres. A lens with a focal length of 19.23 cm therefore has a power of 100 ÷ 19.23, or about +5.20 dioptres. Going the other way, a +5.00 D lens has a focal length of 100 ÷ 5, or 20.00 cm. This is why a lensmaker's equation calculator can report either value from the same inputs — one is just the reciprocal of the other, expressed in a different unit.
The sign of the power follows the sign of the focal length, and that in turn tells you whether the lens converges or diverges. A converging lens has a positive focal length and positive power; a diverging lens has a negative focal length and negative power. The Lensmaker's equation builds that power from the material and geometry: 1/f = (n − 1)[1/R1 − 1/R2 + (n − 1)d/(n·R1·R2)]. The sign convention for the radii is what keeps the arithmetic honest: a radius is positive when the surface's centre of curvature lies to the right of the surface. A flat surface has an infinite radius and adds no curvature at all, so it drops out of the calculation.
Three worked examples show how the numbers fall out. A symmetric biconvex lens in glass of n = 1.52, with radii +20 cm and −20 cm, has a focal length of 19.23 cm and a power of +5.20 dioptres. A plano-convex lens with n = 1.50 and R1 = +10 cm, with a flat second surface, has f = 20.00 cm and +5.00 D. A meniscus with n = 1.60, R1 = +10 cm and R2 = +50 cm still converges, giving f = 20.83 cm and +4.80 D — a reminder that a meniscus is not automatically diverging; the signs and magnitudes of both radii decide that.
One assumption sits underneath all of these figures: the lens is working in air. The (n − 1) factor in the equation compares the lens material with the medium around it, so the quoted powers hold only for an air environment. Immerse the same lens in a liquid and the contrast between material and surroundings shrinks, which weakens the lens — its power drops and its focal length lengthens. The geometry has not changed; only the medium has. Keep that in mind whenever you compare a calculated power with a measured one, and check that both refer to the same surroundings.
- Power in dioptres = 100 ÷ focal length in cm (equivalently 1 ÷ focal length in metres).
- Positive focal length and power mean converging; negative means diverging.
- A radius is positive when its centre of curvature lies to the right of the surface.
- A flat surface has infinite radius and adds no curvature.
- The standard results assume the lens is surrounded by air; immersion weakens the lens.
FAQs
What is the Lensmaker's equation?
The Lensmaker's equation is 1/f = (n − 1)[1/R1 − 1/R2 + (n − 1)d/(n R1 R2)]. It gives the focal length of a lens from its refractive index, the radii of its two surfaces and its centre thickness. The first bracketed terms handle the two surfaces, and the final term adds the effect of lens thickness.
What is the focal length of a biconvex lens with R = ±20 cm and n = 1.52?
Using 1/f = 0.52 × (0.05 + 0.05) = 0.052 per cm, the focal length is f = 19.23 cm. The power is +5.20 D. The two surfaces each contribute 0.05 per cm here, and the refractive index factor of 0.52 scales their sum to give the result.
How do I enter a flat surface?
Enter 0 for that surface's radius. The calculator treats 0 as an infinite radius, so the surface contributes no curvature. This matches the plano-convex example, where a flat surface gives f = 20.00 cm. Use 0 rather than leaving the field blank so the calculation runs correctly.
What sign does a radius take?
A radius is positive when the centre of curvature is to the right of the surface, in the direction the light travels. The second surface of a biconvex lens therefore takes a negative radius. Keeping this sign convention consistent is what makes the 1/R1 − 1/R2 terms add correctly for a converging lens.
When does centre thickness matter?
The thick-lens term grows with thickness and with strongly curved surfaces. For thin lenses it is zero or negligible, and whenever one surface is flat it is also zero or negligible. So for everyday thin-lens work you can often ignore it, but for thick or strongly curved lenses it changes the focal length.
Can a meniscus lens converge light?
Yes. A meniscus lens converges light if the first surface is curved more strongly than the second. In the n = 1.60 example this gives f = 20.83 cm and a power of +4.80 D. The stronger first surface outweighs the second, so the net result is a positive, converging focal length.