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)
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.
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.
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?
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).
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).
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).
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.
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.
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).
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.
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
Calculate telescope field of view.
Calculate telescope magnification.
Calculate thin film optical coating.
Calculate wavelength.
Calculate ground speed.
Calculate temperature at altitude.