Thin Lens Equation Calculator

Quick answer

The thin lens equation calculator finds the image distance, magnification and image type for a converging or diverging lens from the object distance and focal length.

Image distance d_i
Magnification
-0.3333 ×
Lens power
20 D
Image
Real, inverted

The thin lens equation predicts where a lens forms an image: cameras, projectors, eyeglasses and your own eye all follow it. Real images form on the opposite side of the lens; virtual images appear on the same side as the object.

How to use the Thin Lens Equation Calculator

  1. Focal length f
  2. Object distance d_o
  3. Every result field is editable: type into Image distance d_i and Object distance d_o plus every other field update to match.

Results update as you type, every field has its own unit menu, and everything is calculated in your browser.

How it works

Enter the object distance and the focal length (negative for a diverging lens). Type an image distance into the result to work back to the object distance.

Inputs explained

Field What to enter
Focal length f Units: mm, cm, m, in, µm
Object distance d_o Units: mm, cm, m, in, µm

What each result means

  • Image distance d_i = 1÷(1÷[Focal length f] – 1÷[Object distance d_o])
  • Magnification = -[Image distance d_i]÷[Object distance d_o]
  • Lens power = 1÷[Focal length f]

Example values

How the main result changes when Object distance d_o changes and everything else stays at the example values above:

Object distance d_o (mm) Image distance d_i (mm)
100 100
150 75
200 66.6667
250 62.5
300 60
400 57.1429

Formula

1/f = 1/d_o + 1/d_i, M = −d_i/d_o

Worked example

Inputs: Focal length f: 50 mm; Object distance d_o: 200 mm.
Results: Image distance d_i = 66.6667 mm; Magnification = -0.3333 ×; Lens power = 20 D; Image = Real, inverted.

Key terms

Focal length
Distance at which parallel rays converge.

Frequently asked questions

When is the image virtual?

When the object is inside the focal length of a converging lens, or always for a diverging lens.

What happens at d_o = 2f?

The image is real, inverted and the same size, also at 2f.

What is the sign convention?

Real images and distances on the outgoing side are positive.

Why is it called "thin"?

It ignores the lens thickness.

Sources

  1. OpenStax: University Physics Volume 3
  2. HyperPhysics (Georgia State University)

Cite this calculator

Speedy Calculator. (2026). Thin Lens Equation Calculator. Speedy Calculator. https://speedycalculator.com/calculators/physics/thin-lens/