Focal Length Calculator

Calculate lens focal length, magnification, and optical power from object and image distances with the thin lens equation.

Thin lens calculator
Enter positive distances in meters, measured from the optical center of a converging lens.

About focal length calculations

Focal length describes how strongly an optical system converges or diverges light. For a thin converging lens, the object distance, image distance, and focal length are linked by the thin lens equation: one divided by focal length equals one divided by object distance plus one divided by image distance. Rearranging that relationship gives focal length as object distance multiplied by image distance, divided by their sum. This calculator applies that equation when both distances are positive and expressed in meters. The result also includes lateral magnification. Magnification is the image distance divided by the object distance, and its magnitude tells you how large the image is relative to the object. A value of 0.2 means the image is one fifth of the object's size, while a value above 1 indicates enlargement. In a complete sign-convention treatment, a real image formed by a converging lens is inverted and magnification carries a negative sign. This practical calculator reports the magnitude so the relative size is easy to read. Lens power is the reciprocal of focal length in meters and is measured in diopters. A lens with a focal length of 0.5 meter has a power of 2 diopters, while a 0.1-meter lens has a power of 10 diopters. Shorter focal lengths therefore correspond to stronger optical power. Diopters are widely used for eyeglass prescriptions, magnifiers, and other optical systems because powers of thin lenses placed close together can often be added directly. Accurate inputs depend on measuring from the lens's optical center rather than from the front of a housing or camera body. The thin lens model also assumes that lens thickness is small compared with the relevant distances and that rays remain near the optical axis. Real photographic objectives contain multiple elements, so their marked focal length refers to an effective optical model rather than a simple physical distance. Use this tool for classroom optics, photography experiments, microscopy planning, projector setups, and preliminary lens selection. It is most reliable for ideal thin lenses in air. For thick lenses, strongly curved elements, virtual objects, or virtual images, use the appropriate signed distances and a full optical design model.

Focal length examples

DistancesResultsApplication
u = 1 m, v = 1 mf = 0.5 m, power = 2 DAn object and real image equally distant from the lens produce unit magnification.
u = 0.5 m, v = 0.1 mf = 0.0833 m, power = 12 DA short focal length lens forms a reduced image with magnification 0.2.
u = 2 m, v = 0.5 mf = 0.4 m, power = 2.5 DA projector-style arrangement produces magnification of 0.25.

How to use the focal length calculator

  1. Measure the object distance from the lens's optical center and enter it in meters.
  2. Measure the image distance from the same optical center and enter it in meters.
  3. Select Calculate to apply the thin lens equation.
  4. Read the focal length, magnification, and lens power results.

Focal length calculator FAQ

What is the thin lens equation?

The thin lens equation relates focal length to object and image distance. It assumes an ideal lens whose thickness is negligible compared with those distances.

Why must the distances use meters?

Meters make the reciprocal focal length directly equal to optical power in diopters. Convert centimeters or millimeters to meters before entering them.

What does magnification mean?

Magnification compares image size with object size. A magnitude below one means reduction, while a magnitude above one means enlargement.

What is a diopter?

A diopter is one reciprocal meter of optical power. A 4-diopter lens therefore has a focal length of 0.25 meter.

Does this work for camera lenses?

It provides a useful idealized estimate for camera optics. Compound camera lenses require principal-plane locations and manufacturer data for precise modeling.