QuickToolbox

Lens Formula Calculator

Solve the thin lens equation for the image distance, object distance or focal length, with the magnification and whether the image is real.

These tools are for study and quick checking. A result is only as good as the numbers you enter and the simplifying assumptions in the formula. For published, regulated or safety-critical work, check it against a trusted source or an instrument.

How it works

The formula

1/f = 1/u + 1/v (real-is-positive convention)

Frequently asked questions

What sign convention is used?

Distances in front of the lens are positive. A positive image distance means a real image on the far side.

What does a negative image distance mean?

A virtual image on the same side as the object, as in a magnifying glass.

Is what I enter sent anywhere?

No. The calculation is done in your browser, so your numbers are not sent to a server or saved.

Related tools