Lens Magnification Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the focal length and how far the object is from the lens; get where the image forms and how much it is magnified.
Result
Magnification
Image distance (cm)
- Image height (cm)
- Image type
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Focal length (negative for a diverging lens), in cm: enter a number.
- Object distance, in cm: enter 0 or more.
- Object height, in cm: enter a number.
- Read the result: Magnification; the panel also shows Image distance (cm), Image height (cm) and Image type.
How this calculator works
Thin lens equation: 1/f = 1/d_o + 1/d_i, so d_i = f × d_o ÷ (d_o − f). Magnification m = −d_i ÷ d_o, and image height = m × object height.
Sign convention: a positive image distance is a real image on the far side of the lens; a negative one is a virtual image on the same side as the object. A negative m means the image is inverted.
An object exactly at the focal point (d_o = f) sends its image to infinity, shown as —.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Focal length (negative for a diverging lens) | cm | |
| Object distance | cm | |
| Image distance | cm | |
| Magnification |
Worked example
| Focal length (negative for a diverging lens) | 10 cm |
|---|---|
| Object distance | 30 cm |
| Object height | 2 cm |
| Image distance (cm) | 15 |
|---|---|
| Image height (cm) | -1 |
| Image type | Real, inverted image |
Magnification -0.5
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the magnification of a 10 cm lens with the object at 30 cm?
The image forms at 15 cm, magnification −0.5: real, inverted and half size.
When does a converging lens act as a magnifying glass?
When the object is inside the focal length: with f = 10 cm and the object at 5 cm, the image is virtual, upright and 2× larger.