Lens Maker Equation Calculator

Enter a lens's refractive index, front and back surface radii of curvature, and center thickness to find its focal length and optical power using the full lensmaker's equation.

Quick Facts

Full lensmaker's equation
1/f = (n−1)[1/R₁ − 1/R₂ + (n−1)d /(nR₁R₂)]
Accounts for the lens's center thickness d.
Thin-lens approximation
1/f = (n−1)(1/R₁ − 1/R₂)
Valid when d is small compared to R₁ and R₂.
Sign convention
R > 0 if center of curvature is past the surface
R < 0 if the center of curvature is before the surface (light travels left to right).
Optical power
P = 1/f (diopters, f in meters)
Positive power converges light; negative power diverges it.

Your Results

Calculated
Focal Length
-
Full lensmaker's equation, includes thickness d
Optical Power
-
P = 1/f, in diopters (1/m)
Thin-Lens Focal Length
-
Approximation assuming d ≈ 0
Lens Behavior
-
Converging or diverging, from the sign of f

Ready

Enter the lens's refractive index, surface radii, and thickness, then press Calculate.

Formula and Method for the Lens Maker's Equation

The lensmaker's equation relates a lens's focal length f to its shape and material: the refractive index n of the lens material, the radii of curvature R₁ and R₂ of its two surfaces, and its center thickness d. The full (thick-lens) form is 1/f = (n − 1)[1/R₁ − 1/R₂ + (n − 1)d / (nR₁R₂)]. When the lens is thin compared to its radii of curvature (d → 0), the thickness term drops out and the equation reduces to the familiar thin-lens form 1/f = (n − 1)(1/R₁ − 1/R₂). This calculator computes both the full-equation focal length and the thin-lens approximation, plus the corresponding optical power in diopters.

How the calculation works

Enter the refractive index of the lens material, the radius of curvature of each surface, the center thickness, and the length unit those radii and thickness are measured in. The calculator converts all lengths to meters, evaluates the bracketed term [1/R₁ − 1/R₂ + (n − 1)d/(nR₁R₂)], multiplies it by (n − 1) to get 1/f, then inverts that to find the focal length f. Optical power is simply P = 1/f expressed in diopters (with f in meters). For comparison, the thin-lens focal length is calculated the same way but with the thickness term left out.

Sign convention for radii of curvature

This calculator uses the standard optics convention: light travels left to right through the lens. A radius of curvature is positive if the surface's center of curvature lies to the right of (after) that surface, and negative if it lies to the left (before) it. For a common biconvex lens, the front surface bulges toward the incoming light (R₁ > 0) and the back surface bulges away from it (R₂ < 0) — hence the calculator's defaults of R₁ = 100 mm and R₂ = −100 mm. A flat (planar) surface has an infinite radius of curvature and should be modeled as a very large number, not zero — entering R₁ or R₂ = 0 makes the equation undefined.

Common mistakes and practical notes

  • Mixing up the surface order: R₁ is always the surface light hits first; swapping R₁ and R₂ flips their signs and changes the computed focal length.
  • Entering R = 0 for a flat surface: a flat surface has an infinite radius, not zero — use a very large number, or use the thin-lens form and treat that term as negligible.
  • Ignoring thickness for a thick lens: the thin-lens formula is only an approximation — for magnifying glasses, camera lenses, and other lenses with d comparable to R₁ or R₂, use the full equation for an accurate focal length.
  • Forgetting the surrounding medium: n here is the lens material's refractive index relative to the surrounding medium (usually air, n ≈ 1.00). If the lens is submerged in water or another medium, use the relative refractive index between the two materials instead.

Frequently Asked Questions

What is the lensmaker's equation?
The lensmaker's equation gives a lens's focal length f from its refractive index n, the radii of curvature of its two surfaces R₁ and R₂, and its center thickness d: 1/f = (n − 1)[1/R₁ − 1/R₂ + (n − 1)d/(nR₁R₂)]. It follows directly from applying Snell's law at each refracting surface.
What's the difference between the thin-lens and full (thick-lens) formulas?
The thin-lens formula, 1/f = (n − 1)(1/R₁ − 1/R₂), assumes the lens's thickness is negligible compared to its radii of curvature. The full lensmaker's equation adds a correction term, (n − 1)d/(nR₁R₂), that accounts for the distance light travels between the two surfaces. For thin eyeglass lenses the two results are nearly identical; for thick lenses like magnifiers they can differ noticeably.
What sign convention do R₁ and R₂ use?
This calculator follows the standard convention where light travels left to right: a surface's radius of curvature is positive if its center of curvature lies after (to the right of) the surface, and negative if it lies before (to the left of) it. A symmetric biconvex lens therefore has R₁ > 0 and R₂ < 0.
How do I convert focal length to optical power?
Optical power in diopters (D) is the reciprocal of the focal length measured in meters: P = 1/f. A converging lens (positive f) has positive power; a diverging lens (negative f) has negative power. This calculator converts your entered units to meters automatically before computing power.