Skip to main content

What is depth of field? The secret to perfect backgrounds

Depth of field control is a key attribute of image quality that helps DSLRs and mirrorless cameras stand above pont-and-shoots. Shallow depth of field, the effect that allows you to have a tack-sharp subject against a blurry background, is such a sought-after look that smartphones try to emulate it using multiple lenses and computational photography. But what really is depth of field, and how do you control it?

Deep versus shallow depth of field

Put simply, depth of field refers to how much depth in your image is in focus. If objects both close to and far away from he camera are sharp, then you have a deep depth of field. If the foreground or background is blurred, you have a shallow depth of field. A popular analogy here is a swimming pool: At its deepest, there will be more water. Likewise, a deep depth of field means more of the image is in focus.

Recommended Videos

An example of when to use a deep depth of field could be a landscape, where the entire image is essentially the subject. This is particularly true if there are both foreground and background elements that you want to keep in focus, as in the following photo:

Hasselblad XCD 21mm Samples
Download full resolution

Shallow depth of field is useful for the opposite, when you have a single subject that you want to isolate from what is in front or behind it. This is commonly used in portraiture and can be especially useful if you have a busy, distracting background.

A wide (fast) aperture is used to separate a subject from the background. Daven Mathies/Digital Trends

The dictionary definition of depth of field is adds a word to our above description, calling it the distance between the nearest and farthest points of acceptable focus. Seems simple enough, but you may be wondering to yourself right now — what is acceptable focus?

Acceptable focus is based around the circle of confusion and some other advanced topics, but it basically comes down to what looks to be in focus to your eyes. Technically, a camera’s lens can only focus on a single plane in space, like one slice of bread in a loaf. Everything in front and behind that plane falls is out of focus, or defocused. However, our eyes can only see so much detail, including blur detail. If a point of blur is too small for our eyes to detect, then that area will appear to be in focus.

This quick video from Adorama is a great primer on the circle of confusion and acceptable focus.

The Circle of Confusion: Exploring Photography with Mark Wallace: AdoramaTV

How to control depth of field

Depth of field is determined by the relationship of the aperture (f-stop) and focal length of your lens, the distance of the subject in the photo, and the size (format) of the sensor.

Image used with permission by copyright holder

The most common way to change your depth of field is by adjusting the aperture of your lens, which determines how much light your lens allows through it and on to your camera sensor. The narrower the aperture is, the deeper the depth of field. A wide open aperture creates nicely soft backgrounds with a shallow depth of field. Here, the depth of field is sometimes so narrow that your subject’s eye could be in focus but the tips of the eyelashes may be soft. These wide apertures (like f/1.4 or f/2) draw more attention to the subject by blurring out the background, but larger or close-up subjects may not be entirely in focus.

On the other hand, a narrow aperture (such as f/11 or f/16), keeps more of the image in focus. A small aperture is often recommended for landscape photography because you may need to maintain sharpness from very close foreground elements all the way out to distant elements like skylines or sunsets.

Image used with permission by copyright holder

You may have noticed that smartphones often have bright lenses with seemingly wide apertures, like f/1.8 on the iPhone 11 Pro — and yet, the depth of field is still very long. Why? This is because sensor size also plays a role in the depth of field. The technical explanation behind this is a bit, well, technical, but the takeaway is this: The larger the sensor, the easier it is to get those nice soft backgrounds. But a large sensor requires a much bigger lens, which simply wouldn’t fit in in a phone.

Smartphones can, however, imitate a blurred background using software, the results of which can be impressively realistic in the right situations, and even allow you to change the depth of field after the fact. However, computational portrait modes still fail in many instances and don’t always work with every type of subject, such as ones that are too close or too far away.

Remember, though, that depth of field is the range of distance that appears acceptably sharp. That means if you’re shooting at your widest aperture with a large sensor camera and the background still isn’t blurry enough, there’s still more that you can do. Move the subject farther away from the background, and that background will appear softer without changing any camera settings.

