Boneyard Tools

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

  1. Type the refractive index of the glass into the Index n box (it must be greater than 1, for example 1.5).
  2. Enter the first surface radius in the R1 (m) box, in meters.
  3. Enter the second surface radius in the R2 (m) box, following the sign convention below the title.
  4. For a flat surface, type inf (or leave the field blank) so its 1/R term drops to zero.
  5. 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

Related tools