Factors that Affect the Depth of Field

Article 4 min
Depth of field refers to the range of distances that appear acceptably sharp. Learn how to adjust your camera settings to utilize this important technique.

Depth of field is the area between the nearest and farthest points from the camera that are acceptably sharp in an image. A deep DoF means all or most of your photo will be in focus, including the foreground, subject and background. Use a deep DoF in group photos, landscape shots, crime scene documentation and when elements in the background or foreground add to the message the photo is attempting to communicate. A shallow DoF means a narrower range will be acceptably sharp in the image. Shallow DoF is good to use when you want to isolate your subject from their surroundings, such as in a portrait or when elements in the background or foreground may be distracting.

You can affect the depth of field by changing the aperture, focal length and distance from the subject.

Aperture

The aperture is the opening created by a set of overlapping metal blades, known as the diaphragm, inside a photographic lens. This opening controls the amount of light coming through the lens. The wider the aperture, the less depth of field you capture. The smaller the aperture, the deeper the depth of field.

Focal Length

The focal length of the lens determines the image magnification. The wider the lens, the shorter the focal length. This allows you to capture a wider depth of field. The longer or more zoomed in the camera lens, the less depth of field you capture.

Distance to Subject

Distance to the subject refers to the length between the camera and the focus of the image. The closer the camera is to the subject it is focusing on, the narrower the depth of field will be. Inversely, the farther away the subject is from the camera, the wider the depth of field will be.

How These Factors Affect the DoF

The following graphic illustrates how changing these factors affects the depth of field.

Infographic illustrates how changing the aperture, the focal length and the distance from the subject affect the depth of field. Photo by DINFOS PAVILION Team
Infographic illustrates how changing the aperture, the focal length and the distance from the subject affect the depth of field.
Infographic illustrates how changing the aperture, the focal length and the distance from the subject affect the depth of field.
Photo by: DINFOS PAVILION Team
VIRIN: 200907-D-PA656-0002

Check out some examples to see when to use shallow, medium and deep depth of field. 

U.S. Marine Corps Lance Cpl. Stephanie Ossorio, an ammunition technician with 2nd Combat Readiness Regiment, 2nd Marine Logistics Group, and a Miami native, poses for a photo at the Jacksonville Commons Recreation Complex, Jacksonville, North Carolina, Oct. 7, 2024. Ossorio’s command selected her for Warrior of the Week because of her leadership, integrity, and initiative while serving within the records section, continuously demonstrating her commitment to operational excellence. In her off-time Ossorio competes in softball and has the goal of making the All-Marine Softball Team, “Softball is therapy for me. When I get stressed, I know that I can release all of that emotion on the field. Joining the All-Marine Softball Team has been a goal of mine since I met a couple of the players.” Each week, 2nd MLG recognizes one outstanding Marine or Sailor that goes above and beyond in their duties and embodies the qualities of an outstanding service member.
U.S. Marine Corps Lance Cpl. Stephanie Ossorio, an ammunition technician with 2nd Combat Readiness Regiment, 2nd Marine Logistics Group, and a Miami native, poses for a photo at the Jacksonville Commons Recreation Complex, Jacksonville, North Carolina, Oct. 7, 2024. Ossorio’s command selected her for Warrior of the Week because of her leadership, integrity, and initiative while serving within the records section, continuously demonstrating her commitment to operational excellence. In her off-time Ossorio competes in softball and has the goal of making the All-Marine Softball Team, “Softball is therapy for me. When I get stressed, I know that I can release all of that emotion on the field. Joining the All-Marine Softball Team has been a goal of mine since I met a couple of the players.” Each week, 2nd MLG recognizes one outstanding Marine or Sailor that goes above and beyond in their duties and embodies the qualities of an outstanding service member. (U.S. Marine Corps photo by Cpl. Jessica J. Mazzamuto)
Photo by: Cpl. Jessica Mazzamuto
VIRIN: 241007-M-MU578-1064

Shallow depth of field is best applied to photos that need to:

  • Create intimacy between the subject and the audience.
  • Hyper-focus on a subject's facial expression or an object's texture.
  • Separate the foreground from the background by blurring distractions.

Members of the Sea Services Leadership Association (SSLA) lay lavender at gravesites in Section 11 of Arlington National Cemetery, Arlington, Virginia, June 28, 2024.
Members of the Sea Services Leadership Association (SSLA) lay lavender at gravesites in Section 11 of Arlington National Cemetery, Arlington, Virginia, June 28, 2024. (U.S. Army photo by Elizabeth Fraser / Arlington National Cemetery / released)
Photo by: Elizabeth Fraser
VIRIN: 240628-A-IW468-1450

Medium depth of field is best applied to photos that need to:

  • Tell a story between the subjects and their environment while keeping a respectable distance.
  • Focus on 1-5 subjects or objects.
  • Keep the subjects in the foreground while blurring the background.

U.S. Army Sgt. 1st Class Erin Morgan, Drum Major of The United States Army Old Guard Fife and Drum Corps, leads a formation of Soldier musicians during the Bunker Hill Parade in Boston, Mass. on June 15, 2025. The Bunker Hill Parade commemorated the 250th Anniversary of the Battle of Bunker Hill, one of the first battles of the American Revolutionary War.
U.S. Army Sgt. 1st Class Erin Morgan, Drum Major of The United States Army Old Guard Fife and Drum Corps, leads a formation of Soldier musicians during the Bunker Hill Parade in Boston, Mass. on June 15, 2025. The Bunker Hill Parade commemorated the 250th Anniversary of the Battle of Bunker Hill, one of the first battles of the American Revolutionary War. (U.S. Army photo by Staff Sgt. Philip Andrews)
Photo by: Staff Sgt. Philip Andrews
VIRIN: 250615-A-DX213-1004

Deep depth of field is best applied to photos that need to:

  • Convey a sense of grandeur such as a large crowd or group of objects.
  • Immerse the audience in the environment.
  • Focus on both subjects in the foreground and background.

Discover More You May Like

View All Articles