Thin Lens Equation Calculator

Thin Lens Equation

Calculate the image position and magnification for a thin lens using the object distance and focal length.

Last updated: March 2026 | By Summacalculator

Positive for Converging (Convex), Negative for Diverging (Concave)

Image Distance (dᵢ)
16.67
cm
Magnification
-0.67x
Image Type
Real, Inverted

What is the Thin Lens Equation?

The thin lens equation is a fundamental relationship in geometric optics that connects the focal length of a lens, the distance of an object from the lens, and the distance of the resulting image from the lens. It is derived from the refraction of light at spherical surfaces and the paraxial approximation (assuming light rays stay close to the optical axis). The thin lens equation is valid for lenses where the thickness is negligible compared to the lens radius and the object and image distances.

This equation is the cornerstone of practical optical design and appears everywhere: in camera design (determining where the sensor should be placed), microscopy (calculating magnification), telescopes, eyeglass prescription measurement, and any optical system that forms images. Understanding the thin lens equation allows engineers to predict image properties (location, size, orientation) with simple algebra, avoiding complex ray tracing for initial designs. The equation predicts whether images are real or virtual, inverted or upright, magnified or diminished—all of which depend on where the object is positioned relative to the focal lengths.

How to Use This Calculator

Step 1: Enter the focal length (f) in centimeters. For converging (convex) lenses, use a positive value. For diverging (concave) lenses, use a negative value. Typical example: a simple magnifying glass might have f = +10 cm; a corrective lens for nearsightedness might have f = -20 cm.

Step 2: Enter the object distance (dₒ) in centimeters. This is how far the object (e.g., a candle, your face, a distant tree) is from the lens. For example: an object 25 cm away, or an object very far away (approaching infinity).

Step 3: The calculator automatically computes: the image distance (dᵢ), the magnification (M), and the image type (real/virtual, inverted/upright). These results tell you exactly where the image forms and how large it is.

Formulas:

1/f = 1/dₒ + 1/dᵢ
M = -dᵢ / dₒ
  • f = Focal length (+positive for converging, -negative for diverging)
  • dₒ = Object distance from lens center
  • dᵢ = Image distance from lens center (+real, -virtual)
  • M = Magnification (-inverted, +upright; |M| < 1 diminished, |M| > 1 magnified)
  • Example Calculation

    A photographer using a converging camera lens with focal length f = 50 mm (5 cm) focuses on a subject that is 2 meters (200 cm) away. Where does the image form on the camera sensor? What is the magnification?

    Given:
    f = 5 cm (50 mm camera lens)
    dₒ = 200 cm (2 meters, subject distance)
    Find Image Distance (dᵢ):
    1/f = 1/dₒ + 1/dᵢ
    1/5 = 1/200 + 1/dᵢ
    1/dᵢ = 1/5 - 1/200 = 40/200 - 1/200 = 39/200
    dᵢ = 200/39 = 5.128 cm ≈ 5.13 cm
    Calculate Magnification (M):
    M = -dᵢ / dₒ
    M = -(5.128) / 200
    M = -0.02564 ≈ -0.026
    Interpretation:
    • Image distance: 5.13 cm (real image, on opposite side of lens)
    • Magnification: -0.026 (negative = inverted; |0.026| means 1/38 size)
    • Image type: Real, inverted, highly diminished
    The subject is 2 meters away and their image on the sensor is about 1/38 their size. This is typical of photography with a standard lens—a distant subject creates a small image. If the subject were only 25 cm away (macro range), the magnification would be about -0.20 (5x smaller), still inverted.

    Frequently Asked Questions

    What does a negative image distance mean?

    A negative image distance (dᵢ < 0) indicates a virtual image. The image is formed on the same side of the lens as the object and cannot be projected onto a screen. You must look through the lens to see it. Magnifying glasses and eyeglass corrections produce virtual images (when used to magnify).

    Why is the magnification negative for real images?

    Negative magnification (M < 0) means the image is inverted (upside down). This sign convention makes it easy to see at a glance whether an image is upright: positive M is upright, negative M is inverted. For virtual images like those from magnifying glasses, M is positive (upright, magnified).

    What happens if the object sits exactly at the focal point?

    If dₒ = f, then 1/dᵢ = 1/f - 1/f = 0, making dᵢ = ∞ (infinity). The rays converge to infinity, and no real image can be formed on any screen. In practice, a lens used at its focal length is said to produce an image at infinity, useful for viewing distant objects (like in a telescope eyepiece).

    Does this equation work for concave lenses?

    Yes, but use a negative value for f. Concave lenses always produce virtual, upright, diminished images regardless of object position. The equation correctly predicts this: for any positive dₒ, the equation yields negative dᵢ and positive M (upright, reduced size). This is why minus-prescription eyeglasses produce minified virtual images.

    What is the difference between a real and virtual image?

    A real image (dᵢ > 0) forms where light rays actually converge and can be projected onto a screen. It's always inverted. A virtual image (dᵢ < 0) forms where light rays *appear* to diverge from (when traced backward) and cannot be projected. You must place your eye at the right position to see it. Real images appear in cameras and projectors; virtual images appear in mirrors and magnifying glasses.

    How does object distance affect image properties?

    Dramatic changes occur at specific positions: (1) dₒ > 2f: Real, inverted, diminished image at 1x < |M| < ∞. (2) dₒ = 2f: Real, inverted, same-size image (|M| = 1). (3) f < dₒ < 2f: Real, inverted, magnified image (|M| > 1). (4) dₒ = f: No image (ᵢ → ∞). (5) 0 < dₒ < f: Virtual, upright, magnified image (positive M).

    How does focal length affect the magnifying power of a simple magnifying glass?

    A simple magnifying glass held very close to the eye produces a virtual image at the near-point distance of about 25 cm, giving maximum magnification of M ≈ 25/f (in cm). A shorter focal length yields higher magnification: f = 5 cm gives ~5x magnification; f = 2.5 cm gives ~10x. Very short focal lengths are hard to use because you must hold them very close and the field of view becomes very small.

    What limitations does the thin lens equation have?

    It assumes: (1) lens thickness is negligible, (2) light rays stay near the optical axis (paraxial approximation), (3) one-color (monochromatic) light or average for blue. Real lenses suffer from aberrations (spherical, chromatic, etc.) that deviate from predictions. For wide-angle, high-precision, or extreme-magnification systems, the full ray-tracing equations are necessary. However, the thin lens equation provides an excellent first-order approximation.

    Related Tools