Ray Optics Simulator

Build and trace light paths with mirrors, lenses, and light sources. Download a ray diagram as PNG or SVG for a physics lesson or lab report.

Add a component

Ray diagram

FF

Drag components to move them or use the arrow keys when focused.

Draw and check a ray diagram

Use this online ray diagram maker to prepare a physics worksheet, demonstrate geometric optics in class, or check a setup before submitting a lab report. Add a single ray, parallel beam, or point source, then arrange plane mirrors, converging and diverging lenses, or a screen. The simulator traces the light paths as you drag components or adjust their settings.

Try a geometric optics experiment

  • Find the focus of a converging lens. Open Focus a parallel beam. Rays that enter parallel to the optical axis meet at the far focal point, marked F. Change the focal length or move the screen to see where the light comes together.
  • Compare the angles of incidence and reflection. Open Reflect a ray and turn on Optical guides. Measure both angles from the dashed normal at the point of reflection. They are equal for a plane mirror.
  • See how a diverging lens spreads light. Open Diverge a beam. With Optical guides on, follow the dashed backward extensions to see where the outgoing rays appear to come from. A screen placed there will not collect them at that point.

Download a figure for class or homework

Use Download to save a PNG for a lab report or slide, or an SVG for sharp scaling and further editing. The image includes the grid and optical guides if you have them turned on. Components use a two-dimensional geometric optics model with ideal thin lenses and relative distances in diagram units.