Lens Magnification Solver – Magnification & Image Distance from f and Object Distance

Use this free Lens Magnification Solver to find the magnification and image distance of a thin lens directly from its focal length and the object distance — using the compact form m = f / (f − do), handy when you know where the object sits but not where the image lands.

object image lens f

Formula

m = f / (f − do)  •  di = f × do / (do − f)  •  m = −di / do

A negative magnification means the image is inverted; a positive one means it is upright. A negative image distance means a virtual image on the same side as the object.

How to use

Worked example

A converging lens has f = 10 cm and the object is do = 15 cm away.
m = 10 ÷ (10 − 15) = 10 ÷ (−5) = −2 (image twice as large, inverted).
di = (10 × 15) ÷ (15 − 10) = 150 ÷ 5 = 30 cm on the far side of the lens.

FAQ

Where does m = f / (f − do) come from?
It is the ordinary magnification m = −di/do with the image distance from the lens equation substituted in. It is useful because it needs only the two quantities you usually know first: f and do.

What happens when the object is exactly at the focal point?
Then f − do = 0 and the magnification blows up — the rays leave the lens parallel and the image is formed at infinity, so no screen can catch it.

Can the magnification be greater than 1 with a virtual image?
Yes. If a converging lens has the object inside its focal length (do < f), m is positive and larger than 1 — that is exactly how a magnifying glass works: an upright, enlarged virtual image.