SCIENCE • OPTICS & ELECTRICITY

Lens Formula Calculator

Calculate focal length, object distance or image distance using the thin-lens equation.

Formula

1/f = 1/do + 1/di

Worked example

Use the inputs above to reproduce a classroom calculation and compare the displayed result with the formula.

Assumptions and limits

This is an introductory model. Keep units consistent and follow the sign, geometry and physical assumptions required by the formula.

Lens Formula Calculator Guide — Focal Length & Image Distance

Use this tool for basic thin-lens questions involving focal length, object distance and image distance.

Sign conventions vary by textbook. This introductory tool should be interpreted using the distance convention stated by your course or problem set.

Related calculators

Science Hub · Force · Kinematics · Wave Speed

Use compatible units, follow the formula shown on this page, and check the result against the physical assumptions of the problem.

Read Calcora calculation methodology

OPTICS MODEL CHECK

The thin-lens equation is an idealized optical model

The thin-lens relationship connects focal length, object distance and image distance. Its sign convention and interpretation depend on the convention used by the problem.

Sign convention

Do not mix sign conventions between sources. Object distance, image distance and focal length must follow the same convention throughout the calculation.

Thin-lens boundary

Real lenses have thickness, aberrations and manufacturing limits. The thin-lens model is an approximation rather than a complete optical simulation.

Magnification connection

Image size and orientation can be interpreted alongside image distance and object distance; a distance result alone does not describe the complete image.

Lens calculations and sign conventions

The thin-lens model relates focal length, object distance and image distance. Correct use of signs is essential because converging and diverging lenses and real or virtual images can require different conventions.

Worked example

For a converging lens with focal length 10 cm and an object 30 cm away, the ideal thin-lens model gives an image distance of 15 cm.

Model limitations

The thin-lens approximation ignores lens thickness and many optical aberrations. Real optical systems may need more detailed ray or wave analysis.

Lens-formula FAQ

Why can image distance be negative?

Under common sign conventions, a negative value can indicate a virtual image rather than an image formed on the opposite side of the lens.