Depth of Field Guide: Bokeh, Sharp Landscapes & Focus Control

By PixelKeyAICamera fundamentals8 min read

Depth of field is one of the most powerful — and most misunderstood — creative tools in photography. The difference between a portrait with a dreamily blurred background and a landscape where every rock and blade of grass is razor-sharp comes down to the same three variables. Understanding how they interact gives you deliberate creative control over how your images look, not just whether they're exposed correctly. This guide builds on the aperture guide and ISO guide to complete the full exposure picture.

What Is Depth of Field?

Depth of field (DoF) is the zone of acceptable sharpness in a photograph — the range of distances from the camera where subjects appear in focus. Everything inside this zone looks sharp. Everything outside it blurs progressively, with objects farther from the focus point becoming more blurred the further they fall outside the DoF zone.

The blurred, out-of-focus areas are called bokeh (from the Japanese word for blur or haze). The aesthetic quality of this blur — smooth and circular or busy and edgy — depends on lens design as much as aperture setting.

Shallow vs. Deep Depth of Field

The Three Factors That Control Depth of Field

Three independent variables determine how shallow or deep your depth of field is. You can stack them for maximum effect or balance them to land in a middle ground.

1. Aperture

Aperture is the easiest to adjust in-camera and has the most dramatic effect on depth of field. A wide aperture (low f-number like f/1.4 or f/1.8) produces a shallow depth of field with strong background blur. A narrow aperture (high f-number like f/11 or f/16) produces a deep depth of field where most of the scene appears sharp. See the full aperture guide for how f-stops work.

2. Subject Distance

The closer your camera is to the subject, the shallower the depth of field becomes — at any given aperture. This is why macro photography (extreme close-ups) has notoriously thin depth of field even at f/11 or f/16. Conversely, stepping back from your subject deepens the depth of field, which is why wide-angle environmental portraits can look sharp throughout even at f/2.8.

3. Focal Length

Longer focal lengths (85mm, 135mm, 200mm) produce shallower depth of field than shorter focal lengths (24mm, 35mm) when framing the same subject at the same aperture. This is partly because longer lenses require you to stand farther back to get the same framing — but even when comparing at identical magnification, telephoto lenses produce more background compression and stronger blur. Portrait photographers favor 85mm and 135mm partly for this reason.

Stack all three for maximum bokeh: To get the most dramatic background blur, combine a wide aperture (f/1.8), close subject distance, and a long focal length (85mm or longer). With a fast 85mm prime at f/1.8 and your subject 2 meters away, the depth of field is only a few centimeters deep.

Depth of Field Quick Reference

FactorShallower DoF (more blur)Deeper DoF (less blur)
Aperturef/1.4, f/1.8, f/2, f/2.8f/8, f/11, f/16
Subject distanceClose to subject (1–2m)Far from subject (5m+)
Focal length85mm, 100mm, 135mm, 200mm24mm, 28mm, 35mm
Sensor sizeFull-frame (36×24mm)Crop sensor (APS-C, Micro 4/3)

How to Achieve Creamy Bokeh Backgrounds

Bokeh quality — the visual smoothness and roundness of out-of-focus highlights and textures — is what separates beautiful blur from distracting blur. Here are the practical steps:

  1. Use a fast prime lens. Prime lenses (50mm f/1.8, 85mm f/1.4, 100mm f/2.8) produce smoother bokeh than zoom lenses at comparable apertures because of their optical design and circular aperture blades.
  2. Open the aperture wide. Shoot at f/1.8 or f/2 if your lens allows. Background highlights become large, round circles (often called "bokeh balls").
  3. Maximize subject-to-background distance. A background 3 meters behind your subject blurs much more than a background 30 centimeters behind it — even at the same aperture.
  4. Choose a clean, distant background. A uniform wall, open sky, or foliage far in the distance blurs into smooth textures. Busy or cluttered close backgrounds remain distracting even when blurred.

Deep Depth of Field and Hyperfocal Distance

When you want maximum sharpness — landscapes, architecture, real estate — use a narrow aperture (f/8 to f/11) and focus at the hyperfocal distance for your lens and aperture combination.

What Is Hyperfocal Distance?

