·13 min read·By ExifGrabber Editorial Team

Understanding Depth of Field: A Complete Guide for Photographers

As an Amazon Associate, ExifGrabber earns from qualifying purchases.

What Is Depth of Field?

Depth of field (DoF) is the distance between the nearest and farthest objects in a photograph that appear acceptably sharp. It is one of the most powerful creative tools available to photographers, and understanding how to control it will immediately improve your images.

Think of depth of field as a zone of sharpness. Everything inside that zone looks crisp. Everything outside it gradually falls out of focus, creating blur. A "shallow" depth of field means that zone is narrow, keeping only a thin slice of the scene sharp. A "deep" depth of field means the zone extends far, keeping most or all of the scene in focus.

Portrait photographers often use shallow depth of field to isolate their subject from a distracting background. Landscape photographers typically want deep depth of field so that foreground wildflowers and distant mountains are both tack-sharp. Street photographers, macro shooters, wildlife enthusiasts, and astrophotographers all make depth of field decisions constantly, whether they realize it or not.

Diagram illustrating how aperture affects depth of field in photography
Wikimedia Commons · CC BY-SA 3.0

The Three Factors That Control Depth of Field

Depth of field is determined by three variables working together: aperture, focal length, and the distance between your camera and the subject. Sensor size also plays a role, but since you cannot change your sensor mid-shoot, the three factors below are what you control in the field.

1. Aperture (F-Stop)

Aperture is the most direct and commonly used way to control depth of field. The aperture is the opening in your lens that lets light reach the sensor, measured in f-stops. Here is the key relationship:

Wide aperture (small f-number like f/1.8, f/2.8) = shallow depth of field. Only a thin plane of the image is sharp, with a creamy, blurred background (commonly called "bokeh").

Narrow aperture (large f-number like f/11, f/16) = deep depth of field. Much more of the scene from front to back appears in focus.

The f-number naming convention trips up many beginners because it works in reverse from what you might expect. A smaller number means a larger physical opening in the lens. Think of it as a fraction: f/2 is a larger opening than f/16, just as 1/2 is larger than 1/16.

Here is a practical comparison:

ApertureDepth of FieldTypical Use
f/1.4 - f/2.0Very shallowPortraits, subject isolation, low light
f/2.8 - f/4.0Shallow to moderatePortraits, events, street photography
f/5.6 - f/8.0ModerateGeneral purpose, group photos, travel
f/11 - f/16DeepLandscapes, architecture, product photography
f/22+Very deepExtreme depth, but diffraction softens overall sharpness

One important note: apertures beyond f/16 introduce a phenomenon called diffraction, where light waves bend around the tiny aperture opening and actually reduce overall sharpness. Most lenses produce their sharpest images in the f/8 to f/11 range. Going to f/22 gives you more depth of field, but at the cost of overall resolution.

2. Focal Length

Focal length affects how compressed or expanded your scene appears, and it has a significant impact on the apparent depth of field.

Longer focal lengths (telephoto: 85mm, 200mm, 400mm) produce a shallower apparent depth of field. A portrait shot at 200mm f/4 will have far more background blur than the same portrait shot at 35mm f/4, even if the subject fills the same portion of the frame.

Shorter focal lengths (wide-angle: 16mm, 24mm, 35mm) produce a deeper apparent depth of field. Wide-angle lenses make it relatively easy to keep everything from a few feet away to infinity in focus.

This is why portrait photographers favor 85mm and 135mm lenses: the combination of a telephoto focal length and a wide aperture creates beautiful subject separation. And it is why landscape photographers often reach for a 16-35mm wide-angle zoom: they can stop down to f/11 and get everything sharp from near to far.

3. Subject Distance (Camera-to-Subject)

The closer your camera is to the subject, the shallower the depth of field becomes. This is most dramatically demonstrated in macro photography, where working distances of just a few inches produce razor-thin planes of focus. Even at f/11, a macro shot of an insect might have only the eyes in focus while the wings fall into soft blur.

Conversely, the farther away your subject is, the deeper the depth of field. If you focus on a mountain range several miles away, virtually everything at that distance and beyond will be sharp, regardless of your aperture setting.

This relationship explains why smartphone cameras, despite having tiny sensors, can produce blurred backgrounds in close-up food and product photos. When the phone is very close to the subject, even a small sensor can produce visible depth-of-field separation.

Shallow Depth of Field: When and How to Use It

