First some definitions are in order. In photography, depth-of-field (DOF) is loosely defined as the region in focus for a given photograph.
The main factors affecting DOF are the size of the camera sensor, the
lens focal length and aperture, and the distance to the subject. Here's how this works. With a given camera, if what you want is to get as shallow DOF as possible (i.e.
a blurred background as commonly seen in portraits) then you want to:
- Get closer to your subject
- Use a wider aperture (e.g. f/2 is better than f/8)
- Use a long lens (e.g. 100 mm is better than 24mm)