Skip to content
Omnikalc

Thin lens calculator: image distance and magnification

Use the thin lens equation 1/f = 1/do + 1/di to find where the image forms, its magnification and its height, for converging and diverging lenses.

Updated on
Your inputs
cm

Value out of range

cm

Value out of range

cm

Value out of range

Results

Image distance

15.00 cm

Real image, on the other side of the lens

Magnification

-0.50

Inverted image
Image height
-1.00 cm
Lens power
10.00 diopters

The thin lens equation

For a thin lens, the object distance, image distance and focal length are linked by:

1/f = 1/dₒ + 1/dᵢ

Solved for the image distance: dᵢ = f × dₒ ÷ (dₒ − f).

The magnification is m = −dᵢ ÷ dₒ, and the image height is m × object height.

Sign conventions

This calculator uses the common “real is positive” convention:

  • f is positive for a converging (convex) lens, negative for a diverging (concave) lens.
  • dₒ is positive for a real object in front of the lens.
  • dᵢ is positive for a real image on the other side of the lens, negative for a virtual image on the object side.
  • m negative means the image is inverted; positive means upright.

Worked example

An object 2 cm tall stands 30 cm in front of a converging lens with a 10 cm focal length.

  1. Image distance: 10 × 30 ÷ (30 − 10) = 15 cm, a real image behind the lens.
  2. Magnification: −15 ÷ 30 = −0.5, an inverted image half the size.
  3. Image height: −0.5 × 2 = −1 cm.
  4. Lens power: 1 ÷ 0.10 m = 10 diopters.

Where the image forms with a converging lens

Object position Image Example
beyond 2f real, inverted, smaller camera
at 2f real, inverted, same size photocopier
between f and 2f real, inverted, larger projector
at f no image (rays parallel) searchlight
inside f virtual, upright, larger magnifying glass

A diverging lens always gives a virtual, upright, smaller image, as in glasses for nearsightedness.

Lens power and eyeglasses

Lens power in diopters is 1 ÷ f, with f in meters. A prescription of −2.00 D is a diverging lens with a focal length of −50 cm. For thin lenses in contact, powers add, which makes diopters convenient for optometrists.

Limits

The thin lens equation assumes a lens much thinner than its focal length and rays close to the axis. Real camera lenses have several elements and aberrations, and thick lenses need their principal planes to apply the same equation.

Frequently asked questions

What is the thin lens equation?

1/f = 1/do + 1/di, where f is the focal length, do the object distance and di the image distance. Magnification is m = −di ÷ do.

What does a negative image distance mean?

The image is virtual: it forms on the same side as the object and cannot be projected on a screen, like the image seen through a magnifying glass.

When does a converging lens act as a magnifying glass?

When the object is closer than the focal length. The image is then virtual, upright and enlarged.

What is a diopter?

Lens power in diopters is 1 divided by the focal length in meters. A lens with a 10 cm focal length has a power of 10 diopters; eyeglass prescriptions use the same unit.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.