Lensmaker's Equation Calculator
Introduction to the Lensmaker Equation
The lensmaker equation ties a lens's curvature and material index to the focal length it produces. If you know the refractive index and the signed radii of the two surfaces, you can estimate the focal length. If one quantity is unknown, the same relationship can be rearranged to solve for it. That is the job of this calculator: enter four values, leave one field blank, and the result is computed in your browser.
This lensmaker calculator is useful when you are checking a classroom problem, comparing lens shapes, or estimating how much a real lens departs from the thin-lens approximation. It includes the center thickness , so the page can handle the familiar thin-lens case as well as the thicker form that optical designers use when a lens cannot be treated as negligible in thickness. When the thickness is set to zero, the equation drops back to the thinner form.
Because sign conventions determine whether a surface helps convergence or divergence, it is worth reading the radius fields carefully before calculating. The values for and are signed radii of curvature, not just positive distances. A change in sign can turn a converging lens into a diverging one on paper, so the calculator accepts biconvex, plano-convex, meniscus, biconcave, and other shapes as long as the conventions are applied consistently.
How to Use the Lensmaker Calculator
To use the lensmaker calculator, decide which quantity you want to solve and leave exactly one field blank. Fill in the other four values, then press the compute button. If more than one field is blank, or if every field is filled, the page asks you to leave exactly one field empty. That rule keeps the lensmaker equation from becoming ambiguous.
Here is what each input means in the context of lensmaker's equation. The refractive index describes how strongly the lens material bends light relative to the surrounding medium. The radius is the curvature radius of the first surface encountered by incoming light, and is the radius of the second surface. The thickness is the distance between the two lens vertices along the optical axis. The focal length is the paraxial distance from the lens to the focal point.
Units matter. This page does not convert units automatically, so all length values should be entered in the same unit system. If you use meters for , , and , the focal length will also come out in meters. Millimeters work just as well, but then every length on the form must use millimeters. Mixing meters and millimeters in the same lensmaker calculation will give the wrong answer.
The sign convention used here follows standard introductory optics. A radius is positive when the center of curvature lies to the right of the surface as seen by incoming light, and negative when the center lies to the left. In many converging lenses, that means and . For a diverging biconcave lens, the signs are often reversed. If you are unsure, sketch the lens and mark each center of curvature before entering numbers.
After you submit the form, the result message confirms which lensmaker variable was computed. The script also writes the answer back into the blank input field so you can immediately reuse it in a follow-up calculation. That makes it easy to see how changing one surface or material changes the focal length. For example, you can compute first, then adjust or one radius and compare the new result.
Lensmaker Equation Formula
The page uses the thick-lens lensmaker equation shown below. In the calculator's notation, it relates focal length to the refractive index, the two signed radii, and the center thickness.
Formula: 1 / f = n - 1 1 / R_1 - 1 / R_2 + (n - 1) / d 1 / R_1
In words, the reciprocal of focal length depends on the refractive-index contrast, the curvature of the first surface, the curvature of the second surface, and a thickness correction when the lens is not thin. Stronger curvature usually means a shorter focal length in magnitude. A higher refractive index also tends to increase optical power, which shortens the focal length for a converging lens of the same shape.
For thin lenses, where the thickness is negligible, the equation simplifies to the familiar form:
Formula: 1 / f = n - 1 1 / R_1 - 1 / R_2
This simplified expression is the version most often introduced first in physics classes because it captures the core lensmaker relationship without the extra thickness term. Even so, real lenses are never infinitely thin, so the full equation is more appropriate whenever the center thickness is not tiny compared with the radii of curvature.
The calculator can also solve for , , , or when those are the unknowns. Most of those cases are handled by algebraic rearrangement. When refractive index is left blank, the script uses a Newton-Raphson iteration to find a numerical solution, which is practical because the thick-lens lensmaker equation is nonlinear in .
Lensmaker Equation Worked Example
Suppose you are checking a biconvex glass lens with refractive index . Let the first radius be m and the second radius be m. If the lens is thin enough that , the thin-lens form gives a focal length of about m. That means parallel incoming rays would come to focus roughly 9.6 cm from the lens under paraxial conditions.
Now compare that with a slightly thicker version of the same lens. Give it a 5 mm center thickness (0.005 m) and the focal length shifts to about 0.097 m, a hair longer than the thin-lens value. The direction surprises people at first, but it follows from the sign convention: for a biconvex lens the two radii have opposite signs, so their product is negative and the Gullstrand thickness term subtracts from the power. Adding glass in the middle of a biconvex lens therefore weakens it slightly rather than strengthening it. The change is under one percent here, but in precision optical work even a fraction of a percent in focal length can matter, which is why the thickness field is worth keeping instead of assuming every lens is thin.
You can also use the calculator in reverse when designing a lens. If you know the desired focal length and the material, but one surface radius is still undecided, leave that radius blank and solve for it. The result gives you a starting curvature for design work. In practice, optical engineers use this kind of first-pass estimate before moving on to software that accounts for aberrations and manufacturing limits.
As another interpretation, a negative focal length means the lens is diverging rather than converging. If your inputs produce a negative result, that does not necessarily mean the calculator is wrong. It usually means the chosen curvatures and refractive index correspond to a lens that spreads parallel rays apart. That is expected for many concave lens shapes.
Lensmaker Equation Assumptions and Limitations
The lensmaker equation is powerful, but it is still an idealized model of lens behavior. It relies on paraxial optics, which assumes rays stay close to the optical axis and make only small angles with it. Under that approximation, the geometry simplifies enough to give a compact formula. Once rays travel far from the axis or strike the lens at large angles, the real image can depart from the prediction.
Another limitation is that the equation predicts focal length, not image quality. A lens can have the correct focal length and still produce blur or distortion because of spherical aberration, coma, astigmatism, field curvature, distortion, or chromatic aberration. Those effects depend on more than paraxial focal power. They often need ray tracing or multi-element design tools to analyze properly.
The refractive index entered here should be interpreted relative to the surrounding medium. If the lens is in air, the usual glass index values apply directly. If the lens is submerged in water or another fluid, the effective relative index changes. For example, a glass lens with absolute index 1.5 in water with index 1.33 behaves more like a lens with relative index . Entering the relative value gives a more realistic result for underwater use.
Numerical edge cases can also occur. If a radius is zero, the equation becomes undefined because curvature would be infinite. If the chosen values imply an impossible or unstable configuration, the computed result may be extremely large, extremely small, or not physically meaningful. Likewise, when solving for refractive index numerically, some unusual combinations may converge slowly or lead to a value that is mathematically valid but unrealistic for ordinary optical materials.
Even with those limits, the calculator remains a useful first-order design and learning tool. It helps build intuition about how curvature, thickness, and material properties interact. Make one surface steeper and the lens usually becomes stronger. Increase the refractive index and the same shape bends light more. Increase thickness and the thick-lens correction begins to matter. Those trends are central to optical design, and this page lets you explore them quickly without leaving the browser.
Interpreting Lensmaker Equation Results
When the calculator returns a focal length, the sign tells you whether the lens is converging or diverging in the chosen convention. Positive focal length generally indicates a converging lens, while negative focal length indicates a diverging lens. When the calculator returns a radius, the sign tells you which side of the surface the center of curvature lies on. When it returns refractive index, compare the value with known materials to judge whether the result is plausible. Typical crown glasses are around 1.5, while higher-index optical glasses can be significantly larger.
If you are checking a classroom problem, it is a good habit to estimate the answer before pressing compute. A strongly curved glass lens should not produce an extremely long focal length unless the curvatures nearly cancel. A lens in water should usually be weaker than the same lens in air. A very thick lens may differ noticeably from the thin-lens estimate. These rough expectations help you catch sign mistakes and unit mismatches before relying on the numerical output.
| Rโ (m) | Rโ (m) | Thickness d (m) | Focal Length f (m) |
|---|---|---|---|
| 0.1 | -0.1 | 0 | 0.100 |
| 0.05 | -0.05 | 0 | 0.050 |
| 0.05 | -0.05 | 0.01 | 0.052 |
| -0.1 | 0.1 | 0 | -0.100 |
Focus the Beam Mini-Game
The lensmaker equation exists to answer one practical question: where does a bundle of parallel rays come to a point after passing through the lens? This mini-game turns that into a target-shooting loop. A screen slides in at a random distance behind the lens, and your job is to tune the lens power until the converging cone of light lands its focus right on the screen, then lock it in before the round timer runs out.
Score
0Round
1Lives
3Best
0Takeaway: focusing is nothing more than matching the lens's focal length to the distance of the screen. Steeper curvature or a higher refractive index pulls the focus in closer, exactly the trend the lensmaker equation above predicts.
