Lens & Mirror Equation Calculator

This calculator applies the thin lens and mirror equation to find where an image forms and how large it is, from the focal length and the object distance. The same elegant equation governs both lenses and curved mirrors: one over the focal length equals one over the object distance plus one over the image distance. From it, and the object distance you provide, the calculator finds the image distance, and then the magnification, which tells you how much bigger or smaller the image is and whether it is upright or inverted. These ideas are the foundation of optics, explaining how spectacles, cameras, microscopes, telescopes, magnifying glasses and mirrors all form images. This tool takes the arithmetic out of it. You enter the focal length, positive for a converging lens or concave mirror and negative for a diverging lens or convex mirror, and the distance of the object, and the calculator returns the image distance, the magnification, and a clear statement of whether the image is real or virtual and upright or inverted. The results update as you type, so you can explore how moving an object toward or away from the focal point dramatically changes the image, from large and inverted to small or magnified and upright. Use it for physics homework, for understanding cameras and optical instruments, or for any optics problem. The sign conventions matter: a positive image distance means a real image that could be projected on a screen, formed on the far side of a lens, while a negative image distance means a virtual image, like the enlarged view in a magnifying glass, that only appears to be there. A negative magnification means the image is inverted.

30 cm
image distance
Magnification-2
Image typeReal
OrientationInverted

1/f = 1/object + 1/image. Positive focal length: converging lens / concave mirror. Positive image distance = real image. Negative magnification = inverted.

How it works

The thin lens and mirror equation, one over f equals one over the object distance plus one over the image distance, is rearranged to find the image distance from the focal length and object distance. The magnification is minus the image distance divided by the object distance. The signs reveal whether the image is real or virtual and upright or inverted.

Worked example

For a converging lens with a 10 centimetre focal length and an object 15 centimetres away, one over the image distance is one over 10 minus one over 15, which is one over 30, so the image distance is 30 centimetres. The magnification is minus 30 over 15, which is minus 2: a real, inverted image twice the size of the object.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

© 2019 to 2026 Calculate.co.nz. All rights reserved.