Thin Lens Calculator

Solve the thin lens equation 1/f = 1/do + 1/di for image distance, object distance or focal length, with magnification and whether the image is real or virtual.

Positive for a converging (convex) lens, negative for a diverging (concave) lens.
Distance from the lens to the object, always positive.

Results

Image distance (di = 1 ÷ (1/f − 1/do))
15.00
Magnification (m = −di ÷ do)
-0.50
Image type
Real (forms on the far side of the lens and can be projected on a screen)
Orientation
Inverted
Size
Reduced (0.5 times)
Lens type
Converging (convex)

How it’s calculated

For a thin lens, the focal length f, the object distance do and the image distance di are linked by the thin lens equation. The magnification tells you how big the image is relative to the object and whether it is flipped.

1/f = 1/do + 1/di m = −di ÷ do di = 1 ÷ (1/f − 1/do)

Sign convention: f is positive for a converging (convex) lens and negative for a diverging (concave) lens. The object distance do is positive. A positive di is a real image (can be projected); a negative di is virtual. A negative m means the image is inverted.

Example: a converging lens with f = 10 cm and an object 30 cm away. 1/di = 1/10 − 1/30 = 2/30, so di = 15 cm (real) and m = −15 ÷ 30 = −0.5: the image is inverted and half the size. Move the object inside the focal length (say 5 cm) and di = −10 cm, m = +2: a virtual, upright, enlarged image, which is how a magnifying glass works.

Use any consistent length unit; the calculator converts for you.

Frequently asked questions

What does a negative image distance mean?

The image is virtual: it appears on the same side of the lens as the object, as in a magnifying glass or a diverging lens, and cannot be caught on a screen.

What happens when the object is at the focal point?

The rays leave the lens parallel, so no image forms (the image distance is infinite). The calculator reports this instead of a number.

How do I enter a diverging lens?

Enter a negative focal length, such as −10 cm. A diverging lens always makes a virtual, upright, reduced image of a real object.

What does the magnification tell me?

Its size is how many times larger or smaller the image is than the object. A negative sign means the image is upside down.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator