Image Distance Calculator

Solve optics distances using steps, units, and rounding. Classify images as real, virtual, upright fast. Download files and share clear outputs with your class.

Calculator

Uses the same equation for thin lenses and spherical mirrors.
Switch this to compute any missing variable.
All distances must use the same unit.
Easy mode treats do as a magnitude.
Controls displayed decimals and exports.
Use negative f for diverging elements.
Easy mode converts this to a positive magnitude.
Needed only when solving for f or do.
Reset

Example data table

Element f do Computed di Interpretation
Lens (converging) 10 cm 30 cm 15 cm Real, inverted, diminished
Lens (diverging) -10 cm 30 cm -7.5 cm Virtual, upright, diminished
Mirror (converging) 12 cm 24 cm 24 cm Real, inverted, same size
Mirror (diverging) -12 cm 24 cm -8 cm Virtual, upright, diminished
These rows are examples to help you test the calculator.

Formula used

The calculator uses the thin lens / spherical mirror equation: 1/f = 1/do + 1/di

If di is positive, the image is real; if negative, it is virtual. Use “Signed inputs” if you follow a strict sign convention in your coursework.

How to use this calculator

  1. Select lens or mirror, then choose what you want to solve.
  2. Pick a unit and keep all distances in that unit.
  3. Enter two known values; leave the target value as any number.
  4. Use negative focal length for diverging elements.
  5. Press Calculate to see results, steps, and classification.
  6. Use the download buttons to export CSV or PDF.

FAQs

1) What does a negative image distance mean?

A negative di indicates a virtual image. Virtual images form where rays appear to meet, not where they physically converge, so they cannot project on a screen.

2) When should focal length be negative?

Use negative focal length for diverging elements, like a concave lens or a convex mirror. This helps the equation predict a virtual image in many common setups.

3) Why does the result show infinity sometimes?

If 1/di becomes zero, di is infinite. That happens when the object is at the focal point, producing parallel rays and an image at infinity.

4) Can I mix units like cm and m?

No. Keep f, do, and di in the same unit. The equation is unit-consistent, but mixing units will produce incorrect values.

5) What is magnification and what does its sign mean?

Magnification is m = −di/do. A negative m indicates an inverted image. A positive m indicates an upright image. The magnitude shows how much larger or smaller the image is.

6) Does this work for thick lenses?

This tool uses the thin-lens approximation. For thick lenses, principal planes shift, and you may need a more detailed model or manufacturer lens data.

7) How do I interpret results for mirrors?

The same equation is used. A positive di usually implies a real image in front of the mirror. A negative di implies a virtual image behind the mirror.

8) What should I do if I use a different sign convention?

Switch to “Signed inputs” and enter signed values consistently. The calculator will compute the missing variable and magnification based on your provided signs.

Related Calculators

fiber optic loss calculatorthick lens calculatorchromatic aberration calculatorsnells law calculatorlens formula calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.