Convex Lens Ray Tracing

An interactive ray diagram for a thin convex lens. Adjust the focal length, object distance, and object height to see how the three principal rays locate the image, and compare with the lens equation.

Convex Lens Ray Tracing

Object Distance (a)
Focal Length (f)
Image Distance (b)
Magnification (m)
Lens Equation
1/a + 1/b = 1/f
1/a
1/f
1/b = 1/f − 1/a
∴ b =