Shallow depth of field draws the viewer's eye directly to your subject by removing visual competition from the background. It creates a sense of intimacy and focus that is central to several photography genres.

Portrait Photography

The classic portrait look uses a wide aperture (f/1.4 to f/2.8) with a moderate telephoto lens (85mm to 135mm) to create a soft, creamy background. The subject's eyes are tack-sharp, and everything else gradually melts away.

To maximize background blur in portraits:

  • Use the widest aperture your lens allows
  • Increase the distance between your subject and the background (have them step away from the wall)
  • Use a longer focal length (85mm or longer)
  • Get closer to your subject (within the limits of comfortable framing)

A 50mm f/1.8 lens is often called the "nifty fifty" because it offers beautiful shallow depth of field at an incredibly affordable price point. It is the single best lens upgrade most beginners can make.

Wildlife Photography

Telephoto lenses used for wildlife naturally produce shallow depth of field, which helps separate animals from busy forest or grassland backgrounds. A bird photographed at 400mm f/5.6 will pop against a smooth wash of green foliage.

Street Photography

Selective focus can isolate a single person or detail from the chaos of a busy street scene. Shooting at f/2 on a 35mm or 50mm lens lets you pick one moment of stillness out of a crowd.

Example of bokeh created by shallow depth of field with out-of-focus light points
JWCreations · CC BY-SA 3.0

Deep Depth of Field: When and How to Use It

Deep depth of field ensures that multiple planes of the scene are sharp simultaneously, which is essential when both foreground and background elements matter to the composition.

Landscape Photography

The goal in most landscape images is to render everything sharp from the foreground rocks or flowers to the distant peaks. This typically means shooting at f/8 to f/16 with a wide-angle lens. Using a sturdy tripod becomes important here because narrow apertures reduce the amount of light reaching the sensor, requiring slower shutter speeds.

Architecture and Real Estate

Interior and exterior architectural shots need everything in focus so that details throughout the space are readable. A tilt-shift lens offers even more control by adjusting the plane of focus to align with a building's facade.

Group Photos

When photographing a group of people arranged at different distances from the camera, you need enough depth of field to keep everyone sharp. Shooting at f/5.6 to f/8 is usually sufficient for two or three rows of people.

The Hyperfocal Distance Technique

Hyperfocal distance is a concept that landscape photographers rely on to maximize depth of field. It is the focusing distance at which the depth of field extends from half that distance to infinity.

For example, if the hyperfocal distance for your lens and aperture combination is 10 feet, then focusing at 10 feet will render everything from 5 feet to infinity acceptably sharp. This gives you the deepest possible depth of field for that particular setup.

You do not need to calculate this in your head. Apps like PhotoPills include hyperfocal distance calculators, and many depth-of-field charts are available for quick reference. Learn more about using these tools in our guide to PhotoPills for golden hour planning.

The practical workflow is straightforward:

  1. Set your aperture to f/11 or f/13
  2. Look up the hyperfocal distance for your focal length and aperture
  3. Focus at that distance (use manual focus and the distance scale on your lens)
  4. Everything from half the hyperfocal distance to infinity will be sharp

Sensor Size and Its Effect on Depth of Field

While not something you change between shots, sensor size does affect depth of field, and it is worth understanding if you are choosing between camera systems.

Larger sensors (full-frame, medium format) produce shallower depth of field at equivalent framing and aperture settings. A portrait shot at 85mm f/2.8 on a full-frame camera will have more background blur than the same shot on an APS-C or Micro Four Thirds camera.

This is because to achieve the same framing on a smaller sensor, you either use a shorter focal length (which deepens DoF) or stand farther away (which also deepens DoF).

This is one reason why full-frame cameras like the Sony A7 IV are preferred for portrait work. Conversely, it is why APS-C cameras are sometimes preferred for landscape photography, where deeper depth of field is an advantage.

For a deeper exploration of how sensor size relates to exposure settings, check out our guide to understanding the exposure triangle.

Bokeh: The Quality of the Blur

Bokeh is a Japanese term that describes the aesthetic quality of the out-of-focus areas in a photograph. While depth of field determines how much is in focus, bokeh describes how the out-of-focus areas look.

Good bokeh is generally smooth and creamy, with specular highlights (like distant lights) rendered as soft, round circles. Harsh bokeh appears busy, with hard edges and distracting shapes in the blurred areas.

Several factors affect bokeh quality:

Lens design is the biggest factor. Lenses with more aperture blades (typically 9 or 11) produce rounder out-of-focus highlights. The optical formula and element coatings also play a role.

