CalcWorldHub
Free online calculator · no signup

Paraxial lens and space ABCD system calculator

Trace a paraxial ray through an ordered sequence of free-space distances and ideal thin lenses.

4,000 tools
Paraxial lens and space ABCD system calculator — Ordered element types, comma separated, Matching element values in metres, Initial ray height (mm) and calculation method
Paraxial lens and space ABCD system calculator: inputs and calculation method.

How to use this calculator

Trace a paraxial ray through an ordered sequence of free-space distances and ideal thin lenses.

  1. Enter Ordered element types, comma separated, Matching element values in metres, Initial ray height (mm), Initial small ray angle (mrad). Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Paraxial lens and space ABCD system explained

Multiply ordered free-space and thin-lens ABCD matrices to propagate an input ray and report system properties.

Final ray height-1mm
Final ray height: -1 mm in the worked scenario.

A numerical walkthrough

Ordered element types, comma separated = space, lens, space; Matching element values in metres = 0.2, 0.1, 0.2; Initial ray height (mm) = 1; Initial small ray angle (mrad) = 0.

  • Final ray height: -1 mm
  • Final paraxial angle: -10 mrad
  • System ABCD matrix: -1, 0, -10, -1
  • Effective focal length: 0.1 m

The first space leaves the parallel 1 mm-height ray unchanged. The 0.1 m lens changes its angle to −10 mrad, and the final 0.2 m space moves its height to −1 mm.

The model behind the numbers

Ray [height,angle]out = Mlast…Mfirst [height,angle]in

A space uses matrix [[1,L],[0,1]], while a thin lens uses [[1,0],[−1/f,1]]. Multiply each encountered element onto the left of the accumulated system matrix. Apply the result to initial height and small angle after converting the entered millimetres/milliradians to SI.

What to enter

types — Ordered element types, comma separated
Enter a comma-separated sequence of space and lens elements; order determines the matrix product.
v — Matching element values in metres
Enter one metre value for each listed element in the same order. Space lengths may be zero; a lens focal length may be positive or negative but not zero.
y — Initial ray height (mm)
Initial ray height (mm).
angle — Initial small ray angle (mrad)
Initial small ray angle (mrad).

Interpreting the result

Same refractive index throughout, ray angle in radians internally, and thin lenses; no aperture clipping or aberrations.

Frequently asked questions

What value does a lens use?

Its signed focal length in metres.

What value does a space use?

Its signed axial propagation distance in metres.

Which element is applied first?

The first listed element is encountered first by the ray.

How do I use the Paraxial lens and space ABCD system calculator?

Enter Ordered element types, comma separated, Matching element values in metres, Initial ray height (mm), Initial small ray angle (mrad). Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Paraxial lens and space ABCD system?

Ordered element types, comma separated = space, lens, space; Matching element values in metres = 0.2, 0.1, 0.2; Initial ray height (mm) = 1; Initial small ray angle (mrad) = 0. Final ray height: -1 mm Final paraxial angle: -10 mrad System ABCD matrix: -1, 0, -10, -1 Effective focal length: 0.1 m The first space leaves the parallel 1 mm-height ray unchanged. The 0.1 m lens changes its angle to −10 mrad, and the final 0.2 m space moves its height to −1 mm.