Hyperfocal distance is the closest point you can focus on while keeping the background (technically, infinity) acceptably sharp. When you focus at the hyperfocal distance, everything from half that distance to infinity appears sharp. For a 24mm lens at f/8, the hyperfocal distance is approximately 3 meters — meaning you focus on something 3m away and everything from 1.5m to infinity is acceptably sharp in the frame.

Hyperfocal distance decreases (comes closer to the camera) with narrower apertures and wider focal lengths. Landscape photographers use hyperfocal focus to keep dramatic foreground elements and distant mountains simultaneously sharp without needing to use an extreme aperture like f/22 that would introduce diffraction blur.

Landscape tip: For a 24mm lens at f/8 on full-frame, focus on a point about 3 meters in front of you. Everything from your feet (roughly) to the horizon will appear sharp. This is usually more effective than focusing directly on the horizon, which would leave close foreground elements soft.

Depth of Field by Genre

GenreRecommended DoFSettings
Portrait (head & shoulders)Shallowf/1.4–f/2.8, 85mm+, 1–2m distance
Environmental portraitModeratef/4–f/5.6, 35–50mm
LandscapeDeepf/8–f/11, wide angle, hyperfocal focus
ArchitectureDeepf/8–f/11, 24–35mm
MacroShallow (unavoidable)f/8–f/16 to recover DoF; use focus stacking for full sharpness
ProductDeep or controlledf/8–f/11 for flat lay; f/2.8–f/4 for hero shots with background separation
StreetModerate to deepf/5.6–f/8, 35–50mm, zone focus

Focus Stacking for Macro and Product Photography

In macro photography, depth of field can be so thin — sometimes less than a millimeter — that no single aperture can capture the full subject in sharp focus. The solution is focus stacking: taking multiple frames with slightly different focus points and merging them in post-processing software (Lightroom, Photoshop, Helicon Focus, or Zerene Stacker).

The same technique works for product photography where you want every surface detail sharp, or for landscape images where you want a large foreground rock and distant mountain simultaneously tack-sharp beyond what a single hyperfocal exposure can achieve.

Depth of Field for Stock Photography

Stock photo buyers have specific expectations depending on how they intend to use an image:

The AI keyword generator can help you add relevant depth of field keywords like "bokeh background", "shallow depth of field", "selective focus", or "deep focus" to your stock metadata automatically based on your image content.

Frequently Asked Questions

What is depth of field in photography?

Depth of field is the zone of acceptable sharpness in a photo — the range of distances that appear in focus. A shallow DoF has only a narrow focused zone (blurred background). A deep DoF keeps everything from foreground to background sharp.

What three factors control depth of field?

Aperture (wider = shallower DoF), subject distance (closer = shallower DoF), and focal length (longer = shallower DoF). All three interact — you can stack them for dramatic blur or balance them for a moderate result.

How do I get a blurry background in photos?

Use a wide aperture (f/1.8 or f/2.8), get close to your subject, use a longer focal length (85mm+), and maximize the distance between your subject and the background. Stacking all four gives the most dramatic bokeh effect.

What is hyperfocal distance?

Hyperfocal distance is the focus point at which everything from half that distance to infinity appears acceptably sharp. Used in landscape photography to maximize sharpness across the entire frame. A 24mm lens at f/8 has a hyperfocal distance of roughly 3 meters.

What depth of field is best for stock photography?

Portrait and lifestyle stock: shallow DoF (f/1.8–f/2.8) for professional subject isolation — keep at least one eye sharp. Landscape and nature stock: deep DoF (f/8–f/11). Product and concept stock: deep DoF or controlled focus with slight background separation. Match the DoF to the buyer's intended use for the image.

Practice and Related Resources

The Exposure Triangle Game lets you adjust aperture in real time to see how it interacts with shutter speed and ISO for exposure — and you'll see the depth of field implications at the extremes. The aperture guide covers the f-stop scale and genre-specific aperture recommendations in more detail.

Aperture Guide → ISO Guide → Shutter Speed Guide → Exposure Triangle Game → AI Keyword Generator →

Selling your photos on stock sites?

Good technique gets photos accepted. Keywords get them found. PixelKeyAI writes titles, descriptions and keywords for Adobe Stock, Shutterstock, iStock and more in seconds. Free credits to start, no card needed.

Keyword my photos free