Lens Maker's Equation Calculator
The lens maker's equation predicts a thin lens focal length from its glass and its two curved surfaces, 1/f = (n - 1)(1/R1 - 1/R2). Enter the refractive index and the radius of each surface in meters, using Infinity for a flat side, and read back the focal length in meters and the optical power in diopters. It is the go to formula for designing or checking simple lenses.
How to use the lens maker's equation calculator
- Type the refractive index of the glass into the Index n box (it must be greater than 1, for example 1.5).
- Enter the first surface radius in the R1 (m) box, in meters.
- Enter the second surface radius in the R2 (m) box, following the sign convention below the title.
- For a flat surface, type inf (or leave the field blank) so its 1/R term drops to zero.
- Read the Focal length card in meters and the Optical power card in diopters, then click Copy.
Examples
Symmetric biconvex lens
Index n = 1.5, R1 = 0.1 m, R2 = -0.1 m
focal length = 0.1 m, optical power = 10 D
Plano-convex lens (one flat side)
Index n = 1.5, R1 = 0.2 m, R2 = inf
focal length = 0.4 m, optical power = 2.5 D
Biconvex lens in denser glass
Index n = 1.6, R1 = 0.25 m, R2 = -0.25 m
focal length = 0.208333 m, optical power = 4.8 D
Frequently asked questions
What is the lens maker's equation?
It gives the focal length of a thin lens from its material and shape: 1/f = (n - 1)(1/R1 - 1/R2), where n is the refractive index and R1, R2 are the two surface radii in meters. The reciprocal of the focal length is the optical power in diopters.
What sign convention does this use?
A surface that bulges toward the incoming light has a positive radius, while one that curves away has a negative radius. For a symmetric biconvex lens R1 is positive and R2 is negative, as in the 0.1 m and -0.1 m example.
How do I enter a flat surface?
Type inf (or infinity, flat, or leave the box empty) for a flat side. A flat surface has an infinite radius, so its 1/R term becomes zero, which is exactly right for a plano lens.
What is optical power in diopters?
Optical power is the reciprocal of the focal length in meters, P = 1/f, measured in diopters (D). A lens with a 0.1 m focal length has a power of 10 D, and a 0.4 m focal length gives 2.5 D.
Why must the refractive index be greater than 1?
The factor (n - 1) would be zero or negative for n of 1 or less, meaning the lens could not focus light in air. The calculator rejects any index at or below 1, and it also rejects two flat surfaces since that lens has no power.
Does this handle thick lenses?
No. This is the thin lens form, which ignores the center thickness of the glass. For a thick lens you need the extra term that adds the thickness divided by n times the product of the radii, which this tool does not include.
What units should the radii be in?
Meters. Because power is 1/f, entering radii in meters gives the focal length in meters and the power directly in diopters. If you have millimeters, convert to meters first (divide by 1000).
Can it give a diverging (negative) lens?
Yes. If the radii make the bracket negative, the focal length and power come out negative, which is a diverging lens. The tool reports whatever sign the formula produces as long as the result is not zero.
Is anything I enter uploaded?
No. The computation runs in your browser with the same engine the tests use, so your index and radii stay on your device and are never sent to a server.
Learn more
- Lens sign convention and common lens shapes
How the radius sign rule works and how biconvex, plano-convex and meniscus shapes change focal length in the lens maker's equation.
Related tools
Thin Lens Calculator
Solve the thin lens equation 1/f = 1/do + 1/di. Enter any two of focal length, object distance and image distance to find the third, plus magnification.
Diopter Calculator
Convert between optical power in diopters and focal length, P = 1/f. Also add up lens powers placed together. Results in meters and centimeters. Free.
Snell's Law Calculator
Calculate the angle of refraction with Snell's law, n1 sin t1 = n2 sin t2. Find the refracted angle, the critical angle and total internal reflection. Free.
Mirror Equation Calculator
Solve the mirror equation 1/f = 1/do + 1/di with f = R/2. Find focal length, radius, image distance and magnification for concave and convex mirrors.
555 Timer Calculator
Calculate 555 timer astable frequency, period, high and low times and duty cycle from R1, R2 and the timing capacitor. Free oscillator design helper.
Absolute Humidity Calculator
Calculate absolute humidity in grams of water vapor per cubic meter from air temperature and relative humidity. Fast, free and works in your browser.