Not sure which lesson to do first? Find your level and get a plan →

Physics · Optics & Light · Grade 9-12

Ray Diagram

A ray diagram is a drawing that uses a few principal rays — typically the parallel-through-focus ray and the center ray — to show where a mirror or lens forms an image.


Quick Answer

A ray diagram is a drawing that uses a few principal rays — typically the parallel-through-focus ray and the center ray — to show where a mirror or lens forms an image. Use it when you need to see, not just calculate, where an image lands and whether it is real or virtual, upright or inverted, larger or smaller. Two rays from the top of the object are enough: where they cross, or where their backward extensions cross, is the top of the image. A third ray checks the drawing.

Why This Matters

A ray diagram catches sign errors that the lens equation hides: if your numbers say the image is real but the drawn rays clearly spread apart after the lens, something is wrong. It also shows why things happen, such as why a spoon flips your face at arm's length, or why a flashlight needs its bulb at the mirror's focal point, in a way a single number cannot.

Intuitive Explanation

Every point on a candle flame sends light out in all directions, and every one of those rays that passes through a lens is bent toward the same image point. You do not need all of them. For a converging lens, three rays have paths you can draw without measuring any angle: a ray parallel to the axis bends through the far focal point F; a ray through the center of the lens goes straight on; a ray through the near focal point comes out parallel to the axis. Draw any two from the top of the candle, and where they cross is the top of the image.

Try it with f=10 cm and the candle 30 cm from the lens. The parallel ray drops through F, 10 cm past the lens; the center ray keeps the downward slope it came in with. They cross 15 cm past the lens, below the axis, at half the candle's height. So the image is real, inverted and half size, the same answer the thin-lens equation gives.

If the rays leave the lens spreading apart, they never cross on the far side. Then you extend them backwards as dashed lines until they meet; that crossing is a virtual image, on the object's side of a lens or behind a mirror. A sketch of one beam bending at a window pane is not a ray diagram in this sense: there is no image to locate, only a direction, and Snell's law or the law of reflection is all you need.

Think of it like this. Locating an image with two principal rays is like fixing a ship's position from two lighthouses: each sighting gives one line, two lines cross at one point, and a third sighting checks it. Unlike a ship, the crossing point may be virtual, found only by extending the lines backwards behind the lens or mirror.

Core idea. Two or three rays with fixed paths (parallel then through F, straight through the center, through F then parallel) are enough to locate an image: it sits where they cross, or where their backward extensions cross.


When to Use

Use a ray diagram when a question says draw, sketch or construct, or asks you to show where an image forms and what it looks like before or instead of calculating. It is also the quickest check on a lens or mirror calculation. Use the principal rays for the device you have: concave or convex mirror, converging or diverging lens. If the question wants exact distances or the magnification, use the equations of Image Formation; if there is no image, only one bounce or bend, use Reflection or Refraction.

Tip. Ask: Are you asked to locate an image by drawing two or three standard rays rather than by calculating?

How to Recognize It

Before choosing a ray diagram, check whether the task wants a drawing of rays that shows where an image lands.

  1. Must your answer be a scale drawing of rays leaving the object?

    Yes means a ray diagram. If a number for the image distance is enough, the equation from Lenses or Mirrors is quicker.

  2. Can you start rays from the top of the object, one parallel to the axis and one through the center?

    Yes: those principal rays follow fixed rules, and where they meet is the top of the image. A single ray at a flat surface needs only Reflection or Refraction.

  3. Do the outgoing rays spread apart instead of meeting?

    Then extend them backward as dashed lines; where the extensions meet is a virtual image. Saying whether an image is virtual, without locating it, is Image Formation.

  4. Do you need to see how the image changes as the object moves past 2F and F?

    Ray diagrams show this best, with one drawing per position. Turning those drawings into exact distances uses the equation from Lenses.

Ray Diagram vs Image Formation vs Lenses vs Reflection

A ray diagram is one way to answer image questions about lenses and mirrors, so the drawing and the physics get confused. Ask whether you need a picture of rays, a description of the image, a calculation for the lens, or one ray's angle.

Ray Diagram

Meaning
A ray diagram is a drawing that traces a few principal rays to find where an image forms.
Key test
The answer is a drawing; the crossing point locates the image.
Example
For a concave mirror, the ray through F reflects parallel to the axis, and the ray to the mirror's center reflects at an equal angle.

Image Formation

