Skip to content
LoveToCalc

Definition — what does that mean?

Thin lens equation

Where does the image land? Three distances, one formula — for a magnifying glass, a camera and an eye.

In Swedish: Linsformeln

Thin lens equation

The relation

1f=1dₒ+1dᵢ

How the object distance, the image distance and the focal length relate for a thin lens — the same relation behind a magnifying glass, a camera and an eye.

A converging lens on a horizontal axis. An upright object stands to the left; two dashed rays from its tip, one parallel to the axis and one through the middle of the lens, meet again to the right and form an inverted image. Dashed lines mark the object distance dₒ and image distance dᵢ, and the focal length f is the distance from the lens to the focal point on the axis.
Solve for
Solved for f

f=11dₒ+1dᵢ

f=0.1m

f equals 1 divided by ((1 divided by 0.3) plus (1 divided by 0.15)), is approximately 1 divided by (3.3333 plus 6.6667), equals 1 divided by 10, equals 0.1 m

Working4 steps

Practice questions

You are given

  • f=0.125m
  • dₒ=0.75m

Round to 3 decimals.

The formula

dₒ is the object distance, from the object to the lens, dᵢ the image distance, from the lens to the image, and f the focal length of the lens. All in the same unit.

It is also called the lens formula.

Holds for one thin lens and rays close to the optical axis.

An object 30 cm from a lens with a focal length of 10 cm: 1/dᵢ = 1/10 − 1/30 = 2/30, so dᵢ = 15 cm behind the lens.

The sign rule

Where the object stands decides the image

The object The image
Very far away At the focal point, dᵢ ≈ f
Beyond 2f Between f and 2f, smaller
Exactly at 2f At 2f, the same size
Between f and 2f Beyond 2f, larger
Exactly at f No image — the rays leave parallel
Inside f Virtual, larger, upright

The last row is the magnifying glass.

Worked examples

The magnifying glass. f = 10 cm, the object 5 cm away: 1/dᵢ = 1/10 − 1/5 = −1/10, so dᵢ = −10 cm. The minus sign says the image is virtual and on the object’s side — it is the one you see through the glass.

The camera. A 50 mm lens, the subject 5 m away: 1/dᵢ = 1/50 − 1/5,000 = 99/5,000, so dᵢ ≈ 50.5 mm. To focus from infinity to five metres the lens moves half a millimetre.

Find the focal length. A lens throws a sharp image of a window 3 m away onto a screen 12 cm behind it: 1/f = 1/300 + 1/12, so f ≈ 11.5 cm.

How big the image is comes from the magnification formula.

Common mistakes

Frequently asked questions

What are dioptres? One over the focal length in metres. +2.5 dioptre reading glasses have a focal length of 1 / 2.5 = 0.4 m. Glasses for short sight are diverging lenses with a negative focal length.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
dₒ11f−1dᵢ110.1−10.150.3 m
dᵢ11f−1dₒ110.1−10.30.15 m
f11dₒ+1dᵢ110.3+10.150.1 m

Last reviewed October 6, 2026 ·How pages are reviewed

Waves and opticsAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.