Camera lenses and focal length

How the focal length of a lens sets the size of the image and the field of view.

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

A camera lens forms an image of a distant scene on its image plane. Light from one point of the scene arrives as a parallel beam, at an angle to the axis that depends on where the point is: its field angle. The lens brings each beam to a point in its focal plane, and where that point is depends on the focal length.

In this lesson you will:

Each step uses an ideal (paraxial) lens, which bends every ray perfectly, so the only thing that changes is the focal length. Two beams 10 mm wide arrive: one along the axis and one tilted by 2°. The image plane is at the focal plane.

Step 1. A 50 mm lens

2026-11-30T00:35:28.587532 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 70 80 90 100 110 120 130 140 150 z (mm) −7.5 −5.0 −2.5 0.0 2.5 5.0 7.5 y (mm) image

On the bench is an ideal lens of focal length 50 mm, with the image plane at its focus.

The chief ray of a beam is its central ray; the tilted beam's is drawn in red. It passes straight through the centre of the lens without being bent, and every other ray of the beam meets it in the focal plane. So the tilted beam comes to a point f × tan 2° from the axis: 1.746 mm.

2026-11-30T00:35:28.619196 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −2.0 −1.5 −1.0 −0.5 0.0 0.5 1.0 1.5 2.0 x (mm) −2.0 −1.5 −1.0 −0.5 0.0 0.5 1.0 1.5 2.0 y (mm) 0°: 0.00 mm 2°: 1.75 mm
The image plane seen face-on: where each beam lands

The lens is f/5: its focal length is five times the width of the beam. An ideal lens brings every ray to one point, but light is a wave, so the spot cannot be smaller than the Airy disk. Its radius is 0.61 λ / NA, where NA is the sine of the half-angle of the cone of light coming to the focus. Here it is 3.4 µm.

2026-11-30T00:35:28.678647 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −2 0 2 RMS 0.0 µm −3 −2 −1 0 1 2 3 y (µm) 0° −2 0 2 RMS 0.0 µm −3 −2 −1 0 1 2 3 2°
Each beam's spot, with the Airy disk dashed. The rays all meet at one point

In RayCrafter

Step 2. A 250 mm lens

2026-11-30T00:35:28.702155 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 50 100 150 200 250 300 350 z (mm) −10.0 −7.5 −5.0 −2.5 0.0 2.5 5.0 7.5 10.0 y (mm) image

Now the lens has a focal length of 250 mm, five times longer. Everything else is the same.

The tilted beam now lands 8.730 mm from the axis, five times further. The image of the whole scene is five times larger.

2026-11-30T00:35:28.720844 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −10.0 −7.5 −5.0 −2.5 0.0 2.5 5.0 7.5 10.0 x (mm) −10.0 −7.5 −5.0 −2.5 0.0 2.5 5.0 7.5 10.0 y (mm) 0°: 0.00 mm 2°: 8.73 mm
The image plane again: the same picture, on a scale five times larger

The beam is as wide as before but comes to its focus five times further away, so the lens is f/25 and the cone of light is five times narrower. The Airy disk is therefore five times larger, 16.9 µm. The image is larger, but so is the smallest detail in it.

2026-11-30T00:35:28.775707 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −10 0 10 RMS 0.0 µm −15 −10 −5 0 5 10 15 y (µm) 0° −10 0 10 RMS 0.0 µm −15 −10 −5 0 5 10 15 2°
Each beam's spot: still a point, inside a larger Airy disk

Step 3. Comparing the two

2026-11-30T00:35:28.795453 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 50 100 150 200 250 300 350 z (mm) −10.0 −7.5 −5.0 −2.5 0.0 2.5 5.0 7.5 10.0 y (mm) image

The two designs, the 50 mm lens first, drawn to the same scale:

1. A 50 mm lens 2026-11-30T00:35:28.819436 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 50 100 150 200 250 300 350 z (mm) −10.0 −7.5 −5.0 −2.5 0.0 2.5 5.0 7.5 10.0 y (mm) image
2. A 250 mm lens 2026-11-30T00:35:28.831586 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 50 100 150 200 250 300 350 z (mm) −10.0 −7.5 −5.0 −2.5 0.0 2.5 5.0 7.5 10.0 y (mm) image
The ray diagrams
1. A 50 mm lens 2026-11-30T00:35:28.855854 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −10.0 −7.5 −5.0 −2.5 0.0 2.5 5.0 7.5 10.0 x (mm) −10.0 −7.5 −5.0 −2.5 0.0 2.5 5.0 7.5 10.0 y (mm) 0°: 0.00 mm 2°: 1.75 mm
2. A 250 mm lens 2026-11-30T00:35:28.870285 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −10.0 −7.5 −5.0 −2.5 0.0 2.5 5.0 7.5 10.0 x (mm) −10.0 −7.5 −5.0 −2.5 0.0 2.5 5.0 7.5 10.0 y (mm) 0°: 0.00 mm 2°: 8.73 mm
Where the beams land on the image plane
2026-11-30T00:35:28.947695 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −10 0 10 RMS 0.0 µm −15 −10 −5 0 5 10 15 1. A 50 mm lens y (µm) 0° −10 0 10 RMS 0.0 µm −15 −10 −5 0 5 10 15 2° −10 0 10 RMS 0.0 µm −15 −10 −5 0 5 10 15 2. A 250 mm lens y (µm) −10 0 10 RMS 0.0 µm −15 −10 −5 0 5 10 15
The spots and their Airy disks, on the same scale

A given area of the image plane catches only the beams that land on it. Behind the 250 mm lens, the image is five times larger, so the same area takes in much less of the scene. A longer lens sees a narrower field of view, spread over more of the image plane: it is a telephoto lens, and the shorter one is a wider-angle lens.

50 mm lens 250 mm lens
2° beam lands at 1.746 mm 8.730 mm
f-number f/5 f/25
Airy radius 3.4 µm 16.9 µm

In RayCrafter

What would happen to the f-number, and to the Airy disk, if the 250 mm lens had a beam five times wider?