The Lensmaker's Equation Explained: Focal Length, Radii, and Why Sign Conventions Trip Everyone Up
The lensmaker's equation converts a piece of glass into a focal length. This guide unpacks the thin- and thick-lens forms, walks through the Cartesian sign convention that produces most wrong answers, works a full biconvex example with and without the thickness correction, and explains when the paraxial approximation stops being enough.
What the lensmaker’s equation actually gives you
The lensmaker’s equation is the bridge between a piece of glass and the focal length it produces. You give it the refractive index of the material, the two radii of curvature, and (if you care about precision) the centre thickness; it gives you back the focal length in metres, or, equivalently, the optical power in diopters. Everything else about a simple lens — whether it converges or diverges, whether it will image an object at infinity onto a small sensor, whether it works as a magnifying glass or a reading lens — follows from that one number. The lensmaker’s equation calculator does the arithmetic for both the thin and thick forms and classifies the resulting lens shape so you can sanity-check the sign conventions.
The equation matters because lens design is otherwise a two-stage guessing game. You can measure the focal length of an existing lens with a ruler and a lamp, but if you want a lens with a specific focal length you have to choose the material and the two radii, and there are infinitely many combinations that give the same answer. The lensmaker’s equation collapses that infinite space to a single scalar constraint that a designer, an optician, or a student can actually work with.
The equation, and where it comes from
The thin-lens form is:
1/f = (n − 1) · [ 1/R₁ − 1/R₂ ]
Read the pieces. n is the refractive index of the lens material relative to the surrounding medium (air, in almost every practical case). R₁ is the radius of curvature of the front surface — the one light hits first. R₂ is the radius of curvature of the back surface. f is the focal length: the distance from the lens at which parallel rays converge to a point (for a positive lens) or from which parallel rays appear to diverge (for a negative one).
The thick-lens correction adds one term that accounts for the centre thickness d:
1/f = (n − 1) · [ 1/R₁ − 1/R₂ + (n − 1) · d / (n · R₁ · R₂) ]
This is not a fudge factor. It falls out of applying the single-surface refraction equation twice — once at the front, once at the back — and then combining the two surfaces into a single equivalent element. Hecht’s Optics, §5.2.3 and §6.1, gives the full derivation. The important point is that when d is small compared with the radii and the focal length, the correction is negligible and you can use the thin form. When it isn’t — camera lenses, ophthalmic lenses in high prescriptions, telescope objectives — the correction moves the focal length by a percent or two, which is enough to matter.
Sign conventions, and why they trip everyone up
More people get the wrong answer from the lensmaker’s equation because of sign conventions than because of arithmetic. This calculator uses the Cartesian sign convention — the one in Hecht and most modern physics texts. It reads:
- Light travels left to right.
- A radius is positive when the centre of curvature lies on the far (right-hand) side of the surface.
- A radius is negative when the centre of curvature lies on the near (left-hand) side.
- A flat surface has radius = ∞.
Apply that to a symmetric biconvex lens — the classic “magnifying glass” shape. The front surface bulges toward the light, so its centre of curvature is on the far side: R₁ > 0. The back surface bulges away from the light, so its centre of curvature is on the near side: R₂ < 0. Put R₁ = +100 mm and R₂ = −100 mm into the equation and you get a positive focal length — a converging lens, which is exactly what a biconvex lens is.
Now do the same for a symmetric biconcave lens — the one that makes objects look smaller. The front surface curves away from the light, so R₁ < 0. The back surface curves toward the light, so R₂ > 0. The equation returns a negative focal length: a diverging lens, again matching physical intuition. A meniscus lens — one curved side and one indented side — has both radii of the same sign, and the focal length can go either way depending on which side is more curved.
Two other conventions exist in older or engineering literature — the “always-positive” convention (write 1/R₁ + 1/R₂ with unsigned radii and interpret shape from context) and the “left-to-right positive” convention (both surfaces positive when curving to the right). They give the same physics if applied consistently, but mixing them is how homework and design spreadsheets end up off by a factor of two. Pick one and stick to it. The lensmaker’s equation calculator assumes the Cartesian convention throughout, including in the thick-lens term.
Worked example: a crown-glass biconvex lens
Take a symmetric biconvex lens ground from crown glass (BK7 is the standard optical variety, refractive index 1.5168 at the sodium d-line). Round n to 1.5 for the arithmetic. Set both radii to 100 mm — so R₁ = +100 and R₂ = −100 in the Cartesian convention — and assume the lens is thin (d = 0).
1/f = (1.5 − 1) × [ 1/100 − 1/(−100) ] = 0.5 × [ 0.01 + 0.01 ] = 0.5 × 0.02 = 0.01 mm⁻¹ f = 1 / 0.01 = 100 mm D = 1000 / 100 = 10.0 diopters
The lens has a 100 mm focal length and 10 diopters of power. A parallel bundle of light entering it will converge to a point 100 mm behind the lens; equivalently, an object 100 mm in front of the lens will image to infinity, which is what you want if you’re using it as a magnifier held at its focal length.
Now add a 5 mm centre thickness and re-run the thick-lens form. The correction term is:
(n − 1) · d / (n · R₁ · R₂) = 0.5 × 5 / (1.5 × 100 × (−100)) = 2.5 / (−15000) = −1.667 × 10⁻⁴ mm⁻¹
So 1/f becomes 0.01 − 0.0001667 ≈ 0.009833 mm⁻¹, giving f ≈ 101.7 mm — a shift of about 1.7% from the thin-lens answer. For a hobby magnifier that’s invisible; for a machine-vision lens on a production line it’s a full step of manufacturing tolerance. Enter d = 5 in the lensmaker’s equation calculator to see the same result to the decimal.
Factors that change the focal length
Refractive index of the material
The focal length is inversely proportional to (n − 1), the refracting power of the material. Doubling (n − 1) halves the focal length for the same radii. Crown glass sits near n = 1.52, dense flint glass near 1.62, sapphire near 1.77, and specialty high-index optical polymers reach 1.9 or above. That is why high-index ophthalmic lenses can be made thinner than standard-index equivalents for the same prescription — the (n − 1) factor lets you flatten the radii while keeping the focal length constant.
The two radii of curvature
The thin-lens term is 1/R₁ − 1/R₂. Small radii (strongly curved surfaces) give a lot of refracting power; large radii give little. When both surfaces bulge outward, the two contributions add; when they curve the same way (as in a meniscus), they subtract. Grinding a surface with a shorter radius costs more time and equipment, so the real design question is usually “how flat can I make this and still hit the focal length I need?”
Centre thickness (for real, non-idealised lenses)
The thick-lens correction shortens or lengthens the focal length by a term proportional to d. For a symmetric biconvex lens with R₁ positive and R₂ negative, the product R₁·R₂ is negative, so the correction lengthens the focal length (as in the worked example). For a biconcave lens the sign flips. For plano- convex lenses, one factor of R goes to infinity and the correction vanishes exactly — which is one reason plano-convex singlets are popular for high-precision applications.
Wavelength of the incoming light
Refractive index depends on wavelength. Crown glass has n ≈ 1.522 at 486 nm (blue) but only 1.514 at 656 nm (red). Push those numbers through the equation with fixed radii and you get slightly different focal lengths for blue and red — the origin of chromatic aberration. Achromatic doublets pair a positive crown element with a negative flint element chosen so the dispersion cancels while the focal length does not. Use n at the wavelength you care about, or at the standard sodium d-line (589.3 nm) for visible-light generic work.
The surrounding medium
The bare equation assumes the lens is in air. Immerse it in water (nₘ ≈ 1.33) and you have to replace (n − 1) with (n / nₘ − 1). For crown glass that changes the effective refracting power from 0.52 in air to about 0.14 in water — a factor of nearly four. This is why fish and swimmers can’t focus underwater without goggles; the cornea’s refracting power collapses when the surrounding medium matches its index.
How to design a lens with a target focal length
- Pick the material first, not last. The refractive index sets the “refracting budget” (n − 1). Choose a glass with the dispersion, weight, and cost profile you can live with; radii can be adjusted later.
- Start symmetric if you can. A symmetric biconvex or biconcave lens with equal-magnitude radii is easier to grind, cheaper to buy off the shelf, and less sensitive to alignment error.
- Solve for a single radius. Fix one radius (often at infinity, giving a plano-convex or plano-concave singlet) and let the equation return the other. This is the fastest way to hit a target focal length without an optimiser.
- Sanity-check the diopter number. A pair of reading glasses is typically +1 to +3 D. A camera lens for a 50 mm focal length is 20 D. A telescope objective with a 1000 mm focal length is 1 D. If your answer is orders of magnitude away from a comparable device, you have almost certainly flipped a sign.
- Add the thick correction when d/f > 0.05.Below that ratio, thin-lens is fine. Above it, the correction can shift f by a few percent — enough to push a design out of spec.
- Model dispersion if the application is broadband.Run the equation at your reddest and bluest working wavelengths and check that both focal lengths sit within your depth of focus. If not, you need an achromatic doublet, not a singlet.
Common mistakes
Forgetting the sign convention. The single biggest source of wrong answers. If your biconvex lens comes out diverging, or your biconcave lens converging, you have almost certainly written R₂ positive when it should be negative. Draw the lens on paper first and mark which side the centre of curvature falls on for each surface.
Using the thin-lens form on a thick lens.For thin plastic magnifiers this doesn’t matter. For a camera lens with a 10–20 mm centre thickness and a 50 mm focal length, the thin-lens answer is wrong by several percent. Set d in the calculator and switch to the thick form.
Mixing units in the two radii. The equation is dimensionally consistent, but only if all lengths are in the same unit. Enter both radii in millimetres or both in metres. The calculator uses millimetres end-to-end and converts to diopters (per metre) internally.
Treating a very large R as truly infinite.A flat surface has 1/R = 0 exactly. A surface with R = 10 m contributes 0.0001 mm⁻¹ to the equation — small, but not zero. Enter the actual value if you have it. The 1e9 shorthand is a numerical stand-in for exact flatness.
When the equation isn’t enough
The lensmaker’s equation is a paraxial result — it assumes rays travel close to the optical axis at small angles. Real optical systems handle rays at all angles across an extended aperture, and the paraxial focal length is only the leading-order term of a longer series that also produces spherical aberration, coma, astigmatism, field curvature, and distortion. Any application demanding image quality across a full field — photography, microscopy, projection — needs full ray tracing or a design in software like Zemax, Code V, or the open-source OpticalRayTracer. The lensmaker’s equation is where you start; it is not where you finish.
It also fails for gradient-index lenses (where n varies continuously through the material), for Fresnel lenses (which are stepped, not smoothly curved), and for aspheric surfaces (where R varies across the surface). For those, use the vendor’s design data or a proper optical-design tool.
Frequently asked questions
What is the lensmaker’s equation used for?
It links focal length to the refractive index of the lens material and the curvature of the two surfaces. Lens designers use it to pick radii that will produce a target focal length; opticians use it to check a prescription; physics students use it to link ray optics to refraction. It assumes paraxial rays (small angles from the optical axis) and monochromatic light.
What sign convention should I use for R₁ and R₂?
The Cartesian convention: light travels left to right, and a radius is positive when the centre of curvature lies on the far side of the surface. For a symmetric biconvex lens R₁ > 0 and R₂ < 0. For a symmetric biconcave lens R₁ < 0 and R₂ > 0. Flat surfaces have R = ∞ — the lensmaker’s equation calculator accepts 1e9 as effectively flat.
When is the thin-lens approximation good enough?
When the centre thickness d is small compared to the focal length and the radii. A rule of thumb is d < 0.1·|f| for better than 1% accuracy. For thick camera lenses, ophthalmic lenses in high prescriptions, or telescope objectives, switch on the thickness term by entering d > 0 in the calculator.
How do I get optical power in diopters?
Optical power P = 1/f when f is measured in metres. A lens with f = 100 mm has P = 10 D. Prescription eyewear is specified in diopters (a −3.5 D lens is diverging with f ≈ −286 mm). The calculator reports both f in millimetres and P in diopters directly.
Does the equation work for lenses in water or oil?
The standard form assumes air (nₘ ≈ 1). If the surrounding medium has refractive index nₘ, replace (n − 1) with (n / nₘ − 1) throughout. A lens immersed in water has a longer focal length than the same lens in air because the refractive-index contrast is smaller.
Why does the focal length depend on wavelength?
Refractive index varies with wavelength — a phenomenon called dispersion. n is slightly higher for blue light than red, so blue light focuses at a shorter distance than red light. That is chromatic aberration. Achromatic doublets cancel it by pairing a crown-glass converging element with a flint-glass diverging element chosen so the dispersions oppose each other while the focal lengths add.
Can I use this to check a prescription lens?
In principle, yes, if you know the material and the two radii. In practice, ophthalmic lenses are aspheric, sometimes gradient-index, and often free-form. The paraxial focal length from the lensmaker’s equation will be within a few percent of the labelled diopter value for a simple single-vision lens, but the actual optics of a modern progressive or high-index lens are more subtle. Use the equation as a sanity check, not as a substitute for the manufacturer’s spec sheet.
Related calculators
- Wavelength calculator — convert between frequency, wavelength, and photon energy for the light passing through your lens.
- Young’s modulus calculator — stress, strain, and elasticity for the mechanical side of optical materials.
- Ohm’s law calculator — the electromagnetic sibling of the lens equations: voltage, current, and resistance.
- Air density calculator — useful when the lens sits in something other than standard-pressure air.
- Activation energy calculator — Arrhenius kinetics for the chemistry alongside your physics.
- Half-life calculator — first-order decay from a rate constant or half-life.
Frequently asked questions
What is the lensmaker's equation used for?
It links focal length to the refractive index of the lens material and the curvature of the two surfaces. Lens designers use it to pick radii that will produce a target focal length; opticians use it to check a prescription; physics students use it to link ray optics to refraction. It assumes paraxial rays (small angles from the optical axis) and monochromatic light.
What sign convention should I use for R₁ and R₂?
The Cartesian convention: light travels left to right, and a radius is positive when the centre of curvature lies on the far side of the surface. For a symmetric biconvex lens R₁ > 0 and R₂ < 0. For a symmetric biconcave lens R₁ < 0 and R₂ > 0. Flat surfaces have R = ∞ — the lensmaker’s equation calculator accepts 1e9 as effectively flat.
When is the thin-lens approximation good enough?
When the centre thickness d is small compared to the focal length and the radii. A rule of thumb is d < 0.1·|f| for better than 1% accuracy. For thick camera lenses, ophthalmic lenses in high prescriptions, or telescope objectives, switch on the thickness term by entering d > 0 in the calculator.
How do I get optical power in diopters?
Optical power P = 1/f when f is measured in metres. A lens with f = 100 mm has P = 10 D. Prescription eyewear is specified in diopters (a −3.5 D lens is diverging with f ≈ −286 mm). The calculator reports both f in millimetres and P in diopters directly.
Does the equation work for lenses in water or oil?
The standard form assumes air (n_medium ≈ 1). If the surrounding medium has refractive index n_m, replace (n − 1) with (n/n_m − 1) throughout. A lens immersed in water has a longer focal length than the same lens in air because the refractive-index contrast is smaller.
Why does the focal length depend on wavelength?
Refractive index varies with wavelength — a phenomenon called dispersion. n is slightly higher for blue light than red, so blue light focuses at a shorter distance than red light. That is chromatic aberration. Achromatic doublets cancel it by pairing a crown-glass converging element with a flint-glass diverging element chosen so the dispersions oppose each other while the focal lengths add.
Can I use this to check a prescription lens?
In principle, yes, if you know the material and the two radii. In practice, ophthalmic lenses are aspheric, sometimes gradient-index, and often free-form. The paraxial focal length from the lensmaker’s equation will be within a few percent of the labelled diopter value for a simple single-vision lens, but the actual optics of a modern progressive or high-index lens are more subtle. Use the equation as a sanity check, not as a substitute for the manufacturer’s spec sheet.
Informational only. Not personalised financial, legal, or tax advice.