Lens Magnification Calculator
Solve the thin lens equation 1/f = 1/do + 1/di for whichever quantity you are missing. Choose what to solve for, enter the other two distances in centimeters, and the tool returns the third along with the linear magnification m = -di/do. It also tells you whether the image is a real inverted one or a virtual upright one from the sign of the result.
How to use the lens magnification calculator
- Choose what to solve for: image distance, object distance or focal length.
- Enter the two known values in centimeters; the solved field is disabled.
- Read the solved distance on the highlighted card.
- Read the magnification and whether the image is real and inverted or virtual and upright.
- Press Copy to grab the full f, do, di and m line.
Examples
Object beyond the focal point
f = 10 cm, object = 15 cm
image = 30 cm, magnification = -2 (inverted, real)
Object inside the focal point
f = 10 cm, object = 5 cm
image = -10 cm (virtual), magnification = 2 (upright, virtual)
Focal length from two distances
object = 15 cm, image = 30 cm
focal length = 10 cm, magnification = -2
Frequently asked questions
What is the thin lens equation?
It relates focal length and the two distances as 1/f = 1/do + 1/di, where do is the object distance, di is the image distance and f is the focal length. Give any two and the third is fixed.
How is magnification calculated?
Linear magnification is m = -di / do. A magnitude above one means the image is enlarged and below one means reduced, while the sign tells you the orientation.
What does a negative image distance mean?
A negative image distance marks a virtual image on the same side as the object, as when an object sits inside the focal length of a converging lens. A virtual image cannot be projected onto a screen.
What does the sign of the magnification tell me?
A negative magnification means an inverted, real image, the kind a projector or camera forms. A positive magnification means an upright, virtual image, the kind you see through a magnifying glass held close.
What sign convention does this use?
Distances in front of the lens and converging focal lengths are positive. Virtual images give a negative image distance and a positive magnification, following the standard real-is-positive convention.
Can it handle diverging lenses?
Yes. Enter a negative focal length for a diverging lens. It always forms a reduced, upright, virtual image, so you will see a negative image distance and a positive magnification below one.
Why does an object at the focal point fail?
When the object distance equals the focal length, the outgoing rays are parallel and the image forms at infinity, so no finite image distance exists. The tool reports this rather than returning a misleading number.
What units should I use?
Enter all three quantities in centimeters. Magnification is a pure ratio with no units, so it reads the same regardless of the length unit as long as you stay consistent.
Is anything sent to a server?
No. The equation is solved in your browser, so the distances you enter are never uploaded.
Learn more
- Real and virtual images through the thin lens equation
How object position decides whether a lens makes a real inverted image or a virtual upright one, and what the signs mean.
Related tools
Telescope Magnification Calculator
Calculate telescope magnification from focal lengths, plus max useful power, exit pupil and focal ratio from your aperture. Free astronomy optics tool.
Snell's Law Calculator
Calculate the angle of refraction with Snell's law, n1 sin t1 = n2 sin t2. Find the refracted angle, the critical angle and total internal reflection. Free.
Wavelength Frequency Calculator
Convert wavelength to frequency and back using c = f x lambda. Enter a wavelength or frequency in metres, nm, Hz, MHz or GHz and get the photon energy too.
555 Timer Calculator
Calculate 555 timer astable frequency, period, high and low times and duty cycle from R1, R2 and the timing capacitor. Free oscillator design helper.
Absolute Humidity Calculator
Calculate absolute humidity in grams of water vapor per cubic meter from air temperature and relative humidity. Fast, free and works in your browser.
Allele Frequency Calculator
Find allele frequencies from genotype counts. Enter the number of AA, Aa and aa individuals to get the A and a allele frequencies and allele totals.