Thin lens equation calculator
Find the image distance, magnification and image type from a lens's focal length and object distance.
anındahesapla Editör Ekibi · Updated:
Place an object 30 cm in front of a lens with a 10 cm focal length, and its image appears 15 cm behind the glass with a magnification of -0.5. That answer comes from the thin lens equation. The picture is real and upside down. Enter two inputs, and the calculator returns three results at once, including whether the image can be projected onto a screen.
Physics homework brings this problem up all the time. Hobbyists meet it too when they set up a magnifier, a slide projector or a homemade telescope, and photographers meet it whenever a close subject forces the lens to be racked farther out from the camera body. Every case asks the same thing. As the object moves, where does the image land and how large does it become? Below, the equation, each input and the output are explained in turn, with a worked example and a short table of results.
Result
15 cm
Image distance: 15 cm · Magnification: -0.5
Result in all units
Step-by-step solution
1/f = 1/do + 1/di
What the thin lens equation describes
The thin lens equation ties together three lengths for a lens whose thickness is small compared with its focal length. Written out, it reads 1/f = 1/do + 1/di. Know any two, solve the third. Treating the lens as thin means ignoring the short path light travels inside the glass, an approximation that keeps the arithmetic light and still predicts image positions well for ordinary spectacle, magnifier and camera lenses.
Each symbol has a job. The letter f is the focal length and reflects how strongly the lens bends light. Object distance do is the gap between the object and the lens, while image distance di measures how far the image sits from the lens. Magnification m equals di divided by do, with a minus sign in front. Negative values mean inversion. When its size is below one, the image is smaller than the object. Converging lenses take a positive focal length and diverging lenses a negative one, so the sign carries physical information about the shape of the glass. All lengths must share one unit: this tool works in centimetres.
Eyeglasses, magnifying glasses, microscopes, telescopes and cameras all form images in this way. This formula predicts where a projector screen should stand, how far a camera sensor belongs behind its lens and how the lens of the eye lands a scene on the retina at the back of the eyeball. On a lab optical bench, students check measured distances against it. Results usually agree closely. Small gaps between theory and measurement come from lens thickness, imperfect alignment and the difficulty of judging by eye when a projected picture is sharpest.
How to work out the image distance
Two inputs are needed. Type in the focal length and the distance from the object to the lens, both in centimetres, and the calculator solves the equation for the image distance before using that value to find the magnification and classify the image as real or virtual, upright or inverted.
- Fill in the focal length f, with a minus sign for a diverging lens.
- Add the object distance, measured from the object to the lens.
- Rearrange the equation to 1/di = 1/f − 1/do and solve for di.
- Divide di by do and flip the sign to get the magnification.
- Read off whether the image is real or virtual, upright or inverted.
| Output | Value |
|---|---|
| Image distance (di) | 15 cm |
| Magnification (m) | -0.5 |
| Image type | Real, inverted |
A common slip involves mixed units. Someone measures a bench setup in millimetres, types those readings into centimetre fields and gets distances that look absurd for a desk-sized arrangement of mounts and cardboard. Another limit appears when a target sits right at f: rays leave parallel, no picture forms anywhere, so the output becomes undefined.