Aperture setting matters because lenses produce their roundest bokeh at maximum aperture. As you stop down, the aperture blades close into a polygon shape, and out-of-focus highlights take on that same shape (hexagonal, octagonal, etc.).

Subject-to-background distance affects how blurred the background appears. Even with identical depth of field, a background 50 feet behind the subject will appear more blurred than one 5 feet behind.

Some lenses are specifically renowned for their bokeh quality. The Sony 135mm f/1.8 GM and Canon RF 85mm f/1.2 L USM are frequently cited as producing some of the most beautiful bokeh available.

Depth of Field in Your EXIF Data

When you examine the EXIF metadata of a photograph using a tool like ExifGrabber, you can find the aperture, focal length, and focus distance information that determined the depth of field in that shot. This is incredibly useful for learning from your own work or studying images by other photographers.

The key EXIF fields to look at are:

  • FNumber (Aperture): The f-stop used for the shot
  • FocalLength: The actual focal length of the lens
  • FocalLengthIn35mmFilm: The 35mm equivalent focal length (accounts for crop factor)
  • SubjectDistance: The distance to the focused subject (not always recorded)

By reviewing these values across a set of your favorite images, you can start to see patterns in the depth of field choices that produce results you like.

Common Depth of Field Mistakes

Shooting Too Wide Open

New photographers often keep their fast lens at f/1.4 or f/1.8 for every shot, chasing maximum blur. But ultra-wide apertures create a depth of field so thin that even slight subject movement or focusing errors can put the eyes out of focus. For portraits, f/2.0 to f/2.8 is often a better starting point that still delivers beautiful blur while keeping the entire face reasonably sharp.

Ignoring Diffraction

Stopping down to f/22 for maximum depth of field seems logical, but diffraction softens the overall image. For most lenses, f/11 to f/16 is the practical limit before diffraction costs you more sharpness than the extra depth of field gains.

Not Considering Focus Point Placement

Depth of field extends approximately one-third in front of and two-thirds behind the point of focus (though this ratio changes at close distances). Focusing on a subject's nearest eye in a portrait, or on a point one-third into the scene in a landscape, helps distribute the sharpness zone optimally.

Forgetting About Background Distance

Many photographers focus on aperture as the only depth-of-field control and forget about positioning. Simply asking a portrait subject to step five feet away from a wall can dramatically increase background blur, even at the same aperture.

Depth of Field Exercises for Practice

The best way to internalize depth of field is to practice deliberately. Here are three exercises:

Exercise 1: Aperture Bracket. Place an object on a table with items at varying distances behind it. Shoot the same composition at f/2.8, f/5.6, f/8, f/11, and f/16. Compare the results side by side and note how the background changes at each stop.

Exercise 2: Distance Bracket. Photograph the same subject at three different distances (close-up, medium, and far) at the same aperture. Observe how the depth of field changes even though the f-stop stays constant.

Exercise 3: Focal Length Bracket. Frame the same subject similarly using a wide-angle, normal, and telephoto lens (or zoom positions). Shoot all three at the same aperture and compare the background blur.

After each exercise, upload your files to ExifGrabber and compare the aperture, focal length, and distance data recorded in the EXIF metadata. Seeing the numbers alongside the visual differences will accelerate your understanding.

Quick Reference: Depth of Field Cheat Sheet

GoalApertureFocal LengthDistance
Maximum blur (portraits)f/1.4 - f/2.085mm+Close to subject, far from background
Moderate blur (events)f/2.8 - f/4.050-85mmMedium distance
Everything sharp (landscapes)f/8 - f/1616-35mmFocus at hyperfocal distance
Macro (thin slice)f/8 - f/1690-105mm macroVery close (inches)
Group photof/5.6 - f/8.035-50mmFar enough to fit everyone

Wrapping Up

Depth of field is not just a technical concept. It is a storytelling tool. A shallow depth of field whispers "look here" by gently dissolving everything except your subject. A deep depth of field says "take it all in" by presenting the entire scene with clarity.

Once you understand the three-way relationship between aperture, focal length, and subject distance, you stop thinking about depth of field as a technical setting and start thinking about it as a creative choice. That shift is one of the most important milestones in any photographer's development.

The next time you review your photos, open them in ExifGrabber and check the aperture and focal length data. Compare shots you love with shots that fell flat. Chances are, depth of field played a bigger role than you realized.

Your images never leave your device — all EXIF extraction runs locally in your browser