Real lenses against paraxial lenses

Paraxial lenses look perfect. Real ones are not, and a better lens does not fix everything.

To build these designs as you read, play this lesson in RayCrafter: Help ▸ Optics tutorials. All lessons

An ideal (paraxial) lens brings every parallel beam to a point, in one flat focal plane, in every colour. No real lens does all of that. In this lesson you will replace an ideal lens with three real ones of about the same focal length, and find which faults each one cures.

Every step has the same light. Beams 10 mm wide arrive on the axis, at 5° and at 10°, all centred on the front of the first lens, which is where the aperture stop is. The beam on the axis comes in three colours: blue (486 nm), yellow (588 nm) and red (656 nm). The image plane is at the best focus of the yellow beam on the axis, and the 5° and 10° beams are yellow light too, drawn green and purple to tell them apart.

Step 1. An ideal lens

2026-11-30T00:35:29.883657 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 70 80 90 100 110 120 130 140 150 z (mm) −15 −10 −5 0 5 10 15 y (mm) image

This is the standard to compare with. All the rays of each beam meet at a point, off the axis as well as on it, so the spots are smaller than the Airy disk (radius 3.6 µm), which is the limit set by diffraction. Blue, yellow and red focus at the same place.

2026-11-30T00:35:29.958948 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −4 −2 0 2 4 RMS 0.0 µm −4 −3 −2 −1 0 1 2 3 4 y (µm) 0° −4 −2 0 2 4 RMS 0.0 µm −4 −3 −2 −1 0 1 2 3 4 5° −4 −2 0 2 4 RMS 0.0 µm −4 −3 −2 −1 0 1 2 3 4 10°
The spots at 0°, 5° and 10°, with the Airy disk dashed
2026-11-30T00:35:29.990938 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −0.2 −0.1 0.0 0.1 0.2 distance from image plane (mm) −30 −20 −10 0 10 20 30 height (um) 486 nm 588 nm 656 nm
The rays near the focus, in each colour

Keep in mind one number for the colour errors to come: the focus stays sharp over about λ / NA² = 0.06 mm along the axis, the depth of focus. An error much smaller than that does not matter.

Step 2. A biconvex lens

2026-11-30T00:35:30.010825 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 80 100 120 140 160 z (mm) −15 −10 −5 0 5 10 15 y (mm) image

The ideal lens is now a single piece of glass, Thorlabs LB1471, curved the same on both sides. The spots are no longer points. Their RMS radius is 15.8 µm on the axis, 46.5 µm at 5° and 158.3 µm at 10°.

2026-11-30T00:35:30.089296 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −400 −200 0 200 400 RMS 15.8 µm −400 −300 −200 −100 0 100 200 300 400 y (µm) 0° −400 −200 0 200 400 RMS 46.5 µm −400 −300 −200 −100 0 100 200 300 400 5° −400 −200 0 200 400 RMS 158.3 µm −400 −300 −200 −100 0 100 200 300 400 10°
The biconvex lens's spots. All three panels have one scale

Spherical aberration. On the axis, rays through the edge of the lens are bent too much and cross the axis before the central ones. The edge ray misses by 18 µm. In the ray fan, which plots where each ray lands against where it crossed the beam, this is the S-shaped curve.

Colour. Glass bends blue light more than red, so the red focus is 0.75 mm further from the lens than the blue one, more than ten depths of focus. With the image plane at the yellow focus, the blue spot has an RMS radius of 43.8 µm.

2026-11-30T00:35:30.120838 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −1.0 −0.8 −0.6 −0.4 −0.2 0.0 0.2 0.4 0.6 distance from image plane (mm) −150 −100 −50 0 50 100 150 height (um) 486 nm 588 nm 656 nm
Each colour focuses in its own place

Field curvature and astigmatism. At 10° the sharpest image is not on the flat image plane. The rays spread in the plane of the diagram (the tangential fan) meet 2.28 mm in front of it, nearer the lens, and the rays spread across it (the sagittal fan) meet 1.04 mm in front of it. The surface of best focus is curved (field curvature), and there are two of them (astigmatism). Moving the image plane to suit the 10° beam alone shrinks its spot to 70.7 µm, so defocus is more than half the problem.

2026-11-30T00:35:30.140119 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −2 −1 0 1 2 focus shift from image plane (mm) 0 2 4 6 8 10 field angle (deg) tangential sagittal
Best focus against field angle

Coma. The rest of the 10° fan is lopsided: one edge ray lands 433 µm from the chief ray and the other only 114 µm, so the spot is drawn out to one side like a comet.

