Skip to content
Astronomy & optics

Thin lens: image distance and magnification

Calculate image position and magnification for an ideal thin lens and a real object.

Free & no registration Calculated in your browser
01

Your inputs

The starting values are an example.

Positive for a converging lens and negative for a diverging lens; zero is not allowed.

Decimals: 12.5 · Thousands: 1,234.56. Follow the field instructions for lists.

02

Your result

Enter your values and select Calculate.

Your calculation will appear here.

Your result will include the relevant values and units.

Understand the calculation

Formula and example

How it is calculated

1/f = 1/g + 1/b; magnification = −b/g

Worked example

f = 10 cm and g = 30 cm give b = 15 cm. A magnification of −0.5 describes an inverted image half the size of the object.

Things to check

  • In this sign convention, a positive image distance indicates a real image and a negative distance indicates a virtual image.
  • The approximation applies to thin lenses and paraxial rays. An object in the focal plane has its image at infinity.

Sources and references