Thin Lens Calculator
Calculate focal length, image or object distance using 1/f = 1/dₒ + 1/dᵢ (thin lens equation).
What Is Thin Lens?
The thin lens equation 1/f = 1/dₒ + 1/dᵢ relates the focal length (f), object distance (dₒ), and image distance (dᵢ) for a thin lens. Converging lenses (convex, like a magnifying glass) have positive f; diverging lenses (concave) have negative f. All distances are positive when measured in the direction light travels (real images, real objects).
Sign convention: real images form on the opposite side of the lens from the object and have positive dᵢ. Virtual images form on the same side as the object and have negative dᵢ (lenses) or positive dᵢ (mirrors — opposite convention). Linear magnification m = −dᵢ/dₒ: negative m means inverted image; |m| > 1 means magnified.
Lens power (diopters) P = 1/f (in meters). A +2 D lens has f = 0.5 m; a −4 D lens (corrective for myopia) has f = −0.25 m. The eye itself has a power of about +60 D. Reading glasses (+1 to +3 D) compensate for reduced near-focusing ability. The total power of combined thin lenses is P_total = P₁ + P₂.
The thin lens equation assumes the lens is thin compared to object and image distances, and all rays make small angles with the optical axis (paraxial approximation). Real camera lenses use multiple thick elements to minimize spherical aberration, chromatic aberration, and field curvature — but the thin lens equation is the starting point for all optical design.
Formula Reference Table
| Solve For | Formula | Notes |
|---|---|---|
| Image distance | 1/dᵢ = 1/f − 1/dₒ | Positive dᵢ = real image |
| Object distance | 1/dₒ = 1/f − 1/dᵢ | Positive dₒ = real object |
| Focal length | 1/f = 1/dₒ + 1/dᵢ | Positive f = converging |
| Linear magnification | m = −dᵢ/dₒ | −ve = inverted; |m| = scale factor |
| Power (diopters) | P = 1/f (meters) | Prescription lenses use diopters |
| At f (focus) | dᵢ → ∞ | Image at infinity; parallel rays emerge |
3 Worked Examples
Object 30 cm from converging lens, f = 10 cm.
- 1/dᵢ = 1/10 − 1/30 = 3/30 − 1/30 = 2/30
- dᵢ = 15 cm (positive → real, inverted image)
- m = −15/30 = −0.5 (inverted, half size)
Object 5 cm from converging lens, f = 8 cm.
- 1/dᵢ = 1/8 − 1/5 = 5/40 − 8/40 = −3/40
- dᵢ = −13.3 cm (negative → virtual image, upright)
- m = −(−13.3)/5 = +2.67 (upright, magnified 2.67×)
Camera lens f = 50 mm. Image forms at dᵢ = 52 mm. How far is the subject?
- 1/dₒ = 1/f − 1/dᵢ = 1/50 − 1/52
- 1/dₒ = 52/(50×52) − 50/(50×52) = 2/2600
- dₒ = 2600/2 = 1,300 mm = 1.3 m from lens
Real-World Applications
Common Mistakes to Avoid
dᵢ > 0 = real image (light converges); dᵢ < 0 = virtual image. f > 0 = converging lens; f < 0 = diverging. Mixing conventions gives wrong image types.
If dₒ < f for a converging lens, dᵢ becomes negative — a virtual, magnified, upright image. Don't expect a real image on a screen; the image is on the same side as the object.
All distances (f, dₒ, dᵢ) must be in the same units. Mix of mm and cm gives nonsense. Use cm or mm throughout.
m = −dᵢ/dₒ: the sign (−) means inverted, not smaller. |m| determines size: |m| = 2 means 2× larger; |m| = 0.5 means half size.
Compound camera lenses are not thin lenses. The equation gives a useful approximation, but real multi-element lenses have principal planes that define effective object/image distances — 'back focal distance' differs from f.
Frequently Asked Questions
Related Physics Calculators
Formula Explorer connections
Interpretation: This relationship connects light propagation, geometry, wavelength, refraction, interference or image formation. Assumption: Use a consistent sign convention and units. Paraxial rays, thin elements, coherent light, vacuum wavelength or ideal optical components may be assumed.