Lens Formula Calculator

Use the thin lens formula to find the image distance, magnification, image height, nature of the image and power in dioptres for a convex or concave lens.

Built by Sabki SolutionsRules: 1/v − 1/u = 1/f (Cartesian sign convention)Last updated
cm
0.01cm1,00,000.00cm
cm
0.01cm1,00,000.00cm
cm
0.001cm10,000.000cm

Image Distance v

30 cm

Image Nature

Real and inverted, Same size

Magnification

-1

Image Height

-5 cm

Power

6.667 D

Thin Lens Formula

Choose convex or concave, then enter the object distance, focal length and object height as positive numbers. The calculator applies the sign convention for you and gives the image position, size and nature, and the lens power.

Formulas (Cartesian sign convention)

  • Lens formula 1/v − 1/u = 1/f (u negative for a real object)
  • Magnification m = v/u = h′/h
  • Power P = 100/f(cm) dioptres

Images formed by a convex lens

Object positionImage positionNature
Beyond 2FBetween F and 2FReal, inverted, diminished
At 2FAt 2FReal, inverted, same size
Between F and 2FBeyond 2FReal, inverted, magnified
At FAt infinityHighly magnified
Inside FSame side as objectVirtual, erect, magnified

Worked examples

1. Object 30 cm from a 15 cm convex lens (the defaults). v = +30 cm; m = −1: real, inverted, same size; +6.67 D.

2. Object 20 cm away. v = +60 cm; m = −3: real, inverted, magnified.

3. Object 10 cm away (magnifying glass). v = −30 cm; m = +3: virtual, erect.

4. Object 30 cm from a 15 cm concave lens. v = −10 cm; m = +0.33: virtual, erect, diminished; −6.67 D.

Indian school textbooks (NCERT) use this Cartesian sign convention.

Related tools

Frequently Asked Questions

What is the lens formula?

1/v − 1/u = 1/f in the Cartesian sign convention (distances measured from the lens; left negative, right positive; object on the left so u is negative).

What is the sign of f?

Positive for a convex (converging) lens, negative for a concave (diverging) lens. Enter the magnitude and choose the lens type.

How is magnification calculated?

m = v/u = image height ÷ object height. Negative m means an inverted image.

What is the power of a lens?

P = 1/f with f in metres, in dioptres: 100/f for f in cm. A 15 cm convex lens is +6.67 D; spectacle prescriptions use this unit.

Where is the image for a convex lens?

Object beyond 2F: real, inverted, diminished between F and 2F. At 2F: same size at 2F. Between F and 2F: real, magnified beyond 2F. Inside F: virtual, erect, magnified (magnifying glass).

What image does a concave lens form?

Always virtual, erect and diminished, on the same side as the object.

What happens when the object is at the focus?

The rays emerge parallel and the image forms at infinity.

How do I combine lenses in contact?

Add their powers: +5 D and −2 D in contact give +3 D (f = 33.3 cm).

How are spectacles prescribed?

Short sight uses concave (negative power) lenses; long sight and reading glasses use convex (positive) lenses.

Is this formula exact?

It applies to thin lenses and rays close to the axis. Thick lenses and wide angles need more detailed optics.

Related Calculators

More in Physics · Engineering calculators · All calculators A–Z