Magnification of a Lens Calculator

Find a thin lens's image distance, magnification, and image height from focal length, object distance, and object height using 1/f = 1/d₀ + 1/dᵢ and m = −dᵢ/d₀.

Quick Facts

Thin lens equation
1/f = 1/d₀ + 1/dᵢ, with m = −dᵢ/d₀ = hᵢ/h₀
Converging lenses use f > 0; diverging lenses use f < 0.
Reading the sign
Positive dᵢ = real image; negative m = inverted image
Object distance d₀ is always entered as a positive value.

Your Results

Calculated
Image distance (dᵢ)
-
Distance from lens to image
Magnification (m)
-
Negative = inverted, |m| > 1 = enlarged
Image height (hᵢ)
-
= m × object height
Image type
-
Real/virtual, orientation, size

Ready

Enter focal length, object distance, and object height, then press Calculate.

About the Magnification of a Lens Calculator

This calculator uses the thin lens equation to find where a lens forms an image and how large that image is relative to the object. Enter the lens's focal length, how far the object sits from the lens, and the object's height, and the tool returns the image distance, the magnification, the image height, and a plain-language description of the image: real or virtual, upright or inverted, enlarged or reduced.

The thin lens equation

For a thin lens, the object distance d₀, the image distance dᵢ, and the focal length f are related by:

1/f = 1/d₀ + 1/dᵢ

Solving for the image distance gives dᵢ = (f × d₀) / (d₀ − f). The lateral magnification compares image size to object size:

m = −dᵢ / d₀ = hᵢ / h₀

where hᵢ is the image height and h₀ is the object height. Multiplying the magnification by the object height gives the image height directly: hᵢ = m × h₀.

Reading the sign convention

  • Focal length f: positive for a converging (convex) lens, negative for a diverging (concave) lens.
  • Object distance d₀: always entered as a positive value — the object is assumed to sit in front of the lens, on the side the light comes from.
  • Image distance dᵢ: positive means a real image forms on the opposite side of the lens from the object (light rays actually converge there); negative means a virtual image forms on the same side as the object (rays only appear to diverge from it).
  • Magnification m: negative means the image is inverted relative to the object; positive means it is upright. When |m| > 1 the image is enlarged, when |m| < 1 it is reduced, and when |m| = 1 it is the same size as the object.

A worked example

A converging lens with f = 10 cm holds an object of height 5 cm at d₀ = 30 cm. The image distance is dᵢ = (10 × 30) / (30 − 10) = 15 cm, a positive value, so the image is real and forms 15 cm on the far side of the lens. Magnification is m = −15/30 = −0.5, so the image is inverted and reduced to half size: hᵢ = −0.5 × 5 = −2.5 cm, meaning a 2.5 cm tall image standing upside down.

Special case: object at the focal point

If the object sits exactly at the focal length (d₀ = f), the denominator d₀ − f becomes zero and the lens equation has no finite solution — the outgoing rays leave the lens parallel and the image forms at infinity. The calculator flags this case instead of returning a number.

Where the thin lens model applies

This is the standard single-element, paraxial (small-angle) thin lens formula used throughout introductory and intermediate optics. It assumes a lens whose thickness is negligible compared to its focal length and object/image distances, rays close to the central axis, and no aberration. It is the right tool for single-lens problems in photography, projector setups, simple telescopes, and classroom optics. It is not exact for thick lenses, multi-element camera zoom lenses, or compound microscopes, where each element must be modeled in sequence and the results combined.

Frequently Asked Questions

What is the formula for lens magnification?
Lateral magnification is m = −dᵢ / d₀, where dᵢ is the image distance and d₀ is the object distance from the thin lens equation 1/f = 1/d₀ + 1/dᵢ. Magnification also equals the ratio of image height to object height: m = hᵢ / h₀.
What does a negative magnification mean?
A negative m means the image is inverted (upside down) relative to the object. This is typical for a real image formed by a converging lens when the object sits farther from the lens than the focal length. A positive m means the image is upright.
What is the difference between a real and a virtual image?
A real image forms where light rays actually converge, on the opposite side of the lens from the object; the calculator reports this as a positive image distance dᵢ. A virtual image forms where rays only appear to diverge from, on the same side as the object, and is reported as a negative dᵢ — it cannot be projected onto a screen.
How do I find image height from magnification?
Multiply the magnification by the object height: hᵢ = m × h₀. If h₀ = 5 cm and m = −0.5, the image height is −2.5 cm, meaning a 2.5 cm tall image that is inverted.