Optics Ray Bench
Full workspace Set up lenses, mirrors, prisms and glass on an optical bench and watch the light rays bend, reflect and split as you move them. Real glass follows Snell's law with colour dispersion, so white light fans into a spectrum and rays bounce inside glass by total internal reflection. Ideal thin lenses and curved mirrors form images you can measure: where the image is, whether it is real or virtual, and how big. Export the bench as an image, the measurements as CSV, or an animation of a part moving.
- 15 parts
- Snell's law
- Dispersion & rainbows
- Total internal reflection
- Real & virtual images
- Magnification
- Screens with light profile
- PNG · SVG · PDF · CSV · GIF · MP4
- Parts
- –
- Ray paths
- –
- Image
- –
- Magnification
- –
Export
Images show the bench with its rays as you see it. Animations either move the selected part back and forth, turn it, or let the light travel out from the sources.
Using Optics Ray Bench
A bench for experimenting with light rays, lenses, mirrors and glass.
- Pick an example from the Example list, or press New for an empty bench. Click a part on the left to add it, or drag it onto the bench.
- Drag a part to move it; it snaps to half centimetres unless you hold Alt. Drag the round handle above the selected part to turn it, holding Shift for 15° steps.
- Set the part's numbers in the Part tab: focal length for thin lenses, curve radii, thickness and glass type for real lenses, apex angle for prisms, colour and number of rays for light sources.
- Add an Object (arrow) in front of a lens or curved mirror. The Images tab shows where its image forms, whether it is real or virtual, upright or inverted, and the magnification, with the lens equation worked through.
- Add a Screen to catch light: the Screens tab shows how much light lands along it and in which colours.
- Press Animate to slide the selected part back and forth and watch the image change. Export the bench as PNG, SVG or PDF, the parts and images as CSV, or an animation as GIF, MP4 or WebM.
Example
In the Converging lens example the object is 25 cm from a 10 cm lens, so the image forms 16.7 cm behind it, inverted and two thirds the size (magnification −0.67). Drag the object inside 10 cm and the image becomes virtual, upright and larger: a magnifying glass.
Questions & answers
What is the difference between a thin lens and a glass lens?
A thin lens is the ideal lens of textbooks: every ray bends exactly as the lens equation says, so images are perfectly sharp. A glass lens has real curved surfaces and is traced with Snell's law, so edge rays focus closer than central rays (spherical aberration) and colours focus at slightly different places.
Why does white light split in a prism?
Glass bends violet light a little more than red light, so the colours leave at different angles. White light is traced as seven colours, and the glass types use approximate refractive indices that change with colour.
What is total internal reflection?
When light inside glass meets the surface at a steep angle, beyond about 42° for ordinary glass, none of it can escape and it reflects completely. This is how optical fibres carry light; try the Total internal reflection example.
What do real and virtual images mean?
A real image is where rays actually meet, so a screen placed there shows it. A virtual image is where rays only appear to come from, like the image in a magnifying glass; it is shown with dashed lines.
Which way are the signs?
Distances are in centimetres. A positive focal length is a converging lens; a positive mirror radius is a concave mirror, curving towards the light. Magnification below zero means the image is upside down.
Is anything uploaded?
No. Everything runs in your browser, and the share link holds the whole bench.
Help improve this tool
Report a problem or suggest an improvement
Describe the issue without pasting private tool input. Feedback goes to our admin inbox.
