Lens formula calculator

Solve the thin-lens equation 1/f = 1/u + 1/v and magnification m = −v/u.

On your device · No account
Privacy details

Lens formula calculator processes your input in this browser. Inputs and results are excluded from analytics. Recent tools save tool names, visit counts and last-visit times. Saved tools store only their names. Draft saving is optional and stays on this device; delete saved text with the draft controls. Loading text from a URL is optional and contacts that server; its URL and your IP address are visible to the server. An optional “Use in” action keeps a handoff in this tab. The next tool removes it on arrival and ignores it if more than a minute has passed.

Copy link includes the inputs you choose to share in the address. Anyone with that link can reopen them. Files and generated results are excluded. Password and key tools share settings only.

More inputs and assumptions

Answer

…

Thin lens: 1/f = 1/u + 1/v. Solve image distance v = fu/(u − f), or focal length f = uv/(u + v), using the real-is-positive sign convention.

More results
Precision and calculation record

Rounding changes displayed numbers, not the calculation. Text, fractions, matrices and CSV schedules keep their own formatting. Automatic keeps up to 12 significant digits, with money shown to cents where applicable.

Saved scenario

Save the current answer, then change an input to compare. This clears when you leave.

Formula and assumptions

All lengths use one unit. Positive f is converging, positive u is a real object, and positive v is a real image on the opposite side. Ideal thin-lens approximation only.

Automatic precision shows numbers to 12 significant digits. Thousands separators such as 1,000 are accepted; use a dot for decimals.

Scratch calculator

Use +, −, ×, ÷, parentheses and %. A percentage is divided by 100. This does not change the main tool.

Reset reloads the tool with its starting values and releases open files and device controls. Saved drafts stay on this device until you delete them.

Links include your inputs and settings. Anyone with the link can see them, so leave out private text. Files and generated results are left out; random draws run again.

Keyboard shortcuts

Updated

Using Lens formula calculator

Thin lens: 1/f = 1/u + 1/v. Solve image distance v = fu/(u − f), or focal length f = uv/(u + v), using the real-is-positive sign convention.

All lengths use one unit. Positive f is converging, positive u is a real object, and positive v is a real image on the opposite side. Ideal thin-lens approximation only.

Next: Display viewing angle calculator

A worked example

Example inputs: focal length (positive converging) = 10, object distance (positive real object) = 30. Image distance = 15.

Before you use the result

All lengths use one unit. Positive f is converging, positive u is a real object, and positive v is a real image on the opposite side. Ideal thin-lens approximation only.

Example results for focal length (positive converging)

These examples use Object distance (positive real object): 30; Input mode: Image distance from focal length. They are reference calculations, not recommended settings.

Focal length (positive converging)Image distance
56
1015
2060
Cite this page

ToolOctopus. “Lens formula calculator.” Updated 2026-09-26. https://tooloctopus.com/lens-formula-calculator.

Add an access date if your instructions require one.

Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. Licence and source code.

Find a tool

Search by task. Use ↓ and ↑ to choose, Enter to open.