StatGardenREF. DESK
Calculators/Physics/Thin lens equation
Physics

Thin lens equation calculator

Image distance and magnification for a lens of known focal length.

What this calculator does

Thin lens equation works out image distance and magnification for a lens of known focal length. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.

The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.

The formula

Formula1/f = 1/dₒ + 1/dᵢ; m = −dᵢ/dₒ

The inputs explained

FieldWhat to enter
Focal length (cm)A number, measured in cm. Starts at 10.
Object distance (cm)A number, measured in cm. Starts at 25.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How the answer changes with focal length

Every other input is held at the calculator’s starting values while focal length varies. Select any row to load that scenario into the calculator.

How the answer changes with focal length
Focal length (cm)Image distanceMagnificationImage type
56.250 cm-0.2500×Real, inverted image
7.510.714 cm-0.4286×Real, inverted image
1016.667 cm-0.6667×Real, inverted image
1537.500 cm-1.500×Real, inverted image
20100.000 cm-4.000×Real, inverted image
30-150.000 cm6.000×Virtual, upright image