Thin lens calculator
Find image distance, signed magnification and the image type for a thin lens. Your inputs stay on your device.
Set up your task
Starting local processing
Ready. Processing stays in this browser.
2 Your result
Your result updates in this browser. Check your input if the result looks unexpected.
How to use Thin lens calculator
Find where a single thin lens forms an image and how large it appears relative to the object. This calculator uses the familiar real-is-positive sign convention for a real object.
- Enter Signed focal length (cm), Object distance (cm).
- Use the units shown beside the inputs and compare the first result with your own calculation.
- Check the substitution and read the assumptions below before applying the result to a different exercise.
Supported inputs and limits
Use centimetres and a real object on the incoming-light side. Use positive focal length for a converging lens and negative for a diverging lens.
How it works
The thin lens equation is 1/f = 1/dₒ + 1/dᵢ. Here f is focal length, dₒ is object distance and dᵢ is image distance. Rearranging gives dᵢ = fdₒ/(dₒ − f). Magnification m = −dᵢ/dₒ gives the ratio of image height to object height.
For a converging lens with f = 10 cm and an object 30 cm away, the image distance is 15 cm. Its magnification is −0.5, so the real image is inverted and half the object’s height. The positive image distance places this image on the side of the lens opposite the object.
A negative image distance means the rays appear to diverge from an image on the object side. The lens can produce this virtual image when f is negative, or when the object is inside the focus of a converging lens. At the positive focal length the ideal output rays are parallel, so the calculator reports an image at infinity.
Measure both distances from the lens plane and keep their units consistent. Real optical instruments often need more than one lens, and thick lenses may use separate principal planes. Treat a result with a very large distance near focus as sensitive to small errors in the object distance.
Example
The pre-filled example starts with “Image distance: 15 cm”.
- Signed focal length (cm)
- 10
- Object distance (cm)
- 30
Image distance: 15 cm Signed magnification: -0.5 × Real, inverted image on the opposite side of the lens. 1/dᵢ = 1/f − 1/dₒ = 1/10 − 1/30 cm⁻¹ m = −dᵢ/dₒ
Questions about Thin lens calculator
Can I use a negative focal length?
Yes. Enter a negative focal length for a diverging lens under this sign convention. The object distance stays positive.
What does negative magnification mean?
The image is inverted. The magnitude of the ratio tells you how its size compares with the object.
Can I find the image height?
Multiply the object height by the signed magnification. The sign describes the orientation.
Related tools
Last updated