back to top

What Is Depth of Field? (And Why It Matters in Photography)

Last updated: March 13, 2024 - 15 min read
ExpertPhotography is supported by readers. Product links on ExpertPhotography are referral links. If you use one of these and buy something, we make a little money. Need more info? See how it all works here.
Subscribe Below to Download the Article Immediately

You can also select your interests for free access to our premium training:

Your privacy is safe! We will never share your information.

Depth of field (DoF) refers to how much of your scene is (and isn’t) in focus. Photographers often manipulate the depth of field as a creative choice. They do this by selecting the right aperture for the scene they want to create.

Choosing the right depth of field affects all types of photography, from portraits to landscapes. Continue reading to understand depth of field and how to use it in your photos.

Master Composition
Intuitive Composition
Intuitive Composition
You don’t need an expensive camera or an exotic location. Excellent photos depend on composition. Easily master 50 aspects of composition with this illustrated eBook and cheat sheets. It will make photography more accessible and enjoyable!

What Is Depth of Field?

Depth of field in photography describes how much of the scene is in focus. More specifically, DoF is the distance between the closest and farthest points of the image that are in focus.

Imagine looking out into a landscape through your camera. Depth of field starts at the closest in-focus object and ends at the farthest in-focus object.

Deep vs Shallow Depth of Field

We talk about depth of field in terms of “deep” and “shallow.” Deep depth of field is also called “wide” or “large.” Shallow depth of field is also called “small” or “narrow.”

Landscape photographers often want the entire scene in focus, from the closest rock to the farthest mountain. This is a “deep” depth of field. In the landscape image below, there is a deep DoF. The waterfall in the background and the rocks in the foreground are both in focus.

Landscape with a flowing waterfall with a big depth of field and everything in focus
© Jenn Mishra 26mm, f/11, 0.5 s

Unlike landscape photographers, portrait photographers don’t necessarily want the entire scene in focus. If you’re taking street portraits, you want the person to be the main focus and an out-of-focus background to minimize distractions.

To do this, you use a shallow depth of field, meaning your foreground is in focus, but the background is not. This is also called bokeh.

In the image below, only the foreground is in focus. The background gives a sense of the environment without distracting from the foreground. The foreground flowers are in focus, while the background of the garden is blurred.

A close up of purple flowers with a narrow depth of field and blurry background
© Jenn Mishra 400mm, f/5.6, 1/400 s

A shallow depth of field is a great way to separate the foreground from the background. This technique is good when the background is uninteresting or distracts attention from the subject.

It is possible to combine a shallow and deep depth of field in one photo. The photo below cleverly uses a smartphone to capture a wide DoF in the image. Then, they photographed the image on the phone using a shallow depth of field.

I’ll show you how to achieve deep and shallow depth of field. But there’s one more thing you need to know about the focus area.

A hand holding a smartphone to naturally frame a night street photo using a wide and shallow depth of field together
© Dan Silva (Unsplash) 50mm, f/2.8, 1/125 s
 

What Is Focus Distribution?

Our eyes are drawn to the in-focus area of a photo. So, as a general rule, you should focus on the point of greatest interest. Depth of field tells you how much of the scene is in focus in front of your focal point. It also tells you how much of the background is in focus.

When you select a focal point, the focus isn’t equally distributed in front of and behind this point. Most of the time, one-third of your focus falls in front of your focal point and the other two-thirds behind it.

Let me give you an example. I will use PhotoPill’s online depth of field calculator to compute how far in front of and behind a subject will be in focus. It might help to open the calculator yourself and follow along.

First, I enter my camera—a Sony a7R4—because sensor size makes a difference to DoF. Then, I enter the focal length of my lens, which is a 50mm lens set at f/11. Lastly, I enter how far away I am from my subject, which is about 10 ft (3m).

The DoF calculator (image below) says that the nearest point in focus is 7.02 ft (2.14 m) away. The furthest point in focus is 16.4 ft (5 m).

This calculator also tells me that 2.82 ft (0.86 m) in front of the subject will be in focus (29.97%). Six feet and six inches (2 m) meters behind my subject (70.03%) will be in focus. This is roughly one-third versus the two-thirds I mentioned above.

PhotoPils depth of field calculator
Depth of field calculator from PhotoPills
 

The DoF calculator also tells me the hyperfocal distance, which is important for landscape photographers. Hyperfocal distance tells me where to focus in the scene so I can get sharp focus to infinity. (Infinity is as far as the eye can see.)

With landscapes, if you focus on the foreground, the background appears blurry. If you focus on the background, the foreground looks out of focus. To fix this, the focus needs to be somewhere in the middle between the foreground and background. This focus point is the hyperfocal distance.

Now that I’ve introduced you to the DoF calculator, play with it a bit. Enter your camera body and different focal lengths and see how the numbers change. Many factors control the depth of field. Now that you have a little theory, let’s get practical. Let me show you how to control the depth of field in your images.