2026-11-30T00:35:30.215459 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −1.0 −0.5 0.0 0.5 1.0 place in the beam −400 −200 0 200 400 ray error (µm) 0° y x −1.0 −0.5 0.0 0.5 1.0 place in the beam −400 −200 0 200 400 5° y x −1.0 −0.5 0.0 0.5 1.0 place in the beam −400 −200 0 200 400 10° y x
The ray errors at each angle, all on one scale

Distortion moves points of the image without blurring them. Here it is slight: at most 0.21%.

In RayCrafter

Step 3. An achromat

2026-11-30T00:35:30.299292 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 80 100 120 140 160 z (mm) −15 −10 −5 0 5 10 15 y (mm) image

The lens is now AC254-050-A, two glasses cemented together and chosen so that their colour errors nearly cancel. Its RMS spot radius is 2.4 µm on the axis, 38.7 µm at 5° and 157.7 µm at 10°.

2026-11-30T00:35:30.371071 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −200 0 200 RMS 2.4 µm −300 −200 −100 0 100 200 300 y (µm) 0° −200 0 200 RMS 38.7 µm −300 −200 −100 0 100 200 300 5° −200 0 200 RMS 157.7 µm −300 −200 −100 0 100 200 300 10°
The achromat's spots

On the axis it is transformed. Spherical aberration is nearly gone, and the spot is now smaller than the Airy disk: the lens is diffraction limited there. The colour focal shift is 0.12 mm, a sixth of the single lens's.

2. A biconvex lens 2026-11-30T00:35:30.406671 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −1.0 −0.8 −0.6 −0.4 −0.2 0.0 0.2 0.4 0.6 distance from image plane (mm) −150 −100 −50 0 50 100 150 height (um) 486 nm 588 nm 656 nm
3. An achromat 2026-11-30T00:35:30.420987 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −1.0 −0.8 −0.6 −0.4 −0.2 0.0 0.2 0.4 0.6 distance from image plane (mm) −150 −100 −50 0 50 100 150 height (um) 486 nm 588 nm 656 nm
The single lens, then the achromat, on the same scales

Coma is nearly gone too: at 10° the two edge rays miss by 271 µm and 270 µm, equally and oppositely.

But at 10° the spot is as large as before. The tangential and sagittal foci are 2.51 mm and 1.16 mm in front of the image plane, much where the single lens put them. At its own best focus the 10° spot shrinks to 53.5 µm, better than the single lens, thanks to the loss of coma. Distortion is 0.16%.

2. A biconvex lens 2026-11-30T00:35:30.444334 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −2 −1 0 1 2 focus shift from image plane (mm) 0 2 4 6 8 10 field angle (deg) tangential sagittal
3. An achromat 2026-11-30T00:35:30.455021 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −2 −1 0 1 2 focus shift from image plane (mm) 0 2 4 6 8 10 field angle (deg) tangential sagittal
Field curvature: the single lens beside the achromat

Step 4. A Plössl pair

2026-11-30T00:35:30.475754 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 80 100 120 140 160 z (mm) −15 −10 −5 0 5 10 15 y (mm) image

Two achromats of twice the focal length (AC254-100-A), facing each other almost touching, make a Plössl pair of about 50 mm. Each surface now has less bending to do. The RMS spot radius is 5.5 µm on the axis, 41.8 µm at 5° and 145.0 µm at 10°.

2026-11-30T00:35:30.545584 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −200 0 200 RMS 5.5 µm −300 −200 −100 0 100 200 300 y (µm) 0° −200 0 200 RMS 41.8 µm −300 −200 −100 0 100 200 300 5° −200 0 200 RMS 145.0 µm −300 −200 −100 0 100 200 300 10°
The Plössl pair's spots

The colour focal shift is down to 0.04 mm, inside the depth of focus. On the axis the spot is a little larger than the single achromat's. Off the axis little has changed: the tangential and sagittal foci at 10° are 2.17 mm and 1.08 mm in front of the image plane, and the spot at its own best focus is 64.9 µm, as some coma remains. Distortion is the largest of the three, 0.53%, though still small.

3. An achromat 2026-11-30T00:35:30.581771 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −2 −1 0 1 2 focus shift from image plane (mm) 0 2 4 6 8 10 field angle (deg) tangential sagittal
4. A Plössl pair 2026-11-30T00:35:30.592300 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −2 −1 0 1 2 focus shift from image plane (mm) 0 2 4 6 8 10 field angle (deg) tangential sagittal
The achromat beside the Plössl pair

Step 5. Comparing the lenses

