
In this 14th lesson of the free online photography course, we will focus on understanding one of the basic principles of photography: depth of field. Anyone approaching the world of photography, sooner or later, MUST must necessarily know and master depth of field for a successful shot. Although there is no precise rule, depending on the subject to be captured, a specific depth of field will be needed to highlight it. For this reason, we will dedicate an entire lesson to this concept to understand it well and avoid mistakes in the next shots we take. Let's begin…
What is depth of field
In photography, depth of field represents the area where objects in the image appear sharp and sufficiently focused. When focusing an image, only a specific plane will be truly in focus (lenses can focus on only one point). Everything in front of or behind this plane will gradually be out of focus. This sharp zone represents the depth of field, often abbreviated with the acronym DoF (or DoF (from the English Depth of Field).

It is certainly not a rule and I invite you to try it yourself, but depending on the type of photography you are doing, a certain depth of field should be applied to take a good shot.
For landscape photos, where everything must be sharp, you should try to achieve a wide depth of field so that both the objects in front of you and the background scenery are in focus.

In contrast to landscape photography, sports photography, macro photography, and portrait photography should have a very shallow depth of field to highlight the main subject and blur everything else so as not to distract the viewer's gaze.
![]() | ![]() |
Good! Now that you understand what depth of field is and how it applies to various types of photography, let's see how to master it with the camera and how to achieve a wide or shallow depth of field.
To complicate things, I will tell you right away that you will not find a button on your camera where you can set the depth of field, it is mainly influenced by 3 factors: the aperture of the diaphragm (we talked about it in the 5th lesson), the focal length of your lens and by the distance of the subject you are capturing. Let's look at these 3 factors together to understand better.
Aperture and Depth of Field
As already seen in the 5th lesson of this course, the amount of light reaching the camera sensor is determined by the aperture and is measured with a value called “F” or “F-STOP”. The lower the “F” value, the larger the aperture and consequently the more light enters the camera.
The aperture It not only affects the amount of light entering the sensor but also influences the depth of field. Low aperture values (f1.8, f2.8, f4 for example) will have a very shallow depth of field, whereas high aperture values (f16, f20, etc.) will have a much greater depth of field. To understand better, let's look at this image:

With the same distance from the subject (10 meters) and focal length (70mm lens), the aperture was changed: f2.8 in the first example, f8 in the second, and f22 in the third. As you can see, the red area represents your depth of field, and everything within this zone will be sharp and recognizable. Let's take a practical example with a simple flower.

This image was taken with a 200mm lens at about 2 meters distance with an aperture of f20. As you can see, the high aperture value gave me a fairly large depth of field; many other flowers behind the main one are sharp. Now let's see what happens if we change the aperture to f4 without changing position or lens.

Well... definitely a completely different photograph, the maximum aperture gave me a very shallow depth of field and a pleasant blur all around the main flower. For this reason, in macro photography and portrait photography, it is recommended to use the widest aperture to have a minimal depth of field and a sharp separation between the main subject and the background.

Focal length and depth of field
Another parameter to consider when calculating depth of field is the lens you use, and in particular the focal length used during the shot. We have already discussed this in the 3rd lesson of this course but let's do a quick review.
Focal length, expressed in millimeters, is the distance between the optical center of the lens (usually near the aperture) and the focal plane. With a short focal length, we talk about a wide-angle lens with a wide field of view; conversely, with a long focal length, we have a narrow field of view (telephoto lenses).

Depth of field, in addition to the aperture value, is also strongly influenced by this focal length. The greater the focal length (telephoto lenses and strong zooms), the shallower the depth of field; conversely, using a wide-angle lens with a short focal length will produce a large depth of field. Let's look at an image as an example:

With the same distance from the subject (10 meters) and aperture (f8 in this example), we can notice how using a telephoto lens with a 200mm focal length produces a very shallow depth of field, while using a 28mm wide-angle lens produces an image that is practically all sharp.
This is also why landscape photographs are taken with a wide-angle lens, while on fashion photo sets you will always see large telephoto lenses to separate the model from everything else.
Distance from the subject and depth of field
Last but not least, a factor that influences depth of field is the distance from the subject you are focusing on. The greater this distance, the greater your depth of field; conversely, the closer you are to your subject, the shallower your depth of field will be. Let's look at the usual example:

In this image, a 70mm focal length lens is used with an aperture of f8. As you can see in example “a,” the subject is very close to the camera, and consequently, the depth of field is very shallow, while in example “c,” the subject is far away and the depth of field visibly increases. Let's see a practical example with a photo of a flower. 
In this image, I used a lens with a focal length of 70mm and an aperture of F4. The distance from the flower was about 1.5 meters, which allowed me to have a fairly high depth of field; besides the main flower, many other details are sharp. Let's see the effect obtained by moving the camera closer to the flower to just a few centimeters without changing the focal length or the aperture.

Getting closer to the main subject helped me achieve a shallow depth of field without changing the shooting parameters; the background is definitely more blurred compared to the previous image.
The hyperfocal distance
If you are a fan of nature or landscape photography, know that there is a concept you absolutely must understand; we are talking about the hyperfocal distance. The hyperfocal distance, or simply hyperfocal, is a focusing distance such that the depth of field is so wide that the farthest objects (at infinity) will have an acceptable sharpness. For this reason, it is well known among landscape photographers; once you find the correct hyperfocal distance, your entire image will be in focus, from the foreground objects to the background, no matter how far it is.

But how do you calculate the hyperfocal distance? This distance is calculated based on the focal length you are using and the aperture. The correct formula for this calculation is:

Where “f” is the focal length, “n” is the aperture, and “c” is the circle of confusion value. Don't worry, you absolutely don't need to study this formula or carry paper and pen around to do calculations. There are many tools that will help you calculate this distance in seconds:
- on your phone, you will find many apps that perform the calculation
- the internet is full of websites with calculation tables (DOFmaster is one example)
- you can always print one of these tables and carry it with you

You will realize that after several attempts, you won't even need to calculate this distance anymore because it will become almost automatic. You just need to try and not be afraid of possible mistakes.
Conclusions
We have also reached the end of this 14th lesson, which I believe is one of the most important we've seen so far. Knowledge of depth of field in photography is fundamental for the successful outcome of a shot. There are no precise rules, and for this reason, I recommend trying to take the same shot with completely different depths of field. You will notice that the shots will be absolutely different from each other and will convey different feelings.
As you have noticed, mastering depth of field is not at all simple as it is influenced by various factors. You won't always have time to think about all these parameters and will shoot instinctively; my advice is to pause for a second longer and think about what you want to achieve. Try and try again a thousand times; you will see that over time everything will become easier and you will get wonderful photos.
In the next lesson, we will talk about another very important factor that you absolutely need to know: the exposure time. If you missed the previous lessons, you can always consult them at this link.





