Lensmaker equation for focal length from radii and index

Calculate the focal length of a thin lens in air from its refractive index and the radii of curvature of its two surfaces using the lensmaker equation. This is not a thick-lens calculator, not a multi-lens system calculator, and not an eyeglass prescription tool.

Lens parameters

Formulas

1/f = (n - 1) * (1/R1 - 1/R2)

P = 1000 / f

Where f = focal length in mm; n = refractive index of lens material (relative to air); R1 = radius of curvature of first surface (light incident side), positive if center is to the right; R2 = radius of curvature of second surface, positive if center is to the right; P = optical power in diopters (1/m).

Sign convention: light travels left to right. R1 > 0 for convex toward the object (center right). R2 < 0 for convex toward the image (center left). A biconvex lens has R1 > 0, R2 < 0.

A flat surface has infinite radius; enter a large magnitude (e.g., 10000) to approximate.

The formula assumes a thin lens in air (n_air = 1.0).

Checked examples

Symmetric biconvex glass lens (n=1.5, R1=100mm, R2=-100mm) has f=100mm, P=10D.

Stronger biconvex lens with half the radii has f=50mm, P=20D.

Crown glass (n=1.52) symmetric biconvex with 200mm radii gives f=192.31mm, P=5.20D.

Limits

Thin lens in air, paraxial approximation. Refractive index must be > 1. Radii cannot be zero. If the two surfaces have equal curvature with the same sign, the lens has zero power and is refused. Not for: thick lenses or lenses with significant center thickness; multi-lens systems (objectives, eyepieces, teleconverters); eyeglass or contact-lens prescriptions; mirrors or reflective optics.

OpenStax University Physics Volume 3, §2.4 Thin Lenses and Hecht, Optics 5th ed., §5.2 The Lensmaker's Formula.