Electricity & Waves

Lens Equation Calculator (Thin Lens: 1/f = 1/dₒ + 1/dᵢ)

Calculate image distance and magnification with the thin lens equation. Understand cameras, glasses and magnifiers from focal length and object distance.

1/f = 1/dₒ + 1/dᵢ
Image distance
15cm
Magnification
-0.5×

How it works

The thin lens equation links three distances: focal length (the lens's strength), object distance, and where the sharp image forms. Every camera, eyeball, magnifier, projector and pair of glasses obeys it.

Reading the results: positive image distance means a real image forms on the far side of the lens (cameras, projectors); negative means a virtual image on the same side (magnifying glass in use). Negative magnification means the image is inverted — as on your camera sensor and your own retina.

Move an object closer than the focal length and the lens can no longer form a real image — it becomes a magnifier. That single transition explains the difference between photographing a flower and inspecting it with a loupe.

Use it in real life

Photography: 'focusing' physically moves the lens to satisfy this equation as dₒ changes. Macro lenses are built for very short object distances; telephoto for effectively infinite ones.

Eyesight: glasses add or subtract focal power so the eye's lens equation lands the image exactly on the retina — nearsightedness means it lands short, farsightedness long.

Projectors: place the slide just outside the focal length and the equation yields a huge, distant, inverted real image — which is why slides go in upside down.

Frequently asked questions

What does negative image distance mean?

A virtual image: the light rays only appear to come from a point on the object's side of the lens. You can see it through the lens (like a magnifying glass) but can't project it on a screen.

What is focal length physically?

The distance at which the lens focuses parallel rays (from a very distant object) to a point. Shorter focal length = stronger bending = more powerful lens. Eyeglass prescriptions use dioptres: power = 1/f in metres.

Why does my phone camera blur close objects?

Below a minimum object distance, the required image distance exceeds what the tiny lens assembly can physically accommodate. Macro modes switch lenses or move optics to satisfy the equation at close range.