Physics & Chemistry
Lensmaker's Equation Calculator (Focal Length and Diopters)
The focal length of a lens is set by two things: how strongly its material bends light and how curved its surfaces are. The lensmaker's equation combines them for a thin lens. The reciprocal of the focal length equals the ratio of the lens index to the index of the surrounding medium, minus one, multiplied by the difference between the reciprocals of the two surface radii. Opticians and spectacle prescriptions describe the same quantity as optical power, measured in diopters, which is simply one divided by the focal length in metres. A positive power means a converging lens used for long-sightedness and magnifiers, while a negative power means a diverging lens used for short-sightedness. Radii follow a sign convention: with light travelling from left to right, a surface whose centre of curvature lies to the right has a positive radius. A symmetric biconvex lens therefore has a positive first radius and a negative second radius of the same size, and a flat surface has an infinite radius. This calculator lets you enter zero for a flat surface, choose any lens and medium indices, and returns the focal length in centimetres, the power in diopters and whether the lens converges or diverges. It shows clearly why the same lens loses most of its power under water and how high-index plastics allow thinner spectacle lenses for the same prescription.
How to use this calculator
- Enter the refractive index of the lens material, for example 1.5 for crown glass or common plastic.
- Enter the index of the surrounding medium: 1 for air, 1.333 for water.
- Enter the radius of the first surface in centimetres, using 0 for a flat surface.
- Enter the radius of the second surface with its sign, again 0 for flat.
- Read the focal length, the power in diopters and the lens type.
Thin lenses and their limits
The equation assumes the lens is thin compared with its radii, so its thickness can be ignored. For thick lenses an extra term involving the thickness and the index appears, and focal lengths are measured from the principal planes rather than the centre.
Real lenses also show chromatic aberration because the refractive index changes with wavelength. Blue light focuses slightly closer than red, which is why camera and telescope lenses combine glasses with different dispersion.
Diopters in eyeglass prescriptions
Spectacle prescriptions list sphere power in diopters, usually in steps of 0.25. A −2.00 prescription is a diverging lens with a focal length of half a metre, and +2.00 is a converging lens of the same strength.
High-index materials such as 1.67 or 1.74 plastics need less curvature to reach the same power, which is why they make thinner, lighter lenses for strong prescriptions.
Formula & method
1/f = (n_lens ÷ n_medium − 1) × (1/R₁ − 1/R₂)Power (diopters) = 100 ÷ f (cm)R > 0 when the centre of curvature is beyond the surface (light travels left to right)A flat surface has R = ∞, so 1/R = 0The calculator uses the thin-lens form 1/f = (n_lens/n_medium − 1)(1/R₁ − 1/R₂) and converts to power with P = 100/f when f is in centimetres.
Worked example
Symmetric biconvex glass lens, n = 1.5, R₁ = 20 cm, R₂ = −20 cm, in air
- n ratio − 1 = 0.5
- 1/R₁ − 1/R₂ = 0.05 + 0.05 = 0.1 per cm
- 1/f = 0.05, so f = 20 cm
Answer: The lens is converging with a focal length of 20 cm and a power of +5 diopters.
Frequently asked questions
What is a diopter?
A diopter is the unit of optical power, equal to one divided by the focal length in metres. A lens with a 25 cm focal length has a power of 4 diopters.
How do I enter a plano-convex lens?
Enter the curved surface's radius as R₁ and 0 for the flat side. A plano-convex lens of index 1.5 with a 10 cm radius has a focal length of 20 cm.
Why does my lens show as diverging?
A negative focal length means the lens spreads light. That happens with concave surfaces, or with a lens whose index is lower than the surrounding medium, such as an air bubble in water.
Does it matter which surface faces the light?
For a thin lens the focal length is the same either way. Flipping the lens swaps and changes the signs of the radii, but the result of the equation does not change.
What refractive index should I use?
Common values are 1.50 for crown glass and CR-39 plastic, 1.59 for polycarbonate, 1.62 for flint glass and 1.67 or 1.74 for high-index spectacle plastics. Manufacturers list the exact index at a standard wavelength.
Why is the lens weaker under water?
The bending depends on the ratio of the two indices. Glass at 1.5 in water at 1.333 gives a ratio of about 1.125 instead of 1.5, so the power falls to roughly a quarter of its value in air.