Thin Lens Equation Calculator

Enter any two of three values — object distance (x), image distance (y), and focal length (f) — and the Thin Lens Equation Calculator solves for the missing one using 1/f = 1/x + 1/y. You also get the magnification (M) and lens power (P) automatically. Leave the field you want to find blank, and the calculator does the rest.

cm

Distance from the object to the center of the lens. Leave blank to calculate.

cm

Distance from the center of the lens to the image. Leave blank to calculate.

cm

The focal length of the lens. Leave blank to calculate.

Results

Focal Length (f)

--

Object Distance (x)

--

Image Distance (y)

--

Magnification (M)

--

Lens Power (P)

--

Image Type

--

Lens Distances Overview

Frequently Asked Questions

How do I calculate the focal length of a lens using the lens formula?

Use the thin lens equation: 1/f = 1/x + 1/y, where x is the object distance and y is the image distance from the lens center. Rearranging gives f = (x × y) / (x + y). Simply enter the object and image distances and the calculator will solve for f automatically.

How do I find the magnification of a lens?

Magnification M is calculated as M = −y / x, where y is the image distance and x is the object distance. A positive M means an upright (virtual) image, while a negative M indicates an inverted (real) image. The absolute value |M| tells you how many times larger or smaller the image is compared to the object.

Is the thin lens formula different for different lenses?

The thin lens equation 1/f = 1/x + 1/y applies to both converging (convex) and diverging (concave) lenses. The key difference is the sign of the focal length: converging lenses have a positive f, while diverging lenses have a negative f. Sign conventions must be observed consistently.

What is the formula for the power of a lens?

The power of a lens is P = 1/f, where f is the focal length expressed in meters. Power is measured in diopters (D). A lens with a focal length of 0.5 m has a power of 2 D. Converging lenses have positive power; diverging lenses have negative power.

What happens when the object is placed at the focal point of the lens?

When the object is placed exactly at the focal point (x = f), the refracted rays emerge parallel to the optical axis and never converge. This means the image is formed at infinity (y → ∞). This principle is used in applications like collimating light beams and spotlights.

What is the difference between a real and a virtual image in optics?

A real image forms where refracted light rays actually converge, and it can be projected onto a screen. It occurs when the image distance y is positive. A virtual image forms where rays appear to diverge from behind the lens, cannot be projected, and corresponds to a negative y value.

Can I use this calculator for concave (diverging) lenses?

Yes. For concave lenses, enter the focal length as a negative value (e.g., −10 cm). The thin lens equation works for both converging and diverging lenses as long as you follow the standard sign convention: distances are positive when measured in the direction of the incoming light.

What does a magnification of 1 mean?

A magnification of 1 (|M| = 1) means the image is the same size as the object. For a converging lens, this occurs when the object is placed at twice the focal length (x = 2f), and the image also forms at twice the focal length on the other side (y = 2f). The image is real and inverted in this case.

More Physics Tools