Lens Equation — 1/f = 1/do + 1/di
The lens equation 1/f = 1/do + 1/di explained: focal length, object and image distances, sign conventions, and a worked example.
What it means
The lens equation links three distances: where the object is, where the image lands, and the lens's focal length. It says a lens of fixed power trades object distance against image distance — move the object closer and the image pushes farther out. The sign convention carries the physics: a positive image distance means a real image you can project on a screen; a negative one means a virtual image on the same side as the object, like a magnifying glass view. Camera autofocus is this equation running in reverse, shifting the lens until the sensor sits exactly at di.
Variables
| Symbol | Name | Unit | Meaning |
|---|---|---|---|
| Focal length | m or cm | Focal length of the lens (positive for converging) | |
| Object distance | m or cm | Distance from object to lens | |
| Image distance | m or cm | Distance from lens to image (positive = real image) |
Assumptions
- Thin lens (thickness negligible vs focal length)
- Paraxial rays — rays close to the optical axis
- Real-is-positive sign convention
Derivation
Applying Snell's law at each spherical surface of a thin lens and using the small-angle approximation gives the refraction at a single surface; combining two surfaces and taking the thin-lens limit yields .
Worked example
An object sits 30 cm in front of a converging lens of focal length 10 cm. Where does the image form?
Given:
- do = 30 cm
- f = 10 cm (converging lens)
Write the lens equation:
Rearrange:
Common denominator:
Invert:
The image forms 15 cm past the lens — closer than the object, as expected for an object outside the focal point of a converging lens. The magnification m = −di/do = −0.5, so the image is real, inverted and half-sized.