Toolvito

Works on this device

Lens Calculator

Work with simple optics: find where a lens or a curved mirror makes an image, how large the image is, and what focal length a lens has from its shape. You can also combine two lenses and rate a magnifying glass.

Enter your values

Solve 1/f = 1/u + 1/v for the value you do not know. It also works for curved mirrors.

Your values

Positive for a converging (convex) lens, negative for a diverging (concave) lens.

From the lens or mirror to the object. Only a real object, in front, is covered.

More options

Optional: type it to get the height of the image.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose what you want to work out, for example Thin lens equation.
  2. In the thin lens mode, choose a lens or a curved mirror, and what you want to find. Type the other two values with their signs (see below).
  3. Pick a unit for each length and choose Calculate. The result tells you if the image is real or virtual, upright or upside down, and larger or smaller.
  4. The examples list fills in a convex lens, a concave lens, a concave mirror or a convex mirror.

The formulas

  • Thin lens and mirror equation: 1/f = 1/u + 1/v, with u the object distance, v the image distance and f the focal length. Magnification m = −v ÷ u = image height ÷ object height.
  • Signs (real is positive): real objects and real images have positive distances; a virtual image has a negative distance. A converging (convex) lens and a concave mirror have a positive focal length; a diverging (concave) lens and a convex mirror a negative one. A curved mirror has f = R ÷ 2.
  • Lensmaker's equation: 1/f = (n − 1) × (1/R1 − 1/R2), with n the refractive index of the lens divided by that of the material around it. With a centre thickness d it adds (n − 1) × d ÷ (n × R1 × R2). A plano lens has f = R ÷ (n − 1); a ball lens f = n × D ÷ (4 × (n − 1)).
  • Two lenses a distance d apart: f = f1 × f2 ÷ (f1 + f2 − d).
  • Focal length for a subject size: m = image size ÷ subject size and f = distance × m ÷ (1 + m).
  • Magnifying glass: M = 250 mm ÷ f for a relaxed eye, or 1 + 250 mm ÷ f with the image at 250 mm. Dioptres = 1 ÷ focal length in metres.

Worked example

A convex lens with f = 10 cm and an object 30 cm away: 1/v = 1/10 − 1/30, so v = 10 × 30 ÷ 20 = 15 cm. The magnification is −15 ÷ 30 = −0.5: a real image, upside down and half the size. A concave mirror with f = 10 cm gives the same numbers, with the image in front of the mirror.

A concave lens with f = −10 cm and an object at 30 cm: v = −10 × 30 ÷ 40 = −7.5 cm. The magnification is 0.25: a virtual image, upright and a quarter of the size.

A biconvex lens with R1 = 100 mm, R2 = −100 mm and n = 1.5: 1/f = 0.5 × (1/100 + 1/100) = 1/100, so f = 100 mm, which is 10 dioptres. A plano-convex lens with R = 50 mm and n = 1.5 also has f = 100 mm.

Lenses of 100 mm and 50 mm, 30 mm apart: f = 100 × 50 ÷ (100 + 50 − 30) = 41.67 mm.

To fill 24 mm of the frame with a 1.8 m tall person at 5 m: m = 24 ÷ 1800 = 0.01333, and f = 5000 × 0.01333 ÷ 1.01333 = 65.8 mm.

A magnifier with f = 50 mm gives 250 ÷ 50 = 5 times with a relaxed eye, and 6 times with the image at 250 mm.

Limits you should know

  • These are paraxial, thin-lens formulas: light close to the axis, and no aberrations. Real lenses with several elements have principal planes; measure distances from them for exact work.
  • Only real objects in front of the lens or mirror are covered.
  • The refractive index changes with the colour of light. Use the value for your glass and wavelength.
  • For the view of a camera use the Camera Field of View Calculator. For close-up and macro work use the Macro Magnification Calculator. For a microscope use the Microscope Magnification Calculator.

Related tools