Thin lens: solve for image distance

The Thin lens: solve for image distance computes thin lens: solve for image distance from the relation di = 1 / (1/f - 1/do). It takes 2 inputs (focal length in m, object distance in m) and returns the image distance in m. Because this is a pure mathematical or physical formula rather than a jurisdiction-specific rule, the result never changes over time: the same inputs always produce the same answer, so you can rely on it whether you are checking homework, sizing a design, or sanity-checking another tool. Enter your values in the fields below and the result updates instantly; you can also share a permalink that pre-fills the exact calculation, which is useful for teaching, reports, or collaboration. For example, with focal length = 0.1 m, object distance = 0.2 m, the image distance works out to 0.2 m, and the worked example further down the page shows every step so you can follow the arithmetic and reproduce it by hand. The method is the standard form documented by NIST / CODATA, and the figure above each result carries the date it was last verified. This tool is general information and is not a substitute for professional engineering, medical, financial, or scientific advice; always check critical results against the primary source and your own judgement.

With Focal length = 0.1 m, Object distance = 0.2 m, the result is 0.2 m.

Formula: di = 1 / (1/f - 1/do). Source: NIST / CODATA, as at 2026-06-22.

Image distance0.2 m

Applies to: any numeric inputs. Method source: NIST / CODATA, checked 2026-06-22.

The formula

di = 1 / (1/f - 1/do)

Worked example

With Focal length = 0.1 m, Object distance = 0.2 m:

  1. di = 1 / (1/f - 1/do)
  2. Image distance = 0.2 m

This worked example is one of the automated golden-value tests this calculator must pass before it can publish.

What this assumes

  • Inputs are real numbers in the units shown.
  • The result is the exact value of di = 1 / (1/f - 1/do); general information, not professional advice.

Frequently asked questions

What formula does this use?

di = 1 / (1/f - 1/do), the standard form documented by NIST / CODATA.

Does the result ever change over time?

No. This is a pure formula with no external rate, so the same inputs always give the same result.

Official sources and verification

Reviewed by the CalculatorHub team, edited by James Graham, 2026-06-22. See our methodology. General information, not professional advice.