Lens Magnification Calculator

Calculate optical magnification, image height, focal length, and orientation from thin-lens distances.

Calculate lens magnification
Use one consistent distance unit; the result labels below assume centimeters.

About lens magnification

Linear magnification describes how large an image is compared with the object that produced it. For a thin lens, magnification equals negative image distance divided by object distance. Its absolute value gives the size ratio: a magnitude of two means the image is twice as tall as the object, while a magnitude of one-half means it is half as tall. The sign carries orientation information. A negative magnification indicates an inverted image, and a positive magnification indicates an upright image under the standard Cartesian sign convention. Image height follows directly from magnification multiplied by object height. If a five-centimeter object has a magnification of negative one, its image height is negative five centimeters. The negative sign does not mean a physically negative size; it records that the image is inverted relative to the object. This distinction is important in ray diagrams, cameras, projectors, microscopes, and optical benches. The calculator also applies the thin-lens equation to derive focal length. The reciprocal of focal length equals the reciprocal of object distance plus the reciprocal of image distance, which rearranges to their product divided by their sum. Distances must use one consistent unit. If object and image distances are entered in centimeters, focal length and image height are returned in centimeters. Converting all three inputs to millimeters would preserve magnification and produce millimeter length results. Sign conventions vary among textbooks and engineering disciplines. This tool uses positive object and image distances for the common case of a real object forming a real image on opposite sides of a converging lens, resulting in negative magnification. A virtual image can be represented with a negative image distance, which can produce positive magnification. Before comparing with a class exercise or instrument specification, confirm that it uses the same convention. The thin-lens model assumes an ideal lens whose thickness is negligible relative to object and image distances. Real compound lenses have principal planes, aberrations, finite apertures, distortion, and wavelength-dependent behavior. Photography specifications may use reproduction ratio at the sensor, while telescopes and visual microscopes often quote angular magnification instead of linear magnification. Use this result for basic geometric optics and preliminary design, then use manufacturer data or a full optical model when lens thickness and aberrations matter.

Lens magnification examples

Distances and heightCalculated propertiesInterpretation
do 20 cm, di 20 cm, ho 5 cmM -1; hi -5 cm; f 10 cmA same-size, inverted real image.
do 30 cm, di 15 cm, ho 8 cmM -0.5; hi -4 cm; f 10 cmA reduced, inverted real image.
do 15 cm, di 30 cm, ho 2 cmM -2; hi -4 cm; f 10 cmAn enlarged, inverted real image.
do 10 cm, di -20 cm, ho 3 cmM 2; hi 6 cm; f 20 cmAn enlarged upright virtual image under this sign convention.

How to calculate lens magnification

  1. Measure the object distance from the lens reference plane using the chosen sign convention.
  2. Enter the corresponding image distance in the same unit.
  3. Enter the object's physical height using that unit.
  4. Select Calculate lens properties to find magnification, image height, focal length, and orientation.
  5. Interpret negative height or magnification as an inverted image rather than a negative physical size.

Lens magnification FAQ

What does negative magnification mean?

Negative magnification indicates that the image is inverted relative to the object. Its absolute value still gives the image-to-object size ratio.

Does magnification have a unit?

No, linear magnification is a ratio of two lengths and is dimensionless. Object height, image height, distances, and focal length must use consistent units.

What is the thin-lens equation?

The reciprocal of focal length equals the reciprocal of object distance plus the reciprocal of image distance. It relates the three principal distances for an ideal thin lens.

Can I calculate a virtual image?

Yes, enter a negative image distance when using the convention implemented here. The resulting positive magnification indicates an upright virtual image.

Is this the same as telescope magnification?

No, this calculator reports linear image-to-object size magnification. Telescope and visual microscope specifications commonly describe angular magnification using different formulas.