This thin lens calculator solves the thin lens equation 1/f = 1/dₒ + 1/dᵢ for image distance, and reports magnification and the image’s character — real or virtual, upright or inverted, enlarged or reduced. It handles converging and diverging lenses under the standard sign convention stated on the page.
One Equation, Every Camera and Eyepiece
The thin lens equation 1/f = 1/dₒ + 1/dᵢ relates the three distances of geometric optics in a single breath, and magnification m = −dᵢ/dₒ rides along free. The sign convention does the conceptual work: distances measured to the side where light actually goes are positive; a converging (double-convex) lens takes f > 0, diverging f < 0; a negative dᵢ announces a virtual image on the object's side. The defaults trace the camera case: f = 10 cm, object at 30 cm → 1/dᵢ = 1/10 − 1/30 = 1/15 → dᵢ = 15 cm, m = −0.5 — real, inverted, half-size: a photograph being born. Moving the object tells the whole catalogue: at 2f (20 cm) the image is same-size at 2f; between f and 2f it enlarges (projector); inside f it flips virtual-upright-enlarged (magnifying glass) — one continuous slide of dₒ walks every optical instrument humans build.
The equation's limits deserve their sentence: “thin” means the lens's thickness is negligible next to the distances (real camera lenses are compound stacks engineered to behave like one thin lens with measurable f), and the paraxial assumption (rays near the axis) keeps spherical aberration off the page. Focal length itself is manufactured by the lensmaker's equation from surface curvatures and glass index — the Snell's-law machinery underneath (Snell's law page is live in this hub) — while this calculator takes f as given, the way working photographers and physics students actually meet it.
Worked Examples (Verified)
- Camera case (defaults): dᵢ = 15.0 cm, m = −0.50, image height −2.0 cm for the 4 cm object (the minus sign IS the inversion).
- Magnifier: f = 10, dₒ = 6 → 1/dᵢ = 1/10 − 1/6 = −1/15 → dᵢ = −15 cm, m = +2.5 — virtual, upright, 2.5×: reading the fine print.
- Diverging: f = −10, dₒ = 30 → 1/dᵢ = −1/10 − 1/30 = −2/15 → dᵢ = −7.5 cm, m = +0.25 — always virtual/upright/reduced, the door-peephole image.
Thin Lens Discipline
- Sign convention first, arithmetic second: state yours (this page: real-is-positive) because textbooks differ in dialect (Cartesian conventions flip signs) — the image CHARACTER (real/virtual, upright/inverted) is the convention-free truth to sanity-check against.
- m's sign is the orientation: negative = inverted (all real images), positive = upright (virtual images of real objects through single lenses) — a positive m with a “real” claim is a self-contradiction worth catching.
- Units cancel but must match: f, dₒ, dᵢ all in cm here; mixing mm focal lengths with cm distances is the classic lab-report bug.
- Object at exactly f → image at infinity; object at infinity → image at f: the two limits calibrate every ray diagram you sketch.
- Two-lens systems chain: image of lens 1 becomes object of lens 2 (with distance measured from lens 2, sign care when the first image would form beyond the second lens) — microscopes and telescopes are this page applied twice.
Related Tools
- Mirror Equation Calculator — the reflecting sibling
- Magnification Calculator — m in every dialect
- Snell's Law Calculator — why lenses bend light
- Physics Calculators — the full collection
Frequently Asked Questions
How do you use the thin lens equation?
1/dᵢ = 1/f − 1/dₒ, then m = −dᵢ/dₒ. With f = 10 cm and dₒ = 30 cm: dᵢ = 15 cm, m = −0.5 — a real, inverted, half-size image 15 cm behind the lens. This calculator solves it, handles the at-focal-point (infinity) case, and reads out the image's character from the signs.
What does a negative image distance mean?
A virtual image on the same side of the lens as the object: the outgoing rays diverge as if coming from that point, so your eye (looking through the lens) sees an image there, but no screen can catch it — no light actually converges there. Magnifying glasses and diverging lenses live in this regime; the negative sign is information, not an error.
When is the image real vs virtual?
Real (dᵢ > 0): light actually converges on the far side — projectable, always inverted for a single lens. Virtual (dᵢ < 0): far-side rays diverge; image on the object side — not projectable, upright for single lenses. Converging lenses produce real images when dₒ > f and virtual when dₒ < f; diverging lenses produce virtual images of real objects always.
How does a magnifying glass work in these terms?
Object placed inside the focal length of a converging lens: dₒ < f makes 1/dᵢ negative — virtual image, upright, with m = f/(f − dₒ) growing as the object nears f. Our worked example: f = 10, dₒ = 6 → m = +2.5 at dᵢ = −15 cm. The practical limit is your eye's near point and aberrations, which is why magnifier powers quote angular magnification alongside — see the Magnification Calculator.
What is the 2f special case?
Object at exactly twice the focal length images at 2f on the other side with m = −1: same size, inverted — the symmetry point of the equation (swap dₒ and dᵢ and the equation is unchanged, a reciprocity built into 1/f = 1/dₒ + 1/dᵢ). Photocopiers and 1:1 macro setups work at this configuration.
How do units and power (diopters) work?
Any consistent length unit works in the equation; optometry measures lenses by power P = 1/f with f in METERS, in diopters (D): our f = 10 cm lens is P = +10 D. Prescription glasses are specified this way (a −2.5 D lens is diverging, f = −40 cm). Convert cm → m before computing diopters — the factor-of-100 error is the classic slip.
What breaks the thin lens approximation?
Thick lenses (principal planes separate — the equation survives with distances measured from those planes, which is how real optics handles it), wide apertures (spherical aberration: marginal rays focus short of paraxial rays), and strongly colored light (chromatic aberration: f depends on wavelength through the glass's dispersion). The equation is the paraxial skeleton — astonishingly durable, but a skeleton.
Is this thin lens calculator free?
Yes — free, instant, no sign-up. Enter focal length (signed), object distance and optional object height for image distance, magnification, image height and full character.