Thin Lens and Mirror Equation Calculator
Find the image distance, magnification, image height and lens power for a thin lens or curved mirror, and whether the image is real or virtual, upright or inverted.
This calculator applies an idealised textbook model with SI units. Real systems can differ.
How to use this calculator
Enter the focal length, with a positive value for a converging (convex) lens or concave mirror and a negative value for a diverging lens or convex mirror, and the distance of the object from the lens or mirror. The calculator solves the thin lens equation for the image position and describes the image.
Formula
1/f = 1/dₒ + 1/dᵢ, so dᵢ = 1 ÷ (1/f − 1/dₒ). Magnification m = −dᵢ ÷ dₒ; image height hᵢ = m × hₒ. A positive dᵢ is a real image (behind a lens, in front of a mirror); negative dᵢ is virtual. Power P = 1 ÷ f in metres (dioptres).
Calculator credits
Calculator developmentJulia Edwards
Editorial supervisionSamad Aslam Khan
Expert reviewHiraMPhil Physics, Computational Physicist
Published byThe Calculatorz
Last updated
Read how we research, test, review and correct our calculators in our editorial policy.
Frequently asked questions
What is the thin lens equation?
1/f = 1/dₒ + 1/dᵢ, linking focal length, object distance and image distance for lenses whose thickness is small compared with these distances.
Does the same equation work for mirrors?
Yes, for spherical mirrors with the sign convention that real images form in front of the mirror and concave mirrors have positive focal lengths.
What does negative magnification mean?
The image is inverted. The size of m tells you how much larger (above 1) or smaller (below 1) the image is.
What happens when the object is at the focal point?
The rays leave parallel, so the image forms at infinity and no image distance can be calculated.
How does a magnifying glass work?
With the object inside the focal length of a converging lens, it forms an enlarged, upright, virtual image.
What are dioptres?
The unit of lens power, equal to 1 ÷ focal length in metres. Spectacle prescriptions use dioptres.
References & methodology sources
These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.
- Ling, S. J., Moebs, W., & Sanny, J. (2016). Geometric optics and image formation: Key equations. In University physics volume 3 (Chapter 2). OpenStax. View source
- Ling, S. J., Moebs, W., & Sanny, J. (2016). University physics volume 3. OpenStax. View source
- Urone, P. P., & Hinrichs, R. (2022). College physics 2e. OpenStax. View source
- Bureau International des Poids et Mesures. (2019). The International System of Units (SI) (9th ed.). View source