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
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.
- 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.
- 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.
- 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.
- 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/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.
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.
Frequently asked questions.
How do I tell whether a radius should be positive or negative?
Why are spectacle lenses curved the same way on both sides?
Why does a lens lose power underwater?
Does the colour of the light change the focal length?
How much does lens thickness matter?
Why does the page reject two equal radii with the same sign?
References& sources.
How this page was produced
- Published by
- Quanta Calculator
- Overseen by
- Daniel, Quanta Calculator Researcher
- 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