Image Height Calculator – Magnification m = −di/do and Image Size
Use this free Image Height Calculator to find how tall an image a lens or mirror produces. Enter the object height and the object and image distances, and it works out the magnification m = −di/do, the image height hi = m × ho, and whether the image is real or virtual, upright or inverted.
Formula
Magnification m = −di / do • image height hi = m × ho
The minus sign is what carries the orientation information: a negative m means the image is inverted (and hi is negative too); a positive m means the image is upright. The sign of di tells you the image type — positive di is a real image (formed on the far side of a lens, or in front of a mirror, where a screen can catch it), while negative di is a virtual image that only appears to be there. If you don't know di yet, find it first with the mirror or lens equation.
How to use
- Enter the object height in centimetres.
- Enter the object distance do and the image distance di (use a negative di for a virtual image).
- Click "Calculate Image Height" to get the magnification, the image height, and a description of the image.
Worked example
A 5 cm tall object stands 30 cm from a lens, and its image forms 60 cm away on the other side.
m = −di/do = −60 ÷ 30 = −2.
hi = m × ho = −2 × 5 = −10 cm — the image is 10 cm tall, inverted, and real (di is positive), so it can be projected onto a screen.
FAQ
Why is the image height negative in the example?
The negative sign is not a size — it is a direction. It records that the image points the opposite way to the object, i.e. it is upside down. The actual height is the absolute value, 10 cm.
How can I tell if the image is real or virtual from the numbers?
Look at di. Positive → real image, formed where the light actually converges, catchable on a screen. Negative → virtual image, formed where the light only appears to diverge from, visible only by looking through the lens or into the mirror.
What does a magnification between 0 and 1 mean?
The image is smaller than the object — diminished. Camera lenses and convex security mirrors live in this range, while |m| greater than 1 means an enlarged image, as in projectors and magnifying glasses.