Meaning
Image formation is the description of an image's type, orientation and size.
Key test
Asks what the image is like, not how to draw it.
Formula
m=hiho
Example
An image at di=−12 cm with m=+3 is virtual, upright and three times larger.

Lenses

Meaning
Lenses refract light through curved surfaces, and the thin-lens equation gives image positions exactly.
Key test
Gives numbers from an equation, with no drawing needed.
Formula
di=f dodo−f
Example
With f=20 cm and do=60 cm, the image is at di=30 cm.

Reflection

Meaning
Reflection describes how one ray bounces off a surface at an angle equal to its arrival angle.
Key test
A single ray at a single surface; no image needed.
Formula
θi=θr
Example
Two flat mirrors at 90∘ send a ray back parallel to the way it came.

Formula & Notation

How to read it: Common labels include principal axis, focal point F, object distance do, and image distance di.

Worked Examples

Example 1 — Object at twice the focal length

Easy

A converging lens has f=10 cm. An arrow 3.0 cm tall stands 20 cm in front of it. Place the lens at x=0 with the axis along y=0 (distances in cm, object at x=−20). Use two principal rays to locate the image of the arrow's tip.
Show the steps and the answer
  1. Ray 1: from the tip (−20,3) parallel to the axis to (0,3), then through the far focus (10,0): the line y=3−0.3x.

    A converging lens sends every ray that arrives parallel to the axis through the focal point on the far side.

  2. Ray 2: from (−20,3) straight through the center (0,0): the line y=−0.15x.

    At the center the two faces of a thin lens are parallel, so this ray passes through without bending.

  3. Find the crossing: 3−0.3x=−0.15x gives x=20, y=−3.

    Both rays left the same tip, so the point where they meet is the image of the tip.

  4. Check with ray 3: from (−20,3) through the near focus (−10,0) reaches the lens at y=−3, then runs parallel to the axis through (20,−3).

    A third ray through the same point confirms the drawing; 110−120=120 agrees too.

Answer: The image of the tip is at (20,−3): 20 cm past the lens, 3.0 cm tall, real and inverted.

Takeaway: With the object at 2F, the rays cross at 2F on the other side: same size, upside down.

Example 2 — Object inside the focal point: extend the rays back

Standard

The same lens (f=10 cm) now has a 2.0 cm arrow only 5.0 cm in front of it, tip at (−5,2). Locate the image.
Show the steps and the answer
  1. Ray 1: parallel to (0,2), then through (10,0): y=2−0.2x. Ray 2: through the center: y=−0.4x.

    These are the same two rules as before; only the object has moved.

  2. Compare the rays to the right of the lens: at x=10, ray 1 is at y=0 and ray 2 is at y=−4.

    The gap between them grows with distance, so they never meet on the far side and no real image forms.

  3. Extend both lines backwards (dashed): 2−0.2x=−0.4x gives x=−10, y=4.

    To an eye on the far side the rays seem to come from where their extensions meet, which is a virtual image.

  4. Check with the equation: 1di=110−15=−110, so di=−10 cm and m=+2.

    The negative distance and doubled height match the dashed crossing.

Answer: A virtual, upright image 4.0 cm tall, 10 cm from the lens on the object's side.

Takeaway: When the rays diverge after the lens, extend them backwards: their crossing is a virtual image, upright and on the object's side.

Example 3 — Find the mistake: a diverging lens drawn like a converging one

Application

A diverging lens has focal length −10 cm. A 4.0 cm arrow stands 15 cm in front of it, tip at (−15,4). Lee bends the parallel ray through the far focal point (10,0), finds it crossing the center ray at (30,−8), and writes: "real, inverted image 30 cm past the lens, 8.0 cm tall." Find the mistake and correct it.
Show the steps and the answer
  1. Fix ray 1: a diverging lens bends the parallel ray away from the axis, along the line from the near focus (−10,0) through (0,4): y=4+0.4x.

    Lee drew the converging-lens rule; a diverging lens makes parallel rays spread as if they came from the focal point on the incoming side.

  2. Keep ray 2 through the center: y=−415x.

    The center rule is the same for both kinds of thin lens.

  3. The rays now spread apart to the right, so extend them back: 4+0.4x=−415x gives x=−6, y=1.6.

    Diverging rays never meet on the far side; their dashed extensions locate the image.

  4. Check: 1di=−110−115=−16, so di=−6 cm and m=615=0.4.

    Lee's answer, di=+30 cm, is what a converging lens with f=+10 cm would give.

