CalcWorldHub
Free online calculator · no signup

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.

Worked example
Relevant result
Clear result · useful details
Default calculator result20 cm focal length

Calculator

4,000 tools
Thin lens focal length calculator — Object distance do (cm), Image distance di (cm) and calculation method
Thin lens focal length calculator: inputs and calculation method.

How to use this calculator

Solve the thin-lens equation for focal length from object and signed image distances.

  1. 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.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

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.

Object and image distances in a thin-lens modelA schematic converging lens diagram marks object distance, image distance, and focal points; it is not to scale.FFobjectimage
Object and image distances in a thin-lens model. Schematic, not to scale.

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

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.

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.

✓ Results update instantly
✓ No account required
✓ Privacy-friendly by design
✓ US and metric units