Magnification Calculator

Find the magnification and image size of a lens.

How it is calculated

The tool divides the image distance by the object distance and flips the sign: m = −dᵢ ÷ dₒ, then multiplies by the object height: hᵢ = m × hₒ. Distances should be in the same unit (cm, mm or m), and the image height comes out in the unit you used for the object height.

Sign convention (OpenStax University Physics): a positive image distance means a real image on the far side of the lens, which is inverted, so m and the image height come out negative; a negative image distance means a virtual image on the object's side, which is upright, so they come out positive. The object distance must be greater than zero. The tool does not find the focal length; the thin-lens relation 1/f = 1/dₒ + 1/dᵢ does that.

Worked example

An object 6 cm tall stands 30 cm from a lens and its image forms 15 cm behind the lens.

Magnification: −15 ÷ 30 = −0.50×. Image height: −0.50 × 6 = −3.00 cm. The minus sign means the image is inverted, and its size is half that of the object. With the thin-lens relation, 1/30 + 1/15 = 1/10, so this lens has a focal length of 10 cm, and a real image from it is inverted.

Try this example →

Common mistakes

  • Reading the minus sign as a mistake or as a smaller image. It only means the image is inverted; the size is the absolute value, so −2.00× is an inverted image twice as large as the object.
  • Mixing units, such as the object distance in meters and the image distance in centimeters. The ratio is then wrong by a factor of 100.
  • Entering the focal length in place of the image distance. The tool needs where the image forms, not the lens's focal length.
  • Entering a negative object distance. It must be greater than zero, or no result appears.
  • Expecting the image height to be in a fixed unit. It follows whatever unit you used for the object height.

Sources

About this calculator

Lens magnification is m = −dᵢ / dₒ (image distance divided by object distance), which equals the ratio of image height to object height, m = hᵢ / hₒ. The minus sign says whether the image is upright or inverted: this calculator keeps it, so a real image (positive image distance, on the far side of the lens) comes out negative, meaning inverted, and a virtual upright image comes out positive. This calculator derives both the magnification factor and the resulting image height directly from the object and image distances, following from the thin-lens equation.

Optics students use magnification to connect lens theory to observable image behavior, and it's core to designing real optical instruments — telescopes and microscopes combine multiple lenses' magnifications multiplicatively, camera lenses use it to determine how large a subject appears on the sensor, and optometrists reference related magnification concepts when discussing corrective lens power.

Was this helpful?

You can pick up to 3 reactions.

Note from the editors

Enter the image distance as negative for a virtual image, as with a magnifying glass. An object 4 tall at distance 10 with image distance −20 shows 2.00× and an image height of 8.00, upright and twice the size. The tool itself only takes the three measured values. Are you working on a camera, a microscope or a classroom exercise? Tell us if you would like focal length as an input.

Comments

  • Be the first to comment.

Popular calculators

All Calculators