How to Control the Depth of Field

Deep and shallow depth of field fall on a continuum. You can set your aperture for an entirely sharp scene or have a very slim line of focus. It’s up to you. Most photographers find a sweet spot somewhere in the middle.

Three elements change how much of the scene is in focus. These are aperture, focal length, and relative distance. Once you know how to control the depth of field, you can decide how deep or shallow you want your focus to be.

Change the Aperture

Changing your aperture (f-stop) is one of the best ways of changing the DoF. Generally, the wider the aperture, the shallower the depth of field, and vice versa. Remember that wide apertures have small f-numbers.

Diagram explaining depth of field and aperture sizes
Small numbers (left) are for shallow depth of field, and larger numbers (right) are for greater depth of field.

Take a look at the illustration below. Neither focus is right or wrong. It depends on what you want in focus.
The top highlights DoF when using an aperture of f/2.8. The girl is in focus, but the dog in the foreground and the tree in the background are blurry. The bottom shows how the focus area expands with an aperture of f/16. The dog, the girl, and the tree are in focus.

Detailed diagram explaining how aperture affects depth of field
A wide aperture (top) has a smaller focus area. A narrow aperture (bottom) has a larger focus area.

If you are taking a portrait, a very wide aperture like f/1.2 can put the eyes in focus while the nose and ears are blurry. Using the same f-stop, you can focus on the nose, but this will blur the eyes.

The portrait below has a shallow depth of field. Notice the near eye (left) is in focus, but the back eye (right) is blurred. To get both eyes and nose in focus, you would need to use a narrower aperture (larger f-number).

Close up portrait of a woman in a purple headscarf
© Jenn Mishra 50mm, f/1.8, 1/160 s

Let’s return to the online depth of field calculator. And let’s put in a couple of different f-stops to see what happens.

I enter my camera body (Sony a7R4) and 50mm lens. But this time, I’ll put f/2.8 instead of f/11. To be consistent, I’ll keep my subject’s distance at 10 ft (3 m).

Notice that the DoF in front and behind my subject changes a lot. With an aperture of f/11, my DoF was 9.4 feet (2.86 m). With f/2.8, only 2 feet (0.61 m) will be in focus. It’s a much narrower range.

Illustration comparing narrow and wide apertures and the resulting focus distances and depths of field
Charts created in PhotoPills depth of field calculator comparing the different DoF for f/11 and f/2.8
 

Generally, an f-stop of f/2.8 has a blurrier background than an f-stop of f/16. If you want to create a shallow depth of field, select a wide aperture. Select a smaller aperture if you want more of the scene in focus.

This is one reason portrait photographers prefer apertures of f/1.4 to f/5.6. And it’s why landscape photographers prefer apertures from f/11 to f/22. But that’s not all there is to it. Other details factor into how wide or narrow your depth of field is.

Change the Focal Length

The focal length of a lens also affects the DoF. Without getting too complex, a longer focal length, like 300mm, gives you a shallower depth of field than a 35mm wide-angle lens.

Let’s return to our online depth of field calculator and put in several focal lengths to see what happens.

First, I enter my camera body (Sony a7R4) and choose f/8. To be consistent, I’ll keep my subject’s distance at 10 ft (3 m). I’ll first enter 50mm as the focal length of my lens. Then, I’ll change the focal length of my lens to 200mm.

With a 50mm focal length, my focus area would start at 7.78 ft (2.34 m) and extend to 13.75 ft (4.19 m). Everything within this 6.07-ft (1.85 m) range will be in sharp focus.

But with a 200mm focal length, my focus area would start at 9.68 ft (2.95 m) and extend to 10 ft (3.05 m). This is a much shallower depth of field. Only 3.9 inches (10 cm) will be in focus!

Charts created in PhotoPills depth of field calculator comparing 50mm and 200mm focal lengths.

But there’s a bit more to it than that. A 200mm lens focused at 9.8 ft (3 m) doesn’t show you the same composition as a 50mm lens focused at the same distance.

A 200mm focal length gives you a field of view of about 10 degrees. A 50mm focal length gives you a field of view of 40 degrees. That’s a very different composition.

Compare these two images below, taken from the same vantage point. The only setting that changed was the focal length. The first image was taken at 133mm. The other image was taken at 100mm. Notice the change in blur in the waterlilies in the background.

With the wide-angle lens, you can equalize the compositions by walking closer to your subject. This makes the difference in depth of field less noticeable.

 

Change the Relative Distance

Depth of field has much to do with distance—but relative distance rather than absolute distance. Moving farther away from your subject gives a greater DoF. Moving closer gives a shallower DoF.

If you want to take advantage of a narrow depth of field, you need distance between the subject and background. For instance, if your model stands against a wall, you can’t blur the wall. The model and the wall are on the same plane of focus. So, ask your model to step towards you.

