Loading…

Compound Lens Ray Tracer

Physics Optics • Lenses and Optical Instruments

View all topics

Trace principal-style rays through a sequence of thin lenses and spherical mirrors, compute successive image positions, and preview how the final image forms along a multi-element optical bench.

Initial object
Optical sequence
Write one optical element per line.
Supported forms:
lens type=converging f=10 sep=20
lens type=diverging f=15 sep=12
mirror type=concave f=12 sep=18
mirror type=convex f=8
Use positive focal-length magnitudes in the text. The calculator assigns the sign automatically from the type.
This is a first-order paraxial optical-bench tracer. For each stage it computes the image from \(\frac{1}{f}=\frac{1}{d_o}+\frac{1}{d_i}\), then uses that image as the object for the next element. Lenses keep the propagation direction; mirrors reverse it.
Animation
Ready
Ready
Animated multi-element ray diagram
Three seed rays start from the top of the object: a parallel ray, a focal-style ray, and a center/vertex ray. They are then propagated successively through every lens and mirror in the sequence.
Drag to pan. Use the mouse wheel to zoom. Fit view restores the default framing.
Enter values and click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

Why does the calculator solve the system stage by stage?

Because each element forms an image that becomes the object for the next element. This is the clearest way to analyze a compound paraxial optical system.

Why do mirrors reverse the propagation direction?

Because a mirror reflects the light back instead of transmitting it onward. In the optical bench model, that means the next element in the sequence is placed along the reflected path.

Are these exact principal rays for the whole system?

Not in the strict single-element textbook sense. They are principal-style seed rays chosen at the object and then propagated successively through the compound system using first-order paraxial optics.

Is this a full thick-lens or matrix-optics solver?

No. This calculator is a thin-element paraxial tracer intended for educational geometric optics. It does not include thick-lens principal planes, exact surface refraction, or full matrix-optics design.