Thin lens focal length calculator
Use distances measured from the lens and follow the usual thin-lens sign convention. A negative image distance represents a virtual image on the object side.
Calculator
How to use this calculator
Solve the thin-lens equation for focal length from object and signed image distances.
- Enter Object distance do (cm), Image distance di (cm). Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Thin lens focal length calculator
Use distances measured from the lens and follow the usual thin-lens sign convention. A negative image distance represents a virtual image on the object side.
What it measures
The tool rearranges the lens equation to find the focal length that relates the entered object and image positions.
Inputs and units
- Object distance do (cm): Positive object distance do from the lens, in centimeters.
- Image distance di (cm): Signed image distance di in centimeters; positive for a real image and negative for a virtual image under the stated convention.
Formula and method
1/f = 1/do + 1/di, so f = do·di/(do+di), when the reciprocal sum is nonzero.
Worked example
For do = 30 cm and di = 60 cm, f = (30×60)/(30+60) = 20 cm.
Interpreting the result
A positive focal length indicates a converging lens under the stated sign convention; a negative value indicates a diverging-lens result. The output unit is centimeters.
Assumptions and limits
This is a paraxial thin-lens approximation. Thick-lens principal planes, aberrations, and measurement uncertainty are omitted. Object distance must be positive; image distance is signed and cannot be zero.
Sources and method
- Develops the thin-lens equation and signed object/image distances, including real and virtual image cases. OpenStax College Physics 2e: Image formation by lenses
Frequently asked questions
Can image distance be negative?
Yes. Under the standard convention it represents a virtual image on the object side.
Why can there be no finite focal length?
A zero image distance or a zero reciprocal sum makes the rearranged relation undefined or unbounded.
How do I use the Thin lens focal length calculator?
Enter Object distance do (cm), Image distance di (cm). Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Thin lens focal length?
For do = 30 cm and di = 60 cm, f = (30×60)/(30+60) = 20 cm.
What does the Thin lens focal length calculator calculate?
Solve the thin-lens equation for focal length from object and signed image distances.
See the calculation methodology.
Good calculators show their work.
CalcWorldHub is built around clear inputs and visible assumptions. Results are estimates for planning; check official sources or your provider’s terms when exact figures matter.