Thin Lens Equation Calculator (Focal Length)

Thin lens equation calculator: focal length, object distance or image distance from 1/f = 1/dₒ + 1/dᵢ, with magnification and diopters.

1f = 1do + 1di

How to use this calculator

  1. Choose the quantity you want under “Solve for”.
  2. Type the known values and pick their units: any combination works.
  3. The result updates as you type. Open “Show the steps” to see the substitution.

Use negative image distances for virtual images and negative focal lengths for diverging lenses. Magnification = −dᵢ/dₒ.

Formula

1f = 1do + 1di

SymbolQuantityUnits
doObject distancem, km, cm, mm, µm, nm, pm, Å, in, ft, yd, mi, nmi, au, ly
diImage distance (negative = virtual)m, km, cm, mm, µm, nm, pm, Å, in, ft, yd, mi, nmi, au, ly
fFocal length (negative = diverging)m, km, cm, mm, µm, nm, pm, Å, in, ft, yd, mi, nmi, au, ly

Worked example

Given: do = 30 cm · di = 60 cm

f = do dido + di

Result: f = 20 cm

Focal length (negative = diverging) for different values of Object distance

do · Object distancef · Focal length (negative = diverging)
15 cm12 cm
22.5 cm16.364 cm
27 cm18.621 cm
30 cm20 cm
33 cm21.29 cm
37.5 cm23.077 cm
45 cm25.714 cm
60 cm30 cm

Other values as in the worked example.

Frequently asked questions

Object at 30 cm, image at 60 cm?

f = 20 cm, magnification −2 (real, inverted, twice as large).

Related calculators

Last updated: · Report an error