rankgrind.com logo
rankgrind.com
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

1v−1u=1f\dfrac{1}{v} - \dfrac{1}{u} = \dfrac{1}{f}

Linear magnification

m=vu=h′hm = \dfrac{v}{u} = \dfrac{h'}{h}

Sign convention (Cartesian)

Distances measured from lens; against light<0,along light>0\text{Distances measured from lens; against light} < 0, \text{along light} > 0

Key ideas to remember

Related topics

OpticsWave OpticsRefraction

Ready to test it?

Solve optics problems on RankGrind

Practice problems
All simulators