There is one instance where your DoF can be manipulated. That is by using a tilt-shift lens. By playing around with the “tilt” of a lens, you can place an entire scene in focus when using a wide aperture.

How to Get the Depth of Field You Want

Depth of field isn’t affected by just one setting on your camera. As we’ve shown, you can change three variables to affect the depth of the field. These are aperture, focal length, and relative distance.

Your sensor size also affects the depth of field. Larger sensors have a shallower DoF. So, a crop sensor camera (APS-C sensor) generally has a narrower depth of field.

I didn’t cover this variable because most photographers don’t change their camera body to control the depth of field. I mention this if you compare images with a friend who has a different camera body.

The aperture setting is the easiest way to control DoF. Generally speaking, the wider the aperture, the shallower the depth of field. But opening up the aperture lets in more light. You may need to balance the increased light with a faster shutter speed.

When you adjust one setting on your camera, you’ll need to adjust the other two to get the correct exposure. You can learn everything you need to know about how to do this with the exposure triangle.
A diagram showing the exposure triangle - iso, shutter speed and aperture

 

If you’re not getting the depth of field you want, the next thing to change is relative distance. You can try getting closer to your subject. If that doesn’t help, move your subject away from the background.

Remember, it’s extremely difficult to create a blurred background if your subject and the background are too close. Creating the depth of field you want is all about depth relationships.

If you’re aiming for a deep depth of field, you may need to figure out exactly where your focus point should be. You can figure this out by calculating the hyperfocal distance.

Finally, the focal length of your lens also impacts the DoF. If you have a zoom lens, try a wide-angle lens with less zoom for a greater depth of field. Changing the focal length also affects your composition. So, balancing the perfect DoF with the perfect frame is best.

Advanced Depth of Field Techniques

I’ll finish our article by introducing you to some topics related to depth of field. Focus stacking is a way of creating a very deep DoF. It is also possible to simulate a shallow depth of field. This is particularly useful when using a smartphone.

Focus Stacking

There are situations where it is impossible to get a deep enough depth of field in one image. Landscape photographers sometimes struggle with this. They may find it hard to focus on a close foreground element while also keeping distant elements in focus.

Macro photographers capture small subjects like flowers and insects with a long macro lens. A macro lens lets photographers get very close to their subjects.

But because they are close to their subjects with a long focal length lens, the depth of field is often very shallow. You can see this in the close-up of spoons on a textured background below.

Close up of spoons on a textured background.
© Jenn Mishra 90mm, 2.5 s, f/1.8
 

To combat both situations, photographers use a technique called focus stacking. They take many images of a scene. With each image, they change the focal point slightly.

A landscape photographer may take three or more images. The first focuses on the foreground element, the second on the midground, and the third on the background. Later, the images are stitched together in Photoshop. The in-focus parts of each image are merged to create one image.

If you want to know how to focus stack images, see our article about using focus stacking for sharper photos.

Simulated Shallow Depth of Field

It’s possible to simulate a shallow depth-of-field effect. You can add a blur effect in Photoshop. Or you can use apps or editing software that digitally simulate the effect.

Smartphones are limited in their ability to create blurred backgrounds. But you can still achieve the effect by getting close to your subject or using a depth-of-field simulator app.

Newer iPhones make it easier to control the effect. I still can’t change the aperture on my iPhone 11S, but I can simulate and control shallow depth of field.

Let me give you an example. I used Portrait mode on my iPhone 11S to photograph my cat. When you select Portrait mode, the camera automatically applies a background blur to the image. You can use this mode to get a blurred background, even if you’re not shooting portraits.

Triptych cat portrait using iPhone at f/4.5, f/1.4, and f/16 apertures for various depths of field
© Jenn Mishra iPhone 11S at f/4.5, f/1.4, and f/16
 

Clicking the edit button gives me some options. The left image is the original. You can see that the camera chose an aperture of f/4.5. If I click the aperture, I’m given a Slider tool that allows me to change the aperture.

The middle image shows what happens if I select f/1.4 and the right image shows what happens if I select f/16.

If your phone’s camera doesn’t have this feature, apps like Focos for iPhone simulate depth of field. They do this by changing the aperture virtually.

Conclusion: Depth of Field in Photography

Changing the depth of field in photography is a great technique all photographers should know. To increase your depth of field, you have three options. You can narrow your aperture by increasing the f-stop number, moving further away from your subject, or using a shorter focal length.

To decrease your depth of field, you have three options. You can widen your aperture by decreasing the f/stop number, moving closer to your subject, or using a longer focal length.

Understanding depth of field is crucial. It empowers you to manipulate focus creatively, which leads to captivating images. Mastering this concept lets you intentionally control sharpness and blur.

Master Composition
Intuitive Composition
Intuitive Composition
You don’t need an expensive camera or an exotic location. Excellent photos depend on composition. Easily master 50 aspects of composition with this illustrated eBook and cheat sheets. It will make photography more accessible and enjoyable!