Active experiment

Lens and Mirror Equations Calculator

Calculate lens and mirror equations with validated inputs, formula substitution, and worked steps.

Step 01 · Set up

Fill in the mathematics

Replace the highlighted values below. Tab moves naturally through the equation.

Step 03 · Answer

Ready when you are

Substitution & process

Enter the known values, then select Calculate. Your working steps will appear here.

Understand the method

What does the lens and mirror equations calculation mean?

The thin-lens and mirror equation relates focal length, object distance, and image distance for a single refracting or reflecting surface. Sign conventions determine whether the image is real or virtual, and they are the most common source of error.

When to use it

Use it for camera, eyeglass, and mirror problems, and to check a ray diagram numerically.

Formula

Use the relationship shown in the interactive formula panel.

In plain text: Use the relationship shown in the interactive formula panel.

Variables and units

SymbolMeaning
ffocal length, positive for a converging lens
d_oobject distance
d_iimage distance, negative when virtual

How to use the calculator

  1. Enter each known value in its labeled field.
  2. Select the answer precision you want.
  3. Choose Calculate answer to see the result and working.

Worked example

An object 30 cm from a converging lens of focal length 10 cm gives 1/d_i = 1/10 − 1/30 = 1/15, so d_i = 15 cm on the far side, forming a real inverted image.

Common mistakes

  • Keep one sign convention throughout and never mix two.
  • A diverging lens has a negative focal length.
  • A virtual image has a negative image distance, not an imaginary one.

Interpret the result

A positive image distance for a lens means a real image, which can be projected onto a screen.