Ray Matrix Calculator
Build optical systems element by element. Compute the system ABCD matrix, effective focal length, back and front focal distances, and trace rays through the system.
The ABCD (ray transfer) matrix method traces paraxial rays through optical systems by representing each element — lens, free-space propagation, mirror, interface — as a 2×2 matrix. Multiplying element matrices in order yields the system matrix, from which the effective focal length, principal plane positions, and back/front focal distances can be read directly. This tool builds the system matrix element by element and traces input rays through the cascade, reporting the output ray height and angle at each stage. It handles lenses, free space, flat and curved interfaces, and mirror reflections. Use this for multi-element system design, beam relay layout, and quick verification of paraxial ray paths before moving to full ray-trace software.