Answer: A virtual, upright image 1.6 cm tall, 6.0 cm from the lens on the object's side.

Takeaway: Check which way the lens bends before drawing: a diverging lens's parallel ray heads away from the axis, lined up with the near focal point.

Where You'll See It

  • Predicting where a camera image lands

    Before building a camera or telescope, you can draw two or three principal rays through the lens to find exactly where and how big the image will be, without testing every ray.

  • Designing a flashlight reflector

    A ray diagram shows that placing the bulb at the focal point of a concave mirror sends rays out parallel, producing a tight beam instead of a spreading glow.

  • Figuring out why your reflection in a spoon flips

    Tracing principal rays off the concave inside of a spoon shows the rays cross, which is why your face appears upside-down when held far from the spoon.

Common Mistakes

  1. The slip: You must draw every ray of light to find the image.

    Why it's tempting: Light really does leave the object in all directions, so all rays seem needed.

    Instead: Two or three principal rays (parallel-through-focus, through-center, and through/from focus) are enough; the image forms where they intersect.

  2. The slip: For a virtual image you just stop the rays at the mirror or lens.

    Why it's tempting: The real rays don't actually meet behind the surface, so it's tempting to leave it.

    Instead: You extend the outgoing rays backward as dashed lines until they appear to meet; that intersection point locates the virtual image.

  3. The slip: Reflected and refracted rays can be drawn in any plausible direction.

    Why it's tempting: The picture looks reasonable even when the angles are arbitrary.

    Instead: Each ray must follow a rule: the law of reflection (angle in = angle out from the normal) or the principal-ray rules for the lens/mirror. Wrong directions put the image in the wrong place.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. An object stands at 20 cm from a converging lens with f=10 cm (that is, at 2F). Where do the principal rays cross, and what is the image like?

    Hint: Draw the ray parallel to the axis and the ray through the centre of the lens.

  2. An object is 15 cm from a converging lens with f=10 cm. A ray leaves the object's top parallel to the axis. Where does it go after the lens, and where is the image?

    Hint: A parallel ray refracts through one particular point. Check the image position with the lens equation.

  3. A concave mirror has f=10 cm, so C is at 20 cm. An object is at 30 cm. How does a ray aimed through C reflect, and where do the rays meet?

    Hint: A ray through C hits the mirror along a radius, so it meets the surface at 90°.

  4. A diverging lens has f=−10 cm and an object is 10 cm away. A ray from the top travels parallel to the axis. How is it drawn after the lens, and where is the image?

    Hint: It bends outward. Extend it backward toward the object's side.

  5. A problem asks for the image distance, to 0.1 cm, of an object 20 cm from a concave mirror with f=8 cm. Ray diagram or the mirror equation?

    Hint: Can a hand sketch give an answer to 0.1 cm?

  6. An object is 5 cm from a converging lens with f=10 cm. A student draws the rays and says: "They spread apart and never cross, so there is no image." Correct the student.

    Hint: Rays that spread apart can still seem to come from one point.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Do the principal rays have to be the light that actually forms the image?

No. The principal rays are chosen because their paths are easy to draw, not because they are special. Every ray from the tip of the object that passes through the lens meets at the same image point, so any two of them find it. A principal ray may even miss a small lens on a real drawing; you can extend the lens line and still use the ray, since it shows where all the others go.

Why is the lens drawn as a straight line instead of its real curved shape?

For a thin lens the bending really happens at two surfaces, but they are so close together that you can treat it as a single bend at the middle line. Drawing one vertical line keeps the diagram clean and the measurements accurate. Arrowheads pointing outward mark a converging lens, and arrowheads pointing inward mark a diverging one. For thick lenses or several lenses together, this shortcut stops working and the real surfaces must be drawn.

How accurate is a ray diagram compared with the lens equation?

On squared paper with a sharp pencil, a ray diagram usually lands within a few percent of the equation's answer, which is good enough to check a calculation or spot a sign error. It is weakest when the object is near the focal point, because the rays then meet at a very shallow angle and a tiny drawing error moves the crossing a long way. In that case trust the equation and use the diagram for the type of image.

Learning Path

← Before

MirrorsLenses
Ray Diagram

You are here

Next →

Image Formation
You need Mirrors and Lenses first: what a focal point is, and that concave mirrors and converging lenses bring parallel rays together while convex mirrors and diverging lenses spread them. A ray diagram turns those facts into three standard rays you can draw to locate any image. Next, Image Formation names and measures the image the diagram reveals, using m=−di/do.

See Also