Lens Equation Calculator

Enter any two of focal length, object distance, or image distance to solve the thin lens equation instantly.

Thin Lens Equation

1 / f = 1 / do + 1 / di

Sign Convention

  • f > 0 Converging (convex) lens
  • f < 0 Diverging (concave) lens
  • di > 0 Real image (opposite side)
  • di < 0 Virtual image (same side)

Enter two values and click Calculate to solve the lens equation.

Summary

Enter any two of focal length, object distance, or image distance to solve the thin lens equation instantly.

How it works

  1. Select which variable you want to solve for: focal length (f), object distance (do), or image distance (di).
  2. Enter the two known values in centimeters.
  3. Click Calculate — the tool applies the thin lens equation to find the unknown.
  4. Review the result: image distance, magnification, and image properties are displayed.
  5. Use negative values for diverging lenses (negative f) or virtual images (negative di).
  6. Clear the form and try different inputs to explore how lenses behave.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-23 · Reviewed by Nham Vu