In a similar manner, the closer the camera is to the subject, the softer the background appears. Macro photographs are often shot at smaller apertures, even when that soft background is desired, because the camera is so close to the subject that the depth of field is shallow regardless of aperture. Some macro photographers even use focus stacking to get more depth of field, which involves taking several exposures at different focus distances and merging them together in an editing program for a sharper shot.

Telephoto lenses also create a shallower depth of field compared to wide-angle lenses. This is one reason why telephoto lenses are often preferred for portraiture, while wide-angles are used in landscapes. Of course, like everything in photography, this is not a hard and fast rule.

Conclusion

While the math that explains depth of field is complex, the techniques to control it are not. To create a softer background, use a wider aperture (lower f-number), use a large-sensor camera, move closer to the subject, or move the subject farther from the background — or maximize the effect with a combination of all those factors. For sharper images with more details intact, use a narrower aperture, move farther from the subject, or move the subject closer to the background.

Daven Mathies
Former Digital Trends Contributor
Daven is a contributing writer to the photography section. He has been with Digital Trends since 2016 and has been writing…
Don’t miss the chance to get this 128GB SD card for less than $100
The Lexar 128GB Professional 2000x UHS-II SDXC Memory Card on a white background.

Your new purchase from camera deals will need storage for photos and videos, but you can't buy just any SD card that you see online. It's highly recommended that you invest in a high-quality storage device like the Lexar Professional 2000x UHS-II SDXC Memory Card, which you can currently get from B&H Photo Video with a $75 discount on its 128GB version that brings its price down from $170 originally to a more affordable $95. You may want to buy multiples of this SD card while it's available for less than $100, but you'll have to hurry because we're not sure how much time is remaining on this bargain.

Why you should buy the Lexar Professional 2000x UHS-II SDXC Memory Card
More devices are using microSD cards for expanded storage, but according to our guide on finding the right memory card for your digital camera, most DSLR cameras and mirrorless cameras are still using SD cards like the Lexar Professional 2000x UHS-II SDXC Memory Card. Lexar is one of the brands that we wouldn't hesitate to recommend to photographers, and this SD card's read speed of 300 MB/s and write speed of 260 MB/s will enable quick transfers and smooth shooting. Additionally, as an UHS-II card, you won't have a problem with advanced functions such as continuous shutter bursts, rapid shooting, and raw and JPEG captures.

Read more
Capture all the action with the GoPro HERO12 Black — $150 off today at Amazon
The GoPro Hero 12 Black Creator Edition set up on a small tripod on the beach.

In the moment, when you're blasting over that jump on your dirt bike, catching that killer wave, or jumping off of whatever insane cliff you've found, you don't necessarily think about capturing it all. But one of the best ways to make that happen is to strap on an action cam, like a GoPro. You can capture all of the action, and it's relatively low-lift. You wear whatever unique mount is best for the situation and the camera does all the work. There's just one issue, action cameras can be expensive especially if you're on a budget. However, today, Amazon has the GoPro HERO12 Black for $150 off. That brings it down from its normal price of $400 to $250. You can use that extra money to grab an accessory and you're good to go. GoPro HERO12 Black captures it all in 5.3K or 4K so you can rewatch the glory over and over.

 
Why buy the GoPro HERO12 Black? To capture the action, that's why
An action camera like a GoPro makes it possible to capture the action, in full detail, no matter what you're doing. You don't even have to be doing crazy stunts either. A common misconception is that they're only useful for outdoor activities, but no they work for filming just about anything. Even if you're having a barbecue, or a birthday party, or want to see what your roaming cat sees throughout the day -- a GoPro is what you need.

Read more
NASA astronaut Don Pettit talks photography from the space station
NASA astronaut Don Pettit discussing his photography from aboard the ISS.

NASA ASTRONAUT DISCUSSES PHOTOGRAPHY IN SPACE WITH NASASPACEFLIGHT.COM

NASA astronaut Don Pettit arrived at the International Space Station (ISS) in September on his fourth orbital mission in 22 years. Besides working on various science projects on the space-based facility, Pettit is also known for his keen interest in photography, and he regularly shares his impressive efforts -- including rivers, clouds, star trails, and high-speed spacecraft -- on X and Instagram.

Read more