2026-11-30T00:35:30.613580 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 80 100 120 140 160 z (mm) −15 −10 −5 0 5 10 15 y (mm) image

All four lenses, with one scale down each column:

2026-11-30T00:35:30.812496 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −50 0 50 RMS 0.0 µm −75 −50 −25 0 25 50 75 1. An ideal lens y (µm) 0° −100 0 100 RMS 0.0 µm −100 −50 0 50 100 5° −400 −200 0 200 400 RMS 0.0 µm −400 −200 0 200 400 10° −50 0 50 RMS 15.8 µm −75 −50 −25 0 25 50 75 2. A biconvex lens y (µm) −100 0 100 RMS 46.5 µm −100 −50 0 50 100 −400 −200 0 200 400 RMS 158.3 µm −400 −200 0 200 400 −50 0 50 RMS 2.4 µm −75 −50 −25 0 25 50 75 3. An achromat y (µm) −100 0 100 RMS 38.7 µm −100 −50 0 50 100 −400 −200 0 200 400 RMS 157.7 µm −400 −200 0 200 400 −50 0 50 RMS 5.5 µm −75 −50 −25 0 25 50 75 4. A Plössl pair y (µm) −100 0 100 RMS 41.8 µm −100 −50 0 50 100 −400 −200 0 200 400 RMS 145.0 µm −400 −200 0 200 400
Spots of the four designs
1. An ideal lens 2026-11-30T00:35:30.911418 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −1.0 −0.8 −0.6 −0.4 −0.2 0.0 0.2 0.4 0.6 distance from image plane (mm) −150 −100 −50 0 50 100 150 height (um) 486 nm 588 nm 656 nm
2. A biconvex lens 2026-11-30T00:35:30.925187 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −1.0 −0.8 −0.6 −0.4 −0.2 0.0 0.2 0.4 0.6 distance from image plane (mm) −150 −100 −50 0 50 100 150 height (um) 486 nm 588 nm 656 nm
3. An achromat 2026-11-30T00:35:30.939169 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −1.0 −0.8 −0.6 −0.4 −0.2 0.0 0.2 0.4 0.6 distance from image plane (mm) −150 −100 −50 0 50 100 150 height (um) 486 nm 588 nm 656 nm
4. A Plössl pair 2026-11-30T00:35:30.952735 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −1.0 −0.8 −0.6 −0.4 −0.2 0.0 0.2 0.4 0.6 distance from image plane (mm) −150 −100 −50 0 50 100 150 height (um) 486 nm 588 nm 656 nm
The rays near the focus: ideal, single lens, achromat, Plössl
RMS spot radius Ideal Biconvex Achromat Plössl
on the axis 0.0 µm 15.8 µm 2.4 µm 5.5 µm
at 5° 0.0 µm 46.5 µm 38.7 µm 41.8 µm
at 10° 0.0 µm 158.3 µm 157.7 µm 145.0 µm
Colour focal shift 0.00 mm 0.75 mm 0.12 mm 0.04 mm

The better lenses gain mainly on the axis and in colour. At 10° they barely differ. The reason is that field curvature and astigmatism dominate there, and for a thin lens with the stop at the lens, these are set almost entirely by its focal length, and hardly at all by its shape or its glass. Swapping one 50 mm lens for a better one cannot remove them.

2. A biconvex lens 2026-11-30T00:35:31.050246 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −2 −1 0 1 2 focus shift from image plane (mm) 0 2 4 6 8 10 field angle (deg) tangential sagittal
3. An achromat 2026-11-30T00:35:31.060863 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −2 −1 0 1 2 focus shift from image plane (mm) 0 2 4 6 8 10 field angle (deg) tangential sagittal
4. A Plössl pair 2026-11-30T00:35:31.071105 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −2 −1 0 1 2 focus shift from image plane (mm) 0 2 4 6 8 10 field angle (deg) tangential sagittal
The tangential and sagittal foci hardly differ between the real lenses

Moving the stop can help where a better lens cannot. Choose the biconvex lens again (Option or Alt with the arrow keys), add an aperture 10 mm across 15 mm in front of it, right-click it and tick Aperture stop, tick Fields fill the stop in the field editor, and autofocus with the yellow beam on the axis selected. The spot on the axis is unchanged, 15.8 µm, but the spot at 5° falls to 28.8 µm and at 10° to 97.5 µm. Each beam now passes through a different part of the lens, which changes its coma and astigmatism.

Field curvature that remains needs more lenses, such as a field flattener near the image. That is why a good camera lens has many elements.

In RayCrafter