Before calculating
A real image forms where emerging rays meet and can be captured on a screen. For a virtual image, rays diverge but appear to originate at one point. Extend them backward to locate it. A virtual image can be seen, but cannot be directly projected onto a screen at that location.[1]
You need reciprocals, similar triangles and one sign convention. The thin lens has the same medium on both sides and rays close to the optical axis. Measure distances from the idealized lens plane. Focal length characterizes the lens, not its currently adjusted screen distance.[1][2]
What is the thin-lens equation with this sign convention?
For a thin lens in the paraxial model with the same medium on both sides, . Use the signed distances defined below rather than their magnitudes. The equation gives image location; signed magnification also gives orientation and size.[1]
Use for a real object before the lens and for a real image on the emerging side. A virtual image on the incident side has . Converging lenses have , diverging lenses . A virtual object, an incoming bundle already converging toward a point beyond the lens, has . Compound systems can create that situation; the main examples below use real objects. Both sides of the ideal lens use the same surrounding medium here.[1]
B and G are signed transverse heights; m<0 means inverted, m>0 upright. For unsigned sizes use .[1]
Distances start at the ideal thin-lens position. A thick real lens instead uses its corresponding principal planes for object and image distances. A large front lens housing is not automatically a valid reference plane. For positive g,b, object-to-screen separation is , not b alone.[2]
How do you derive the thin-lens equation and signed magnification?
For a real object of height G and a converging paraxial lens, a central ray approximately passes straight through the lens center. Similar triangles give . A parallel incoming ray reaches the lens at height G and then passes through the image-side focus. At the image plane its height is . Both rays must meet the same image point.[1]
Both principal rays belong to one image point. The third line divides by finite image distance b.[1]
This is paraxial imaging, using first-order small-angle and small-height approximations. The relation extends with the same signs to virtual images and diverging lenses. Diverging rays must be extended backward to locate a virtual intersection; it is not a position where actual beam energy focuses onto a screen. Snell’s law of refraction first describes local ray bending at an interface; the thin-lens model combines the two refracting surfaces into an imaging model.[2]
How do you calculate image distance, object distance, focal length and dioptres?
Use one length unit and check denominators. For , the ideal image lies at infinity.[1]
For and g>2 f, the image is real, inverted and reduced. At g=2 f it lies at b=2 f with m=−1. For f<g<2 f it is real and enlarged; for it is virtual, upright and enlarged. A diverging lens with a real object gives and . Without the real-object qualification, saying every diverging lens always forms a virtual image is too broad.[1]
Optical power has units m−1 when f is in meters, conventionally called diopters. It is different from camera f-number. Thin lenses in close contact in the same surrounding medium have additive powers; finite spacing introduces another term and requires a system model.[2]
How do you calculate image distance, height and orientation for a screen image?
An inverted image of a 30-mm object
- Given
- f = 80.0 mm; g=240.0 mm; G=30.0 mm; thin converging lens.
- Find
- Find image position, image height and total separation.
Approach: Use the thin-lens equation for image position; signed magnification gives orientation and height.
First obtain reciprocal image distance.
Form signed magnification and apply it to height.
Object and screen lie on opposite sides.
Result: The real image lies 120 mm after the lens,15 mm tall and inverted. Object and screen are 360 mm apart.
Check: Reciprocal check: . For g=3f the reduced real image lies between f and 2f. Both 120 mm and magnification −0.5 match that expectation.
When does a magnifier produce an upright virtual image?
Object inside the focal length
- Given
- f = 80.0 mm; g=50.0 mm; G=12.0 mm.
- Find
- Find virtual image position and signed transverse size.
Approach: The same thin-lens equation applies inside the focal length; negative b locates the virtual image on the incident side.
Compute the negative reciprocal image distance.
Take the reciprocal and calculate magnification.
Result: The virtual image lies 133.3 mm before the lens on the object side, upright and 2.667 times as large.
Check: The check uses negative image distance. Positive magnification means upright. Transverse size magnification is not yet a magnifier’s angular magnification; that needs eye position and a reference viewing condition.
Explore further: designing a projection
A fourfold screen image over 500 mm
- Given
- Real object and image; object-to-screen distance L=500 mm; target signed magnification m=−4. Thin lens, same medium.
- Find
- Find object distance, image distance and required focal length.
Approach: a real image places object and screen on opposite sides. Combine separation and magnification before finding focal length.
Substitute the two distances and then focal length.
Result: The model lens has f = 80 mm and sits 100 mm after the object, leaving 400 mm to the screen. The image is four times as large and inverted.
Check: in inverse millimetres and check both constraints. The lens lies nearer the object, as expected for an enlarged real image.
Why is image distance so sensitive near the focal plane?
For fixed f, small changes of g shift b oppositely. The linear approximation requires sufficiently small changes.[1]
For f = 80 mm and g = 90 mm, b = 720 mm and . A 1 mm change is already ten percent of g−f; exact values b(89 mm) = 791.11 mm and b(91 mm) = 661.82 mm show asymmetric shifts. A linear error estimate is therefore limited. Many decimal places must not hide measurement uncertainty near the focal plane.[1]
A useful measurement check uses several(g,b) pairs and tests for consistent . If image position and size behave unexpectedly, first inspect lens reference position, screen location, signs and the focus criterion. Blur can also arise from aberration or diffraction; changing the reciprocal arithmetic cannot explain those effects.[1]
View diagram: image distance near the focal length
Image distance on both sides of the focal plane
Free with a Quanta account. Your download stays ready after registration.
An imaging equation does not determine all image quality
The simple relation requires a thin lens or appropriate principal-plane treatment, with paraxial rays. Large apertures, strong off-axis angles and compound objectives need more detailed models. Chromatic and spherical aberrations shift or spread imaging; a real broadband system does not automatically focus every color identically.[2]
The lens equation predicts geometric image position and magnification. It does not determine whether two close points are resolved: diffraction, aperture, noise and sampling matter too. A simple optical-power model helps describe corrective lenses, but actual fitting also depends on the eye, vertex distance and additional optical parameters. A calculation alone is not a prescription. The Rayleigh criterion for a circular aperture describes a particular diffraction scale for two point sources; it determines neither geometric image position nor, by itself, the quality of a real camera system.[1][3]
Five exercises from a camera to a virtual object
Calculate · Foundation
Converging lens f=50 mm, object g=200 mm: find b and m.
Show hint
Use .
Learning goal: Find image distance and signed magnification of a converging lens.
Show solution and calculation
Approach: use millimetres consistently and keep the positive focal length.
The lens equation gives b≈66.6667 mm.
Magnification indicates a reduced inverted real image.
Check: . Since g=4f, b lies between f and 2f as expected.
Calculate · Application
Diverging lens f=−100 mm, real object g=250 mm: determine b and m.
Show hint
Keep negative f in the equation.
Learning goal: Use negative focal length to find a virtual image and its magnification.
Show solution and calculation
Approach: retain the negative focal length of the diverging lens.
The result is b≈−71.4286 mm and : virtual, upright and reduced.
Optical power is −10 diopters.
Check: inverse image distance plus inverse object distance equals negative inverse focal length; positive b would not fit this real object.
Transfer · Challenge
An already converging bundle would meet 50 mm beyond a diverging lens: g=−50 mm, f=−100 mm. Where is the image?
Show hint
A virtual object has .
Learning goal: Handle a virtual object consistently for a diverging lens.
Show solution and calculation
Approach: already converging input means a virtual object, so g=−50 mm.
With f=−100 mm, inverse image distance is positive and b=+100 mm.
A real image forms despite the diverging lens.
Check: . The input converges strongly enough; the lens moves its intersection farther downstream.
Interpret · Application
A real object before a thin converging lens is moved from g=150 mm to g=75 mm. Focal length is +100 mm and both sides have the same medium. Find image distance and magnification for each position using . Which position permits projection onto a screen, and where is the other image?
Show hint
Solve for b at each object distance. Its sign identifies image side in this model; the sign of m identifies orientation.
Learning goal: Understand the change from real to virtual image as object distance crosses focal length.
Show solution and calculation
Approach: solve the thin-lens equation separately for both positions.
At 150 mm, b=+300 mm and m=−2: a real inverted image on the outgoing side.
At 75 mm, b=−300 mm and m=+4: a virtual upright image on the incident side.
Only the first can be directly projected onto a screen.
Check: image distance diverges as g passes through f rather than passing continuously through zero.
Error analysis · Application
A thin diverging lens has f=−80 mm and a real object at g=+120 mm. A solution replaces f by its magnitude and finds b=+240 mm. Correct image distance and magnification. Substitute into the original thin-lens equation to show why the positive image distance does not describe this lens.
Show hint
The focal-length sign carries physical information about lens type. It cannot be made positive without changing the model.
Learning goal: Use a diverging lens’s negative focal length consistently.
Show solution and calculation
Approach: retain the given negative focal length.
This gives b=−48 mm and m=+0.40: a reduced upright virtual image on the incident side.
Check: inverse object and image distances sum to . Using +240 mm would instead yield , describing a converging lens rather than the specified diverging one.
What to take away
Set the signs and solve for image distance first. Then magnification’s sign and magnitude determine orientation and size. Negative b means a virtual image, not a negative distance magnitude. At the ideal image is at infinity, and nearby small changes strongly move it. Geometric image position and actual detail resolution are separate questions.[1][2]
Sources for this explanation
Quanta · Updated October 1, 2026
- OpenStax University Physics3 §2.4: thin lenses and signed magnification
- MIT2.71 Lecture7: geometrical optics, cardinal planes and optical systems
- OpenStax University Physics3 §4.5: Circular Apertures and Resolution
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 3 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An internal human subject review is documented for an earlier release of this page. That confirmation does not apply automatically to the revised explanation and new exercises.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Clarified the sign convention and thin paraxial model directly; exposed existing image cases, rearrangements and sensitivity, with relevant refraction and diffraction links.
- Introduced sign convention before calculation and explained the derivation; added inverse projection design, image-distance curves and a summary; clarified exercise checks.
- Added prerequisites and model assumptions; clarified derivation steps and arithmetic checks; included an additional original example, diagram and summary.
Cite this reference page
Quanta. Thin Lens Equation. Updated October 1, 2026. https://quanta-study.de/en/formula-sheet/linsengleichung
When citing a specific scientific statement, also cite the specialist source linked to that statement.