How to use the thin lens equation 1/f = 1/d_o + 1/d_i
Compute image distance, magnification and type (real/virtual, upright/inverted) for converging and diverging thin lenses. Formula 1/f = 1/d_o + 1/d_i, M = -d_i/d_o, diopters. Photography, eyeglasses examples.
Report a calculation error
Help us improve. Describe what is wrong with the calculation.
Result
| Voce | Valore |
|---|
Show full details
Share result
Disclaimer: this calculation is for informational purposes only. For important decisions, consult a qualified professional.
How to use the thin lens equation: Gauss fundamental formula 1/f = 1/d_o + 1/d_i links lens focal length f to object distance d_o and image distance d_i. Sign convention: f > 0 converging lens (biconvex), f 0 real object; d_i > 0 real image (opposite side), d_i < 0 virtual image (same side as object). Solving: d_i = f*d_o/(d_o - f). Linear magnification M = -d_i/d_o = h_i/h_o (negative sign indicates vertical inversion). Optical power P = 1/f (in meters), unit diopter [D]. Fundamental tool in photography, microscopy, ophthalmology, astronomy.
Main formulas
Gauss equation: 1/f = 1/d_o + 1/d_i. For converging lens with d_o > 2f: real, inverted, reduced image (camera distant object). For f < d_o < 2f: real, inverted, magnified image (projector). For d_o = f: image at infinity (collimator). For d_o < f: virtual, upright, magnified (magnifying glass, eyepiece). Diverging lens (f<0): always virtual, upright, reduced (myopia eyeglasses).
Linear magnification: M = -d_i/d_o = h_i/h_o. Sign: M > 0 upright image; M 1 magnification, |M| < 1 reduction. In microscopy total M_tot = M_obj * M_eye (e.g., 40x * 10x = 400x). In photography reproduction ratio 1:2 macro means M = -0.5.
Lensmaker's equation: 1/f = (n-1)*(1/R_1 - 1/R_2 + (n-1)*d/(n*R_1*R_2)) for thick lens with refraction index n, curvature radii R_1, R_2 (positive if center on opposite side of incidence), thickness d. Thin lens (d ≈ 0): simplifies to 1/f = (n-1)*(1/R_1 - 1/R_2). Crown glass n=1.52, flint glass n=1.62, CR-39 polymer n=1.50, high-index MR-7 n=1.67 (thinner eyeglasses).
Diopters and ophthalmic prescriptions: P = 1/f with f in meters, unit diopter D. Myopia eyeglasses (-1 D, -2 D, ...) diverging lenses pushing focus back to retina. Hyperopia (+1 D, +2 D, ...) converging lenses. Presbyopia (>40 years) progressive bifocals. WHO categories: mild 12 D. Prescription includes sphere, cylinder (astigmatism) and axis.
History and context
Use of lenses for vision correction dates to Salvino degli Armati (Florence circa 1284) although documentation uncertain. Marco Polo reported lenses in use in 13th-century China. Geometric theory of thin lenses was developed by Johannes Kepler in his "Dioptrice" (1611) and refined by Christiaan Huygens "Traite de la lumiere" (1690). Carl Friedrich Gauss rigorously formalized the theory in 1841 with cardinal points concept (principal planes, focal points) for complex optical systems. Joseph Fraunhofer perfected optical glass manufacturing in Munich (Bavaria) in the 19th century, founding modern German optical industry (Zeiss 1846, Schott 1884). Chromatic aberration was corrected by John Dollond (1758) with crown+flint achromatic doublets. In 20th century aspheric and progressive lenses (Maitenaz 1959 Essilor) for presbyopia correction. Today global industry > $100 billion: optoelectronic devices, smartphone cameras (>1.5 billion units/year), eyeglasses (Luxottica world leader). ISO 8624 (prismatic interval), ISO 13666 (ophthalmic terminology), ISO 14889 ophthalmic lenses, ISO 21987 finished spectacles standards.
Focal lengths and applications table
- Microscope objective: f = 1-30 mm (40x short, 4x long)
- Macro photography: f = 50-180 mm with d_o ≈ f (1:1 reproduction ratio)
- Standard camera lens: f = 35-50 mm full-frame (24x36 mm sensor)
- Telephoto: f = 200-600 mm sports, wildlife, astronomy
- Wide angle: f = 14-24 mm landscape, architecture
- Myopia eye -1 D: lens -1000 mm (1 D = 1/m, f = -1 m)
- Hyperopia eye +2 D: lens +500 mm
- Magnifying glass: f = 50-100 mm, magnification 25 cm/f (50 mm lens: 5x)
- Refractor telescope: f obj 1000 mm + eyepiece f=10 mm = 100x
- Smartphone: f = 4-7 mm (1/2.3" sensor, FOV equivalent 24 mm)
Worked numerical examples
Example 1 - 50mm portrait photography. Canon EF 50mm f/1.8 STM, subject at 2 m. f = 50 mm, d_o = 2000 mm. d_i = 50*2000/(2000-50) = 100000/1950 = 51.28 mm. M = -51.28/2000 = -0.0256 (image reduced 39x, inverted). 1.8 m subject projects 1.8/0.0256 = 70 mm on sensor - nearly fills frame (24x36 mm sensor, half-body framing). Canon EF Mount specifications.
Example 2 - cellular biology microscope. Slide with 20 micrometer cell, 40x objective (f=4 mm). Standard Koehler distance d_o = 4.1 mm (slightly past f). d_i = 4*4.1/(4.1-4) = 16.4/0.1 = 164 mm. M = -164/4.1 = -40 (correct, 40x as specified). Cell appears 800 micrometers on intermediate image. 10x eyepiece further magnification: M_total = 40*10 = 400x. ISO 8039 optical microscopy standard.
Example 3 - myopia eyeglasses -2.5 D. American Optometric Association myopic teen -2.5 D. f = 1/(-2.5) = -0.4 m = -400 mm (diverging lens). Far point test: object at 10 m (d_o = 10000 mm). d_i = -400*10000/(10000-(-400)) = -4000000/10400 = -384.6 mm (virtual image 384.6 mm behind lens, repositioned so retina perceives in focus). M = -(-384.6)/10000 = 0.0385 (reduced, normal for diverging). ISO 14889 ophthalmic compliance.
Example 4 - presbyopia bifocal +1.5 D. 50-year-old worker, 33 cm reading. Progressive +1.5 D, f = 667 mm. d_o = 333 mm book. d_i = 667*333/(333-667) = 222111/(-334) = -665 mm (virtual). M = -(-665)/333 = 2.0 (perceptual magnification 2x). Near point corrected from 50 cm to 33 cm. ISO 21987 finished spectacles, OSHA 29 CFR 1910.133 occupational eye protection.
Example 5 - amateur Galileo telescope. 80mm aperture refractor, f obj = 600 mm. Moon at 384,000 km. d_o approaching infinity, d_i ≈ f = 600 mm (focal plane image). Apparent moon diameter 0.5° -> 5.2 mm on focal plane. 10mm eyepiece: M_total = 600/10 = 60x. Dawes resolving 116/D = 116/80 = 1.45". CIE 91 photometric measurement standards, NASA outreach telescopy.
Limits and considerations
- Thin lens equation valid for thickness d << f; real lenses use full Lensmaker equation.
- Spherical aberration: marginal rays focus differently from paraxial (fix: aspheric lenses).
- Chromatic aberration: f depends on n(lambda); fix achromatic doublets crown+flint.
- Barrel/pincushion distortion: large angles, fix rectilinear wide-angles.
- Coma and astigmatism: third-order off-axis aberrations, fix multi-element systems.
- Thin lens assumes all rays converge to focus (paraxial): violated for very close objects or large angles.
- Limited depth of field: d_o range for which d_i stays in tolerance (sensor CoC 0.03 mm).
- Diffraction limits minimum resolution: Airy spot diameter 1.22*lambda*N (N = f-number); for N=2.8 and 550 nm: 3.8 micrometers.
- Refractive index varies with wavelength: chromatic dispersion Abbe Vd = (n_d - 1)/(n_F - n_C).
- ISO 14889 ophthalmic prescription includes sphere + cylinder + axis + add.
Common errors
- Confusing focal length f with image distance d_i (different).
- Sign convention error: diverging lens has f<0, virtual image d_i<0.
- Computing M without sign (loses image orientation info).
- Using thin lens for thick lenses without correction (1-5% error).
- Ignoring chromatic aberration with non-monochromatic source.
- Confusing linear magnification M with angular (telescopes use angular M = f_obj/f_eye).
- Placing object at d_o = f and expecting finite image (image at infinity).
- Computing diopters with f in mm instead of meters (wrong division).
- Not considering depth of field (DoF) in photography.
- Confusing f-number (relative aperture) with absolute focal length.
Practical applications
- Photography: Canon EF, Nikon F-mount, Sony E-mount, Apple/Samsung smartphones.
- Ophthalmology: eyeglasses, contact lenses, cataract surgery IOLs (Alcon, J&J Vision).
- Microscopy: Zeiss Axio, Leica DM, Nikon Eclipse, biomedicine.
- Astronomy: Celestron, Meade, Skywatcher telescopes, NASA outreach.
- Scientific instruments: spectrometers, interferometers, lasers.
- Cinema: ARRI, RED cameras, Cooke optics, anamorphics.
- Industrial: machine vision Cognex, Keyence, quality inspection.
- Aerospace: Earth observation Landsat NASA, Hubble JWST space telescopes.
- Defense: military optics, surveillance systems, FLIR thermography.
- Consumer: binoculars, magnifying glasses, work lamp lenses.
Support
Questions: info@calcoi.com. Educational tool for geometric optics. For professional applications consult Hecht "Optics" 5th ed (Pearson 2017), Born-Wolf "Principles of Optics" 7th ed (Cambridge 1999), Zemax OpticStudio, Code V Synopsys, ANSYS Speos software.
Updated July 2026
Frequently Asked Questions
Sign convention for converging vs diverging lenses?
When is image real or virtual?
How to convert focal length in mm to diopters?
Difference between thin lens and Lensmaker?
What does f-number mean in photography?
How to compute total magnification of microscope?
Photography depth of field: formula?
Formula
1/f = 1/d_o + 1/d_i
d_i = f * d_o / (d_o - f)
M = -d_i/d_o = h_i/h_o
P = 1/f con f in metri
1/f = (n-1) * (1/R_1 - 1/R_2)
N = f / D apertura
d = lambda / (2 * NA) (microscopia)
d_Airy = 1.22 * lambda * N
Kepler 1611 Dioptrice; Gauss 1841; Hecht Optics 5th ed Pearson 2017
Comments (0)
Login to leave a comment.
No comments yet. Be the first!