A lensmakers equation calculator finds the focal length of a lens from its refractive index and the radii of its two surfaces. This page also solves the thin lens equation and the mirror equation, so it gives the image distance and magnification for a lens or a mirror from a focal length and an object distance.
How to use the lensmakers equation calculator
- Choose what to work out: a lens focal length, an image from a thin lens or an image from a mirror.
- Enter the values that show, using one length unit throughout.
- Press Calculate and read the focal length, the image distance and the magnification.
The lensmaker's equation
The thick lens form is 1 ÷ f = (n − 1) [1 ÷ R₁ − 1 ÷ R₂ + (n − 1) d ÷ (n R₁ R₂)], where n is the refractive index, R₁ and R₂ are the radii of the two surfaces and d is the thickness [1]. The thin lens form drops the thickness term: 1 ÷ f ≈ (n − 1) [1 ÷ R₁ − 1 ÷ R₂] [1]. The calculator follows this standard form.
Sign convention for the radii
A positive radius means that the centre of curvature is further along in the direction in which the light travels [1]. A lens with two convex faces therefore has R₁ positive and R₂ negative [1]. A concave lens has the opposite signs. Enter the radii with these signs, and the sign of the focal length tells you whether the lens converges or diverges.
A worked lens example
Take n = 1.5, R₁ = 0.2 and R₂ = −0.2 in metres. The thin lens formula gives 1 ÷ f = 0.5 × (5 + 5) = 5, so f = 0.2 m. With a thickness of 0.05 m, the extra term lowers the power to 4.79 and the focal length rises to 0.2087 m. This example is our own.
Flat faces
A plano-convex lens has one flat face. Leave its radius blank. A flat face behaves as an infinite radius, so its term 1 ÷ R is zero. For n = 1.5 and one face of radius 0.2 m, the focal length is 0.4 m. If you leave both radii blank, the calculator asks for a value, because a lens with two flat faces has no focusing power.
The thin lens equation
For a thin lens, the object distance S₁, the image distance S₂ and the focal length f are related by 1 ÷ f = 1 ÷ S₁ + 1 ÷ S₂ [1]. Choose the image mode, enter the focal length and the object distance, and the calculator solves for S₂. When the object sits exactly at the focal point, the rays leave parallel and the image forms at infinity, which the result line says.
Magnification
The magnification of a lens is the ratio of the image size to the object size [1]. We use M = −S₂ ÷ S₁, the standard form. The text of the Wikipedia page was garbled at this point, so this expression is our own statement of it. A negative value means that the image is inverted, a positive value means that it is upright, and a value above one in size means that it is enlarged.
The mirror equation
The mirror equation has the same shape: 1 ÷ f = 1 ÷ d₀ + 1 ÷ dᵢ [2]. The focal length is positive for a concave mirror and negative for a convex one [2]. Both distances are positive when the object and the image are in front of the mirror [2]. The magnification of a mirror is m = −dᵢ ÷ d₀, the image height divided by the object height [2].
A worked mirror example
A concave mirror with a focal length of 10 cm and an object 30 cm in front of it gives 1 ÷ dᵢ = 1 ÷ 10 − 1 ÷ 30 = 1 ÷ 15. The image is 15 cm in front of the mirror, real, with a magnification of −0.5, so it is inverted and half the size of the object. A convex mirror always gives a virtual, upright, reduced image.
Why the distances need one unit
Every term in the equations is a reciprocal length or a ratio. So the radii, the thickness and the distances must all use the same unit, such as millimetres or metres. The focal length then comes out in that unit. The calculator does not convert, so you choose one unit.
Limits of the formulas
These are the textbook formulas for a lens in air, and the thin form can be used when the thickness is small compared with the radii [1]. They ignore the spread of colours, spherical aberration and the thickness of the principal planes. Use the result to plan a simple lens or to check a homework answer, and use ray-tracing software for a camera or telescope design.
Real and virtual images
A positive image distance means a real image, formed where rays actually meet on the output side, so a screen can show it. A negative image distance means a virtual image, which only appears to come from behind the lens or mirror. The calculator labels the result either way. A diverging lens or a convex mirror always gives a virtual, upright, reduced image for a real object.
Checking the result
You can test any answer with the equations in reverse. For the mirror example, 1 ÷ 10 should equal 1 ÷ 30 + 1 ÷ 15, which it does. For the lens, enter the focal length that the lens mode returned into the thin lens mode, and compare. Small differences appear for thick lenses, because the thin lens equation measures distances from a single plane.
Common mistakes
- Entering a positive R₂ for a double convex lens. The back face has a negative radius.
- Mixing millimetres and metres. Use one unit for every length.
- Reading a negative focal length as an error. It means a diverging lens or a convex mirror.
- Using the thin formula on a very thick lens. Add the thickness to the lens mode.
What next
Use this often? Add Geometric Op to your Home screen.
Frequently asked questions
What is a lensmakers equation calculator?
A tool that finds the focal length of a lens from its refractive index, the radii of its two surfaces and, for a thick lens, its thickness.
What is the lensmaker's equation?
1 ÷ f = (n − 1) [1 ÷ R₁ − 1 ÷ R₂ + (n − 1) d ÷ (n R₁ R₂)], and for a thin lens 1 ÷ f ≈ (n − 1) [1 ÷ R₁ − 1 ÷ R₂].
What is the mirror equation?
1 ÷ f = 1 ÷ d₀ + 1 ÷ dᵢ, with a positive focal length for a concave mirror.
How do I find the magnification?
Magnification is minus the image distance divided by the object distance; a negative value means an inverted image.
Can I use any length unit?
Yes, if the radii, thickness and distances all use the same unit.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.