Image distance, object distance or focal length from the thin lens equation, in mm, cm or inches, with magnification, lens power in diopters and whether the image is real.
Thin Lens Calculator - Image, Focal Length and Magnification
Image distance, object distance or focal length from the thin lens equation, in mm, cm or inches, with magnification, lens power in diopters and whether the image is real.
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
The thin lens equation, from a magnifying glass to a projector
Where does the image form, which way up is it, and how big? A lens with a focal length of 15 cm and an object 20 cm away puts a real image 60.00 cm behind the lens, upside down and three times larger. This calculator solves the thin lens equation for any one of its three distances, in millimeters, centimeters or inches, and adds the magnification, the lens power in diopters and a table of where the same lens would put the image for other object positions.
Where a 10 cm lens puts the image
One converging lens, the object moved closer step by step. The image walks away from the lens and grows, disappears to infinity at the focal point, then comes back on the object's side as a virtual image.
| Object distance | Image distance | Magnification | Image |
|---|---|---|---|
| 50 cm | 12.50 cm | -0.25 | real, inverted, smaller |
| 30 cm | 15.00 cm | -0.50 | real, inverted, smaller |
| 20 cm | 20.00 cm | -1.00 | real, inverted, same size |
| 15 cm | 30.00 cm | -2.00 | real, inverted, larger |
| 12.5 cm | 50.00 cm | -4.00 | real, inverted, larger |
| 10 cm | infinity | none | parallel beam, no image |
| 7.5 cm | -30.00 cm | 4.00 | virtual, upright, larger |
| 5 cm | -10.00 cm | 2.00 | virtual, upright, larger |
Setting up a lens problem, box by box
- Find - the unknown: image distance, object distance or focal length. The other two go in below.
- Distances in - millimeters, centimeters or inches. Everything you type and everything the result shows uses that one unit.
- Focal length - positive for a converging lens, negative for a diverging one. A lens of +2.50 D has a focal length of 40 cm.
- Object distance - from the object to the center of the lens, always above zero.
- Image distance - positive for a real image on the far side, negative for a virtual image on the object's side.
- Object height (optional) - adds the height of the image, upright or upside down.
Eight lenses doing eight different jobs
1. A textbook converging lens
Situation: focal length 15 cm, object 20 cm away.Result: image at 60.00 cm, magnification -3.00: real, inverted, three times larger.
2. A magnifying glass
Situation: focal length 10 cm, a stamp 7 cm below the lens.Result: image at -23.33 cm, magnification 3.33: virtual and upright.
3. A 50 mm camera lens and a person 2 m away
Situation: focal length 50 mm, object distance 2,000 mm, person 1,700 mm tall.Result: image at 51.28 mm, magnification -0.0256, image height 43.59 mm.
4. How far that lens focuses when it moves 2 mm
Situation: find the object distance, focal length 50 mm, sensor 52 mm behind the lens.Result: the lens is sharp at 1,300.00 mm, magnification -0.0400.
5. A slide projector
Situation: focal length 10 cm, a 3.6 cm slide 12 cm from the lens.Result: sharp on a screen 60.00 cm away, magnification -5.00, image 18.00 cm tall.
6. A +2.50 D reading lens over a page
Situation: inches, focal length 15.75 in, text 12 in from the lens.Result: virtual image at -50.40 in, magnification 4.20.
7. A -2.00 D lens for nearsightedness
Situation: focal length -50 cm, a sign 500 cm away.Result: virtual image at -45.45 cm, magnification 0.0909: upright and smaller.
8. Life-size macro at twice the focal length
Situation: millimeters, focal length 100 mm, a coin 200 mm away.Result: image at 200.00 mm, magnification -1.00.
Diopters and focal length side by side
Lens power in diopters is 1 divided by the focal length in meters. Glasses prescriptions use diopters, camera lenses use millimeters, and the table converts between them.
| Power | Focal length (cm) | Focal length (in) | Typical lens |
|---|---|---|---|
| +1.00 D | 100 | 39.37 | weak reading glasses |
| +2.50 D | 40 | 15.75 | strong reading glasses |
| +5.00 D | 20 | 7.87 | a lens tested on a bench |
| +10.00 D | 10 | 3.94 | a hand magnifier |
| +20.00 D | 5 | 1.97 | a 50 mm camera lens |
| -2.00 D | -50 | -19.69 | glasses for mild nearsightedness |
| -4.00 D | -25 | -9.84 | glasses for stronger nearsightedness |
What people ask about lenses and images
Related tools
Magnifying Glass Calculator
How strong a magnifier or loupe really is, what a 3x label means and how close to hold the page - Open the calculator
Refractive Index Calculator
The property of the glass that decides how strongly a lens bends light - Open the calculator
Snell's Law Calculator
Refraction at a single surface, the step every lens repeats twice - Open the calculator
Scale Calculator
Scale ratios for drawings and models, the same idea as magnification - Open the calculator
Proportion Calculator
The missing term of a ratio, handy for image and object heights - Open the calculator
Length Unit Converter
Millimeters, centimeters and inches for lens specifications - Open the calculator