Optics

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.

Embed this calculator on your site — free

Free to use on any site, for any purpose. Please keep the “Powered by UsePhysics.com” credit — that link is the only thing we ask for in return.

Embed the working calculator

Paste into any page that allows HTML. Keep the last line too if you can: it resizes the frame to fit, which is what stops the results being cut off on a narrow screen.

<iframe src="https://usephysics.com/embed/lens-equation" width="100%" height="480" style="border:1px solid #e5e7eb;border-radius:12px" title="Lens Equation Calculator — UsePhysics" loading="lazy"></iframe>
<p style="font-size:13px"><a href="https://usephysics.com/calculators/lens-equation?ref=embed">Lens Equation Calculator</a> by <a href="https://usephysics.com?ref=embed">UsePhysics</a></p>
<script src="https://usephysics.com/embed.js" async></script>

Just a link

For READMEs, Notion, forums and anywhere that strips iframes.

<a href="https://usephysics.com/calculators/lens-equation?ref=embed">Lens Equation Calculator — UsePhysics</a>