Boneyard Tools

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

  1. Choose what to solve for: image distance, object distance or focal length.
  2. Enter the two known values in centimeters; the solved field is disabled.
  3. Read the solved distance on the highlighted card.
  4. Read the magnification and whether the image is real and inverted or virtual and upright.
  5. 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

Related tools