Home/Math, Geometry & STEM Science Utilities/Thin Lens Equation, Focal Length & Magnification Optics Solver

Thin Lens Equation, Focal Length & Magnification Optics Solver

Calculate image distance, object distance, focal length, transverse magnification, image height, and diopter optical power using the Gaussian thin lens equation.

Geometric Optics Parameters

Convex (+f)

Standard 2F symmetric conjugate demonstration bench (f = +15 cm)

Geometric Linear Units
+15 cm
cm
30 cm
cm
5 cm
cm
Precision Rounding:
Gaussian Form: 1/f = 1/do + 1/diParaxial Optics

Conjugate Image Solutions

m = -1.00×
Image Distance (di)
30.00cm

Real Image: Converges behind lens (projectable)

Lateral Magnification (m)
-1.00×

Image Height (hi): -5.00 cm

Orientation: Inverted (Upside down)

Refractive Diagnostics & Wavefront Metrics
Power (P)+6.67 DP = 1 / f (m)
NatureRealdᵢ > 0
Scale FactorUnit (1:1)|m| = 1.00
Separation (L)60.00 cmTotal dₒ + dᵢ
Conjugate Ray Diagram Schematic1/f = 1/do + 1/di
-F-2F+F+2FObjectReal Image
Object: do = 30.0 cmLens: 15.0 cmImage: 30.0 cm
Ray Conjugate Classification: Object precisely at 2F (do = 2f). Forms real, inverted image at 2F with unit magnification (m = -1).
Optical System Assessment:

The converging system captures diverging wavefronts and refits them into a real focal convergence 30.00 cm downstream. A camera sensor, CCD, or white card can record this image.

The Gaussian Thin Lens Equation: Physics & Mathematical Derivation

Formulated under the paraxial ray approximation of geometric optics, the Gaussian Thin Lens Equation governs how curved refractive boundaries focus, collimate, or disperse light. The formulation assumes the physical thickness of the lens along its central optical axis is negligible compared to its focal length and object-image conjugate distances.

By applying Snell's Law across two successive spherical interfaces and invoking the small-angle approximation (sin θ ≈ tan θ ≈ θ in radians), Johann Carl Friedrich Gauss established the reciprocal conjugate relationship linking focal length (f), object distance (do), and image distance (di):

1 / f = 1 / do + 1 / di

Through algebraic rearrangement, explicit analytical solutions for each individual conjugate parameter are derived:

Image Distancedi = (f · do) / (do - f)
Focal Lengthf = (do · di) / (do + di)
Object Distancedo = (f · di) / (di - f)

To connect the thin lens formula with underlying glass chemistry and curvature radii, the Lensmaker's Equation applies Snell's Law of Refraction across two consecutive spherical boundaries, defining focal length f in terms of index of refraction n and surface radii R1 and R2:

1 / f = (n - 1) · [ 1 / R1 - 1 / R2 ]
Optical VariableSymbolSI Standard UnitSign Convention (+)Sign Convention (-)
Focal LengthfMeters (m), cm, mmConverging (biconvex / plano-convex)Diverging (biconcave / plano-concave)
Object DistancedoMeters (m), cm, mmReal object located in front of lensVirtual object (cascaded multi-lens system)
Image DistancediMeters (m), cm, mmReal image formed behind lens (projectable)Virtual image formed in front of lens
Transverse MagnificationmDimensionless ratioUpright (erect) orientationInverted (upside-down) orientation
Optical Refractive PowerPDiopters (D = m⁻¹)Converging hyperopia / presbyopia lensDiverging myopia corrective lens

Transverse Magnification, Diopter Power & Principal Ray Tracing

Transverse linear magnification (m) quantifies the ratio of the physical height of the image (hi) relative to the object (ho). By invoking similar right triangles formed by chief rays intersecting the lens vertex at origin, the magnification is expressed as:

m = hi / ho = -di / do
The Three Standard Principal Rays
  • • Parallel Ray (P-Ray): Originates at the object tip, travels parallel to the optical axis, and refracts through the rear focal point (+F).
  • • Chief Ray (C-Ray): Passes directly through the exact optical center of the thin lens undeviated without angular refraction.
  • • Focal Ray (F-Ray): Traverses through the front focal point (-F) before striking the lens, emerging completely parallel to the optical axis.
Refractive Power in Diopters (D)

In optometry and ophthalmology, optical power P measures a lens's ability to converge or diverge wavefronts, defined as the reciprocal of focal length expressed strictly in meters:

P = 1 / f(m) = 100 / f(cm)

Thin lenses placed in direct contact add their diopters linearly: Ptotal = P1 + P2. A +2.00 D reading lens stacked against a +1.50 D lens yields an equivalent focal power of +3.50 D (f = 28.57 cm).

The Five Conjugate Regimes of Converging Convex Lenses

Depending on where an object is positioned along the principal optical axis relative to the focal point (F) and twice the focal length (2F), converging lenses exhibit five fundamental operational states:

Object Position (do)Image Position (di)NatureOrientationMagnification (|m|)Common Application
do > 2ff < di < 2fRealInverted|m| < 1 (Minified)Camera lens, human eyeball retina
do = 2fdi = 2fRealInverted|m| = 1 (Unit 1:1)Photocopying optical relay, bench calibration
f < do < 2fdi > 2fRealInverted|m| > 1 (Magnified)Cinema / slide projector, microscope objective
do = fdi = ±∞CollimatedNoneUndefinedSearchlight, collimator, lighthouse optic
do < f|di| > do (in front)VirtualUpright|m| > 1 (Magnified)Simple magnifying glass, jeweler's loupe

Step-by-Step Engineering Case Studies

Examine these two practical optical calculations contrasting a camera photographic sensor conjugate with an ophthalmology myopia diverging lens:

Case 1: 50mm Prime Lens on Photographic SubjectReal Camera Image
  • Given Parameters:
  • Focal Length f = +50 mm = +5.0 cm
  • Subject Distance do = 200 cm (2.0 m)
  • Subject Height ho = 180 cm (Human subject)
  • 1. Compute Image Sensor Distance (di):
  • 1/di = 1/f - 1/do = 1/5.0 - 1/200
  • 1/di = 0.200 - 0.005 = 0.195 cm⁻¹
  • di = 1 / 0.195 = 5.128 cm (51.28 mm)
  • 2. Compute Transverse Magnification (m):
  • m = -di / do = -5.128 / 200 = -0.02564×
  • 3. Projected Sensor Height (hi):
  • hi = m · ho = -0.02564 × 180 = -4.615 cm (-46.1 mm)
  • Fits nicely on a full-frame 36×24 mm or medium format digital back.
Case 2: Myopic Eyeglass Diverging Lens (-4.00 D)Virtual Upright View
  • Given Parameters:
  • Optical Power P = -4.00 Diopters
  • Focal Length f = 100 / (-4.00) = -25.0 cm
  • Distal Object Distance do = 100 cm
  • Object Height ho = 20 cm
  • 1. Compute Virtual Image Distance (di):
  • 1/di = 1/(-25) - 1/100 = -0.04 - 0.01 = -0.05 cm⁻¹
  • di = 1 / (-0.05) = -20.0 cm
  • 2. Compute Magnification (m):
  • m = -(-20.0) / 100 = +0.200×
  • 3. Perceived Virtual Height (hi):
  • hi = 0.200 × 20 cm = +4.0 cm (Upright & minified)
  • Pushes distant object into user's near far-point (20 cm).

Frequently Asked Questions (FAQ)

What is the Gaussian thin lens equation?

The Gaussian thin lens equation relates focal length (f), object distance (do), and image distance (di) using the formula 1/f = 1/do + 1/di. It assumes the axial thickness of the optical lens is negligible compared to the radii of curvature and conjugate distances.

What Cartesian sign conventions are used in thin lens calculations?

Under the standard Cartesian convention: object distance (do) is positive for real objects. Focal length (f) is positive for converging (convex) lenses and negative for diverging (concave) lenses. Image distance (di) is positive for real images formed behind the lens and negative for virtual images formed in front of the lens on the same side as the object.

How is lateral optical magnification (m) defined?

Transverse or lateral magnification is defined as m = -di / do = hi / ho. A negative magnification (m < 0) signifies an inverted image, while a positive magnification (m > 0) indicates an upright (erect) image. If the absolute value |m| is greater than 1, the image is magnified; if |m| is less than 1, it is minified.

What is an optical diopter and how does it relate to focal length?

A diopter (symbol: D) is the standard SI unit of refractive power (P), defined as the reciprocal of focal length measured in meters: P = 1 / f(m). A +2.00 D lens has a positive focal length of 0.50 meters (+50 cm), commonly prescribed for presbyopia or hyperopia, whereas a -2.50 D diverging lens has a focal length of -0.40 meters (-40 cm) to correct myopia.

What happens when an object is placed precisely at the focal point (do = f)?

When do = f, the denominator in di = (f · do) / (do - f) approaches zero, causing the image distance to approach infinity. Light rays emerge from the lens perfectly collimated and parallel, forming neither a finite real nor virtual image. This configuration is widely used in searchlights, optical collimators, and lighthouse beacons.

Why do diverging (concave) lenses only produce virtual images for real objects?

Because diverging lenses have a negative focal length (f < 0), the term 1/di = 1/f - 1/do always sums two negative quantities for any positive real object distance (do > 0). Consequently, di is mathematically strictly negative, meaning light rays always diverge on the transmission side and only appear to originate from an upright, minified virtual focal point.

When does the thin lens approximation break down in real-world optics?

The thin lens approximation becomes inaccurate when lens thickness (t) is a substantial fraction of its focal length or curvature radii, when high aperture ratios introduce spherical and chromatic aberrations, or when rays strike far from the optical axis where paraxial approximations (sin θ ≈ θ) no longer hold. Real multi-element camera lenses require thick-lens matrix optics or ray tracing.

How does lens conjugate symmetry work at twice the focal length (2F)?

When an object is placed at do = 2f in front of a converging lens, solving 1/di = 1/f - 1/(2f) = 1/(2f) gives di = 2f. The transverse magnification is m = -di / do = -(2f) / (2f) = -1.0. This 2F conjugate point produces a real, inverted replica of identical size, representing the minimum overall physical separation distance between an object and its real image (Lmin = 4f).

Related & Complementary Utilities

Explore more privacy-first client-side web tools.