Home / Optics & Waves / Lens Ray Diagram

Lens Ray Diagram

ICSECBSE
Image distance v: 0 cm Magnification: 0 —

The physics

This diagram uses the standard three principal rays and the Cartesian sign convention. Real, inverted images form where refracted rays actually cross (solid lines only); virtual images form where rays only appear to diverge from — shown with dashed backward extensions.

Lens formula: 1/v − 1/u = 1/f  (u negative for a real object, f positive for convex, negative for concave)
Magnification: m = v/u = height of image / height of object

All three rays in this diagram are drawn from the actual computed image position — they aren't pre-set illustrations, so you can verify for yourself that all three genuinely meet (or their extensions meet) at exactly the same point for any object distance and focal length you choose.

Exam tip: a single concave lens with a real object always produces a virtual, erect, diminished image — no exception, regardless of object distance. Only a convex lens can produce all combinations (real/virtual, magnified/diminished) depending on where the object sits relative to F and 2F.

Sample data: image formed by a convex lens of focal length 10 cm

1/v − 1/u = 1/f and m = v/u, with the object on the left (u negative).

Object distance uImage distance vMagnification mImage
−30 cm+15.0 cm−0.50real, inverted, diminished
−20 cm+20.0 cm−1.00real, inverted, same size
−15 cm+30.0 cm−2.00real, inverted, magnified
−10 cmat infinity——
−5 cm−10.0 cm+2.00virtual, erect, magnified

Conditions: thin convex lens, f = +10 cm, real object.

Notice: at u = −20 cm (twice the focal length) the image is real, inverted and exactly the same size. Move the object inside the focal length and the image becomes virtual, erect and magnified (m = +2), which is how a simple magnifying glass works. At u = −10 cm the rays come out parallel and no image forms at a finite distance.

Quick answers

What is the lens formula?
1/v − 1/u = 1/f, with distances measured from the optical centre. The magnification is m = v/u. Note the minus sign, which differs from the mirror formula.
What image does a convex lens form when the object is inside the focal length?
A virtual, erect and magnified image on the same side as the object. This is how a magnifying glass works.
What is the power of a lens?
P = 1/f, with f in metres. The unit is the dioptre (D). A convex lens has positive power and a concave lens has negative power, so a lens of f = −25 cm has a power of −4 D.
What is the lens maker's formula?
1/f = (n − 1)(1/R₁ − 1/R₂), where n is the refractive index of the lens material and R₁, R₂ are the radii of curvature of its two faces.

Read the full guide: Lens formula and image formation: full guide with numericals

🔍 Explore More!

Think About It 1. 📷 A camera lens can create a real image that shows up sharp on the film or sensor behind it, but the image you see in a magnifying glass is never like that — you can't project it onto a card. Why do some lenses create images you can "catch" on a screen, and others don't?

A real image forms when light rays actually converge and cross at a specific point after passing through the lens — since light genuinely arrives there, placing a screen at that exact point catches a visible image. A virtual image (like in a magnifying glass, when the object is closer than the focal point) forms only where light rays APPEAR to be coming from, when traced backward — no light actually converges there, so there's nothing for a screen to catch, even though your eye and brain perceive an image just fine by following those backward-traced rays.

Think About It 2. 🔍 Moving a magnifying glass closer to or farther from a small object changes how magnified it looks, and at one specific distance the image actually flips upside down and becomes tiny. What's happening at that specific transition point?

A convex lens's behavior depends entirely on exactly where the object sits relative to the lens's focal point (F). When the object is CLOSER to the lens than F, you get a magnified, upright, virtual image — the classic "magnifying glass" behavior. Once the object moves FARTHER than F, the image suddenly becomes real and inverted (upside-down) instead — the same lens, just crossing this one specific distance threshold, produces a completely different type of image, which is exactly the flip you're noticing.

Think About It 3. 👓 A concave lens (thinner in the middle, thicker at the edges) ALWAYS produces a smaller, upright, virtual image, no matter how close or far the object is placed. Why doesn't a concave lens have the same "flip point" behavior a convex lens has?

A concave lens spreads light rays apart (diverges them) rather than bringing them together (converging them) the way a convex lens does — light rays passing through a concave lens never actually cross and meet on the far side, no matter where the object is placed, so a real image is simply never possible with a single concave lens. This is precisely why concave lenses, used for correcting nearsightedness, always show a smaller, upright view — a genuinely consistent, predictable behavior unlike the convex lens's more varied behavior.

