Home ↓
CalculatorsVerified

Physics & Chemistry

Thin Lens Equation Calculator (Image Distance and Magnification)

Find where a lens forms an image and how big it is. The thin lens equation is one of the foundations of geometrical optics: it links the focal length of a lens, the distance of an object from it and the distance at which the image forms. For a converging lens, such as a magnifying glass or the lens in a camera, a distant object forms a small, inverted, real image close to the focal point, which can be projected onto a screen or sensor; as the object moves closer, the image moves farther away and grows, and when the object is inside the focal length, the lens produces an enlarged, upright, virtual image that you see by looking through it, which is how a magnifier works. A diverging lens, with a negative focal length, always forms a smaller, upright, virtual image, which is why such lenses are used to correct short-sightedness. The magnification is the ratio of the image size to the object size, negative when the image is inverted. Curved mirrors follow exactly the same equation. Enter the focal length and the object distance in the same unit, and optionally the object height, to get the image distance, magnification, image height, image type and lens power in dioptres, with a table for other object distances. A 10 cm lens with an object at 30 cm forms a real, inverted image at 15 cm, half the size.

How to use this calculator

  1. Enter the focal length: positive for converging, negative for diverging.
  2. Enter the object distance in the same unit.
  3. Optionally enter the object height.
  4. Read the image distance and magnification.
  5. Check whether the image is real or virtual, upright or inverted.

Lenses in everyday devices

Cameras focus by moving the lens so that the image distance matches the sensor for the object distance. The human eye instead changes the shape, and so the focal length, of its lens.

Spectacle prescriptions are written in dioptres: positive values for long-sightedness and reading glasses, negative values for short-sightedness.

Limits of the model

Real lenses have thickness and curved surfaces that cause aberrations, such as blurred edges and colour fringes. Optical designers use combinations of lenses and ray-tracing software to correct them.

For thick lenses or systems of several lenses, focal lengths are measured from principal planes rather than from the lens surface.

Formula & method

1/f = 1/dₒ + 1/dᵢ, so dᵢ = 1 ÷ (1/f − 1/dₒ)Magnification m = −dᵢ ÷ dₒ; image height = m × object heightdᵢ > 0: real image on the far side; dᵢ < 0: virtual image on the same side as the objectLens power P (dioptres) = 1 ÷ f in metres

Thin lens (Gaussian) equation: 1/f = 1/dₒ + 1/dᵢ, so dᵢ = 1 ÷ (1/f − 1/dₒ) = f dₒ ÷ (dₒ − f). Magnification m = −dᵢ ÷ dₒ; image height hᵢ = m × hₒ. Sign convention used here: f > 0 for converging lenses and concave mirrors, f < 0 for diverging lenses and convex mirrors; dᵢ > 0 means a real image, dᵢ < 0 a virtual image; m < 0 means inverted. Lens power P = 1 ÷ f in metres, in dioptres (D); with distances in centimetres, P = 100 ÷ f. The thin lens model ignores lens thickness and aberrations.

Worked example

f = 10 cm, object at 30 cm

  1. 1/dᵢ = 1/10 − 1/30 = 2/30, so dᵢ = 15 cm.
  2. m = −15 ÷ 30 = −0.5: inverted, half size.
  3. Lens power = 100 ÷ 10 = 10 dioptres.

Answer: Real, inverted, reduced image 15 cm behind the lens.

Frequently asked questions

What is the thin lens equation?

1/f = 1/dₒ + 1/dᵢ.

How do I calculate magnification?

m = −dᵢ ÷ dₒ.

What does a negative image distance mean?

The image is virtual, on the same side as the object.

What is a dioptre?

The power of a lens, 1 ÷ focal length in metres.

What happens at the focal point?

No image forms; the rays emerge parallel.

Does this work for mirrors?

Yes, with the same equation and sign convention.