Physics·Optics
Ray Optics Simulator — Thin Lens
Move the object, swap between convex and concave, change the focal length. See the image form via three principal rays.
u = 180 px
v = 225 px
m = -1.25
Real, inverted
The thin-lens equation predicts where an image forms and how large it is, given an object's position and the lens's focal length. This simulator draws the three principal rays for you — the parallel-then-through-focus ray, the through-center ray, and the through-focus-then-parallel ray — and shows where they converge (or appear to diverge from) to form the image.
Drag the object left-right, or the object arrowhead up-down. Toggle between convex and concave lenses. Move the focal-length slider to see how the image changes.
Key equations
Thin lens equation
Linear magnification
Sign convention (Cartesian)
Key ideas to remember
- 1
For a real object in front of a convex lens: object beyond → real, inverted, smaller image between and .
- 2
Object at → image at infinity (rays emerge parallel).
- 3
Object between and lens → virtual, upright, magnified image on the same side as the object.
- 4
Concave lens always makes a virtual, upright, diminished image regardless of object position.
Related topics
OpticsWave OpticsRefraction
Ready to test it?
