Free Thin Lens Equation Calculator

1/x + 1/y = 1/f   |   M = |y|/x

Thin lens equation: the reciprocal of the focal length equals the sum of the reciprocals of the object and image distances.

Enter any two values (object distance, image distance, or focal length) to compute the remaining values using the thin lens equation. The calculator will also determine magnification, lens type, and image properties.

The thin lens equation calculator is a free online optics tool designed to help you analyze image formation. Whether you need a focal length calculator, magnification calculator, image distance calculator, or object distance calculator, this lens formula calculator provides quick results for both converging and diverging lenses. It effectively serves as a converging lens calculator and a diverging lens calculator in one, making it a versatile optics calculator for students, hobbyists, and professionals.

The Thin Lens Equation

The relationship that governs how a thin lens forms an image is expressed by the thin lens equation:

1x+1y=1f\frac{1}{x} + \frac{1}{y} = \frac{1}{f}

where:

  • xx = distance from the object to the lens center,
  • yy = distance from the image to the lens center,
  • ff = focal length of the lens (positive for converging, negative for diverging).

Using this equation, you can calculate where an image will appear for a given object placement. The sign of yy reveals the nature of the image: a positive yy indicates a real image (formed on the side opposite the object), while a negative yy corresponds to a virtual image (formed on the same side as the object). This sign convention makes the equation universally applicable to both convex (converging) and concave (diverging) lens types.

Magnification and Image Size

The relative size of the image compared to the object is defined by magnification:

M=∣y∣xM = \frac{|y|}{x}

Magnification is always a positive number. When M<1M < 1, the image is diminished; when M=1M = 1, it is the same size as the object; and when M>1M > 1, the image is enlarged. The absolute value of yy ensures that the ratio reflects size only, while the sign of yy (combined with the orientation context) tells you whether the image is upright or inverted.

Behavior of Converging Lenses (f > 0)

A converging lens produces different image characteristics depending on where the object is placed relative to the focal point. The table below summarizes the five classic situations:

Object DistanceImage Distance yyImage TypeMagnification
x>2fx > 2fy>0y > 0 (real)DiminishedM<1M < 1
x=2fx = 2fy>0y > 0 (real)Same sizeM=1M = 1
2f>x>f2f > x > fy>0y > 0 (real)EnlargedM>1M > 1
x=fx = fy→∞y \to \inftyNo image formed—
x<fx < fy<0y < 0 (virtual)EnlargedM>1M > 1

When the object sits exactly at the focal length, the refracted rays exit parallel and no image can be captured. These cases are essential for designing optical systems such as cameras, telescopes, and microscopes.

Diverging Lenses (f < 0)

For diverging lenses, the focal length is negative. No matter where the object is positioned, the image produced is always virtual, upright, and smaller than the object. The thin lens equation still applies directly—simply use the negative value of ff in the formula. This calculator handles both positive and negative focal lengths seamlessly, making it a reliable tool for any thin lens scenario.

Practical Applications

By eliminating manual algebra, this digital tool serves as a quick image distance calculator, object distance calculator, and magnification calculator all at once. Whether you are studying optics, designing lens systems, or simply curious about how eyeglasses or camera lenses work, mastering the thin lens equation is the key to understanding how lenses form and magnify images.

FAQ

1. How do you determine whether an image is real or virtual using the thin lens equation?

In the thin lens equation 1/x + 1/y = 1/f, the sign of the image distance y indicates the image type: a positive y corresponds to a real image (formed on the opposite side of the lens), while a negative y corresponds to a virtual image (on the same side as the object).

2. What happens when the object is placed exactly at the focal point of a converging lens?

When x = f, the thin lens equation yields y → ∞, meaning no image is formed because the refracted rays become parallel. This is a key boundary case in lens optics.

3. Is the thin lens equation applicable to both convex and concave lenses?

Yes, the thin lens equation 1/x + 1/y = 1/f works universally. Converging (convex) lenses have a positive focal length (f > 0), while diverging (concave) lenses have a negative focal length (f < 0). The sign convention handles the differences.

4. How is the magnification of a lens calculated?

Magnification is given by M = |y|/x, where x is the object distance and y is the image distance. It is always a positive number: M < 1 means the image is diminished, M = 1 means same size, and M > 1 means enlarged.

How to Use

  1. Enter any two of the three values: object distance (x), image distance (y), or focal length (f). Select the appropriate length unit for each.
  2. The calculator instantly computes the missing value using the thin lens equation (1/x + 1/y = 1/f), along with the magnification (M = |y|/x).
  3. Review the image analysis: determine whether the lens is converging or diverging, whether the image is real or virtual, and whether it is diminished, same-size, or magnified.