Think About It 4. 📐 Ray diagrams for lenses always draw at least two specific "easy" rays (like one going straight through the lens's center, another traveling parallel to the axis before bending through the focal point) rather than just any random ray. Why do textbooks specifically pick these particular rays instead of random ones?

While EVERY ray from the object technically bends through the lens and ends up converging at the same image point, most rays require complicated calculations to trace precisely. These two or three "easy" rays are specifically chosen because their behavior is simple and predictable by definition — a ray through the exact center passes straight through undeviated, and a ray parallel to the axis is defined to pass through the focal point after refracting. Using these specific, easy-to-trace rays lets you find the image position accurately with simple geometry, without needing complex calculations for a random ray's exact bending angle.

Think About It 5. 🎬 Old-style slide projectors and movie projectors use a convex lens to project a large, clear image onto a screen — and the image on the screen always appears upside-down inside the projector's own internal optics before it gets flipped right-side up. Why does a projector's lens naturally produce an inverted image in the first place?

A projector deliberately places its slide or film FARTHER from the lens than the focal point, specifically to get a real, magnified image on the distant screen — and as covered in Puzzle 2, any real image formed by a single convex lens (object beyond F) is always inverted, without exception. This is precisely why old film projectors and slide projectors needed the film loaded upside-down in the first place — the lens's natural inversion then flips it back to appear correctly right-side-up on the screen.

Try It 1 (Class 9-10 level). ✏️ An object is placed 30cm from a convex lens with focal length 15cm. Using the lens formula, find the image distance.

1/v − 1/u = 1/f, with u = −30cm (object distance, negative by convention), f = +15cm
1/v = 1/f + 1/u = 1/15 + 1/(−30) = 1/30
v = +30cm (positive means a real image, formed on the opposite side)

Try It 2 (Class 10 level). ✏️ Using the same result, find the magnification (m = v/u), and describe the image (magnified/diminished, erect/inverted).

m = v/u = 30/(−30) = −1
Magnitude 1 means same size as the object; the negative sign means inverted — this specific case (object at exactly 2F) always gives a same-size, inverted, real image

Try It 3 (Class 9 level). ✏️ True or False: A concave lens can sometimes produce a magnified image if the object is placed close enough to it.

False — a concave lens always produces a diminished (smaller), virtual, upright image for a real object, regardless of distance; it can never magnify

Try It 4 (Class 10 level). ✏️ An object is placed exactly at the focal point (u = f) of a convex lens. What does the lens formula predict for the image distance?

1/v = 1/f + 1/u = 1/f + 1/(−f) = 0
v = infinity — the emerging rays become perfectly parallel and never converge at any finite distance, exactly why a bulb placed at a convex lens's focal point produces a parallel search-light-style beam

Try It 5 (Class 10 level). ✏️ A convex lens has focal length 20cm. An object is placed 10cm away (closer than F). Find the image distance and describe whether it's real or virtual.

1/v = 1/f + 1/u = 1/20 + 1/(−10) = −1/20
v = −20cm — negative means a virtual image, formed on the same side as the object, exactly the "magnifying glass" case from Puzzle 2
🔎
c. 1000 CE

Early glass "reading stones" — simple convex lens shapes — were used to magnify text, though the precise optical theory behind why they worked wasn't yet understood; they were valued purely for their practical, observed effect.

🔬
1604

Johannes Kepler published one of the first mathematically rigorous treatments of how lenses form images, correctly describing real and virtual images and laying essential groundwork for the ray-tracing methods still taught today.

🔭
1608–1609

Building on Kepler's optical understanding, Galileo Galilei improved and turned the newly-invented telescope toward the sky — combining a convex and concave lens in careful combination, directly applying the same lens principles explored in this simulation.

🎬
Late 1800s

Early slide and film projectors put convex lens image formation to dramatic public use, projecting large, bright images onto screens for the first time — directly built on understanding exactly when and why a convex lens produces a real, inverted image.

📱
Today

Every smartphone camera contains multiple tiny precision-shaped lenses working together, still governed by exactly the same ray-tracing principles Kepler first worked out over four centuries ago — modern manufacturing has changed dramatically, but the underlying optics has not.