Audited 31 Jul 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Lensmaker's Equation Calculator

Find a thin lens's focal length in air from its refractive index and the signed radii of its two faces, using 1/f = (n − 1)(1/R1 − 1/R2).

Lensmaker's Equation Calculator

m
m
Signed focal length
0.1
Focal length in metres, positive for a converging lens and negative for a diverging one; 1 divided by it gives the power in dioptres.
Model scope
Thin spherical lens in air using the displayed Cartesian sign convention; thickness, surrounding-medium index, aspheres, gradient index, wavelength dependence, aberrations, tolerances, and optical-system design are outside it.

Background.

A lens works because light slows down inside glass, and a curved face meets rays at different heights at different angles, so each ray is bent by a different amount. Shape the faces correctly and a beam of parallel light converges to a single point. The distance from the lens to that point, the focal length, is the number an optician grinding spectacles or a student building a simple telescope actually needs.

The lensmaker's equation predicts it from two things: what the lens is made of and how its faces are curved. The material enters as n − 1, where n is the refractive index. Glass with an index of 1.5 carries light at two-thirds of its speed in a vacuum, and the 0.5 left after subtracting 1 measures how strongly the glass bends light compared with the air around it. The shape enters as the curvatures 1/R1 and 1/R2 of the front and back faces: tight curves with small radii bend light hard, gentle curves only a little, and a flat face contributes nothing.

Signs carry the shape. In the Cartesian convention used here, light travels from left to right and a radius is positive when that surface's centre of curvature lies to the right of it, beyond the surface. A biconvex lens therefore has a positive first radius and a negative second one, and a biconcave lens the reverse. Get a sign wrong and a converging lens turns into a diverging one in the answer.

The lens is treated as thin compared with its radii and as sitting in air. One index is used for all light, so the spread of focus by colour is left out, along with aberrations, aspheric surfaces and the behaviour of multi-element systems.

What is lensmaker's equation calculator?

The focal length of a lens is the distance from the lens to the point where rays travelling parallel to its axis come together, or, for a diverging lens, the point they appear to spread from. It is positive for converging lenses and negative for diverging ones. Its reciprocal, in inverse metres, is the lens's power in dioptres, the unit printed on eyeglass prescriptions. The lensmaker's equation predicts it from the lens material and the curvature of its two faces.

How to use this calculator.

  1. Enter the refractive index of the lens material; it must be greater than 1. Typical values are about 1.49–1.50 for acrylic and CR-39 spectacle plastic, about 1.517 for BK7 crown glass and about 1.59 for polycarbonate.
  2. Enter the first radius, for the face the light reaches first, in metres: positive if that face bulges out toward the incoming light, negative if it is hollowed toward it.
  3. Enter the second radius by the same rule. The back face of a biconvex lens bulges away from the light, so its centre of curvature sits on the incoming side and its radius is negative.
  4. For a flat face, enter a very large radius such as 1000000; zero is refused. Read the signed focal length — positive converges, negative diverges — and take 1 ÷ f for the power in dioptres.

The formula.

1/f = (n - 1)(1/R_1 - 1/R_2)

1/f = (n − 1)(1/R1 − 1/R2). Here n is the refractive index of the lens relative to the surrounding air, R1 and R2 are the signed radii of the first and second surfaces in metres, and f is the focal length in metres. Each surface has a power of (change in index) ÷ R. Light enters the first face going from air into glass, giving (n − 1)/R1, and leaves the second going from glass into air, giving (1 − n)/R2; in the thin-lens approximation the two simply add, which is where the minus sign comes from. The radii dominate: halve both and the power doubles, halving f. The material acts through n − 1, so raising n from 1.5 to 1.6 lifts that factor from 0.5 to 0.6 and shortens f by a sixth. An index of 1 or less is refused, as is any pair of radii whose curvature terms cancel, because the focal length would be infinite.

A worked example.

Example

Take a symmetrical biconvex glass lens with n = 1.5 and both faces ground to a 0.1 m (100 mm) radius. The first face's centre of curvature lies beyond the lens, so R1 = +0.1 m; the second face's centre lies back on the incoming side, so R2 = −0.1 m. The curvature bracket is 1/0.1 − 1/(−0.1) = 10 + 10 = 20 per metre. Multiplying by n − 1 = 0.5 gives 1/f = 10 per metre, so f = 0.1 m: parallel light focuses 100 mm behind the lens, a power of 10 dioptres. Reverse both signs, making the same lens biconcave, and the answer is −0.1 m, a diverging lens of −10 dioptres. Grind the second face flat instead, entering 1000000 for R2, and the focal length doubles to about 0.2 m.

second Radius M-0.1
first Radius M0.1
refractive Index1.5

Frequently asked questions.

How do I tell whether a radius should be positive or negative?
Imagine light arriving from the left. Find the centre of the sphere the surface is part of: if it lies to the right of the surface, the radius is positive; if to the left, negative. A face bulging toward the light is positive, a face bulging away from it is negative.
Why are spectacle lenses curved the same way on both sides?
Most are meniscus lenses, with both centres of curvature on the same side, chosen to reduce distortion when the eye looks off-centre. Their power comes from the difference between the curves. With n = 1.5, radii of 0.1 m and 0.2 m give +0.4 m; swap them and you get −0.4 m.
Why does a lens lose power underwater?
What matters is the index of the lens relative to its surroundings. Water's index is about 1.333, so a glass lens of 1.5 has a relative index of about 1.125, and n − 1 shrinks from 0.5 to roughly 0.125. Entering that ratio here shows the 0.1 m example stretching to about 0.399 m, four times longer.
Does the colour of the light change the focal length?
Yes. Refractive index is slightly higher for blue light than for red, so blue focuses a little closer to the lens. That spread is chromatic aberration, which achromatic doublets correct by pairing two glasses. This page uses one index, so pick the value quoted for the wavelength you care about.
How much does lens thickness matter?
For thin lenses, where the thickness is small compared with the radii, very little. In a thick lens the light travels some distance between the faces before the second surface acts, and the full equation adds a term for that. Strongly curved, chunky lenses such as ball lenses need the thick-lens form.
Why does the page reject two equal radii with the same sign?
With R1 equal to R2, the curvature terms cancel and the thin-lens power is zero, implying an infinite focal length. Such a meniscus behaves almost like a flat window. A real one has a slight power because of its thickness, which this thin-lens page does not model.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
1/f = (n - 1)(1/R_1 - 1/R_2)
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon