Camera Simulator

Lessons 1 · How a camera works

Aperture and depth of field

Lesson 3 of 187 min readLight, background blur and why f/16 can look softer.

The aperture is the adjustable opening inside the lens, made of overlapping blades. Its size is written as an f-number: the focal length divided by the diameter of the opening. A 50 mm lens at f/2 has a 25 mm opening; at f/8 it is about 6 mm.

That is why a smaller f-number means a bigger hole. It catches beginners out, so it is worth saying twice: f/1.8 is wide open, f/16 is a pinhole.

f/1.8f/2.8f/4f/5.6f/8f/11f/16
Each full stop halves the area of the opening, and so halves the light.

Aperture does three things

  • Light. Each full stop (f/2.8 → f/4 → f/5.6) halves the area of the opening, so half as much light gets through.
  • Depth of field. A wide opening keeps only a thin slice of the scene sharp and blurs everything in front of and behind it. A narrow opening keeps much more sharp.
  • Diffraction. Very small openings spread light out and soften fine detail everywhere in the picture. On the simulated full-frame sensor this starts to show around f/16.
Aperture priority. You pick the aperture, the camera picks the shutter speed.

Try this: Take a photo at f/1.8, then drag the aperture to f/11 and take another. Watch the shutter speed: the camera slows it down to keep the brightness the same.

Aperture priority. You pick the aperture, the camera picks the shutter speed.
Marble bust sharp in front of a softly blurred plaza
f/1.8, 1/8000 s, ISO 100: the background goes soft.
The same bust with the plaza behind it almost sharp
f/11, 1/200 s, ISO 100: same brightness, far more in focus.

35 mm lens, focused on the bust about 2 m away. In aperture priority the camera slowed the shutter to pay for the smaller opening.

Depth of field in numbers

Depth of field is the range of distances that look sharp. Here it is for a 50 mm lens on full frame, focused on a person 3 m away:

ApertureOpeningSharp fromtoDepthDistant background
f/1.827.8 mm2.83 m3.20 m0.37 mblurry
f/2.817.9 mm2.74 m3.31 m0.58 mblurry
f/412.5 mm2.64 m3.47 m0.83 msoft
f/5.68.9 mm2.52 m3.70 m1.18 msoft
f/86.3 mm2.36 m4.12 m1.76 msoft
f/114.5 mm2.18 m4.79 m2.60 mslightly soft
f/16 *3.1 mm1.94 m6.56 m4.62 mslightly soft
f/22 *2.3 mm1.72 m11.83 m10.11 mslightly soft

"Sharp" means a blur smaller than 29 µm on the sensor, the usual limit for a full-frame print viewed at normal distance. * Diffraction starts to soften detail on this 6.0 µm-pixel sensor (the blur spot at f/22 is 30 µm wide).

Three things to notice. The depth roughly doubles every two stops. There is always more sharpness behind the focus point than in front of it. And at f/16 and f/22 the sharp zone stretches over many metres, but the whole picture turns slightly soft.

See the sharp zone grow

Focus peaking outlines the parts of the picture that are in focus. Close the aperture and watch the outlines spread forward and back from the focus point.

70 mm at f/2.8, focused on the near tables.

Try this: Turn on focus peaking. The coloured outlines show what is sharp. Close the aperture step by step and watch the sharp zone grow in front of and behind the focus point.

70 mm at f/2.8, focused on the near tables.

Which aperture to use

You wantTryWhy
One person, soft backgroundf/1.8 to f/2.8Thin depth of field separates the subject.
Two or three peoplef/4 to f/5.6Enough depth for everyone's face.
Street, travel, everydayf/5.6 to f/8Most lenses are at their sharpest here.
Landscape, front to back sharpf/8 to f/11Deep focus before diffraction sets in.
Low lightThe widest you haveEvery stop of aperture is a stop less ISO.