Donec efficitur, ligula ut lacinia
viverra, lorem lacus.
Depth of Field and Bokeh: What They Actually Are and How to Control Both
These two terms get used interchangeably on photography forums and YouTube tutorials, which creates a specific confusion: people try to improve their “bokeh” by changing aperture, and it works — but not necessarily because of what they think. Depth of field and bokeh are related but genuinely different things, and knowing the distinction changes the decisions you make on location.
DoF vs. Bokeh — The Distinction That Actually Matters
Depth of field is a zone. It’s the range of distances from the camera that appear acceptably sharp in the final image. At f/1.4 on an 85mm lens focused at 8 feet, that zone might be 4 inches deep — everything outside it is out of focus. At f/11 on the same lens at the same distance, the sharp zone extends from about 7 to 10 feet. DoF is a technical measurement. You can calculate it.
Bokeh is an aesthetic judgment. It describes the visual quality of those out-of-focus areas — how they render, what they look like, whether the transitions feel smooth or harsh. The Japanese word (暈け) refers broadly to “blur” but in photography it’s specifically about the character of the rendering: are the out-of-focus highlight circles smooth discs or do they have hard outlines? Does the background dissolve cleanly into softness or does it look nervous and busy?
You can have very shallow depth of field with mediocre bokeh. The background is blurred, but the blur looks cheap — harsh circles with defined edges, geometric shapes from the aperture blades, artifacts at the subject’s hair. Some expensive zoom lenses produce worse bokeh than a $125 prime lens, even at the same aperture. The aperture controls how much is out of focus; the lens design controls how the out-of-focus areas actually look.
The practical implication: if your blurry backgrounds look harsh rather than smooth, changing the aperture won’t fix it. Changing the lens might.
The Four Factors That Control Depth of Field
1. Aperture. The primary variable most people reach for first. Wider aperture (lower f-number) = shallower depth of field. f/1.4 produces a narrow zone of sharpness; f/16 produces a zone deep enough to render an entire landscape in focus. The relationship is not linear — going from f/1.8 to f/2.8 is a larger change than going from f/8 to f/11.
One important clarification: aperture serves two distinct functions in photography. Here, the discussion is entirely about its effect on depth of field and the visual appearance of blur. The role aperture plays in exposure — letting more or less light through to the sensor — is a separate topic covered in the exposure triangle.
2. Focal length. Longer lens = shallower-appearing depth of field. There’s a useful nuance here that most explanations skip. If you use a 24mm lens and an 85mm lens and adjust your position each time to frame the subject identically, the theoretical depth of field is actually quite similar at the same f-stop. What changes is background compression — the longer lens magnifies the background and makes the blur look more pronounced even when the DoF math says they’re equivalent. This is why portrait photographers prefer 85–135mm over 24–35mm for isolated subjects: it’s partly DoF and partly the compression that makes backgrounds recede more dramatically.
3. Subject-to-camera distance. Closer to your subject = shallower depth of field. At macro distances — say, 10 inches from a flower — depth of field at f/8 can be measured in millimeters. This relationship becomes extreme very quickly as you approach the subject. At 3 feet with an 85mm at f/1.8, the DoF is roughly 2 inches. At 10 feet, the same settings give you about 8 inches. The macro photography guide covers the extreme end of this — when DoF is measured in fractions of an inch and focus stacking becomes necessary.
4. Subject-to-background distance. This is the variable people underestimate most, and it’s the cheapest thing to change. Move your subject farther from the background. That’s it. A person standing 3 feet from a brick wall produces an image where the wall reads as textured, even at f/2.8. Move them 25 feet from the same wall and the wall becomes an unrecognizable wash of color and light. No change in aperture, no different lens. The background blur increases dramatically because background blur is a function of how far out of the depth of field zone the background falls — and more physical distance means farther outside that zone.
This is the practical technique to try first when a background isn’t blurring enough: before changing aperture or switching lenses, move the subject forward. It’s often the most effective single adjustment.
Sensor size (bonus factor). A full-frame sensor produces shallower depth of field than an APS-C (crop) sensor at the same aperture and equivalent framing. An APS-C produces shallower DoF than a Micro Four Thirds sensor. A phone sensor is physically tiny — which is why portrait mode is computational rather than optical. The physics of a small sensor make achieving shallow DoF nearly impossible at any aperture.

How to Get a Blurry Background — In Order of Impact
Work through these in order rather than jumping to “buy a faster lens”:
Step 1: Move the subject away from the background. Free, immediate, and often sufficient. Before any other adjustment, put at least 15–20 feet between your subject and whatever’s behind them. A subject 20 feet in front of foliage, shot at f/4 on an 85mm, will have a beautifully blurred background. The same subject 4 feet from the foliage at f/1.4 may not.
Step 2: Get closer to your subject. Not always possible depending on focal length and framing, but closing distance between you and the subject increases blur at the same settings.
Step 3: Open the aperture. f/2.8, f/2.0, f/1.8 — as wide as the lens allows. This has diminishing returns below f/2.0 for most portrait applications where you want the whole face sharp.
Step 4: Use a longer focal length. 85mm rather than 35mm. The background compression of a longer lens adds to the blur effect independent of the DoF calculation. This is often the step that makes the most visual difference after subject-background distance is already handled.
What doesn’t help: buying an f/1.4 lens when you’re using it at f/2.8 for most shots. The extra stop of aperture rarely justifies the cost unless you have a specific use case for shooting at f/1.4 (low-light work, creative very-shallow DoF). More often, moving from a zoom lens to a prime at f/1.8 is the impactful change — and the $125 nifty fifty addresses that.
Shallow vs. Deep — When Each One Is Right
Shallow depth of field is not inherently better than deep. It’s a tool for a specific purpose: visual isolation. When you want the subject to be clearly separated from its context — a portrait, a single product, a flower against a garden background — shallow DoF does the work. Everything outside the subject zone softens and recedes. The subject becomes the only thing in the frame worth looking at.
That isolation is why blur works as an emphasis tool — sharp equals important, soft equals less important. The camera imposes a hierarchy on the frame through selective focus. A sharp face against a blurred background communicates “this person is the subject” more forcefully than the same face in a fully sharp environmental portrait.
Deep depth of field serves a different purpose: it preserves context and allows the whole frame to communicate something. A landscape at f/11 where the sharp zone extends from 10 feet to infinity tells the story of a place. An architectural image at f/8 where foreground detail and background structure are both readable creates a sense of spatial depth through multiple planes of information.
Using shallow DoF where you want context creates images that feel like they’re hiding something. Using deep DoF where you want isolation creates images that feel cluttered. The decision is stylistic but it needs to be conscious.
Where foreground blur adds depth without shallowness: shooting through something out of focus in the foreground — grass, branches, fabric — while keeping the subject sharp adds a sense of depth and dimension that a clean background can’t produce. The foreground element doesn’t need to be identifiable, just present enough to create layering. The full treatment of how foreground elements build depth in an image covers this in broader compositional context.

What Makes Bokeh Look Good (or Bad)
The lens design determines bokeh quality, not the photographer. But understanding what to look for helps you evaluate lenses before buying.
Smooth vs. nervous bokeh. Smooth bokeh is the goal — background areas dissolve gradually from sharp to soft, and out-of-focus highlight circles (called “bokeh balls” colloquially, technically circles of confusion) appear as even, clean discs. Nervous or “busy” bokeh shows harsh outlines around those circles, double-edge artifacts, or choppy transitions that make the background look textured in a distracting way rather than softly dissolved.
Onion ring bokeh. Some budget lenses that use aspherical elements to correct aberrations produce highlight circles with concentric ring patterns inside them — they look like cross-sections of an onion. Common in many kit zoom lenses and some budget primes. It’s a lens design artifact and can’t be corrected in post.
Aperture blade shape. More blades, and rounded rather than straight-cut blades, produce rounder highlight circles. A lens with 5 straight aperture blades produces pentagon-shaped bokeh balls when stopped down even slightly. A lens with 9 rounded blades produces near-perfect circles. This is why photographers check the aperture blade count in lens reviews: it directly affects the shape of out-of-focus highlights.
Swirly bokeh. Certain vintage lens designs — notably the Soviet Helios 44-2 58mm f/2 — produce a distinctive swirling pattern in background blur, where the circles spin outward from the center of the frame. It’s optically imperfect but visually interesting enough that people actively seek these lenses. Taste varies.
Separation. Clean bokeh means the subject’s edge separates clearly from the background without a distracting halo or fringing. Some lenses produce color fringing (usually magenta or green) at the boundary between sharp and unsharp areas, particularly at wide apertures. This is chromatic aberration and is more of a problem in backlit situations.
The Best Budget Lenses for Background Blur
50mm f/1.8 — start here. Every major camera manufacturer makes a version in the $125–250 range new. Canon EF 50mm f/1.8 STM, Sony FE 50mm f/1.8, Nikon Z 50mm f/1.8 S (slightly more expensive at $400, but optically superior). The Canon EF version — often called the “nifty fifty” — can be found used for $60–80 and is genuinely capable for portrait work. The bokeh isn’t the smoothest available, but it’s dramatically better than any kit zoom at any aperture.
The 50mm limitation: on a full-frame sensor, 50mm requires you to be about 8–10 feet from a subject for a head-and-shoulders portrait. This feels close. On a crop sensor (APS-C), 50mm is effectively 75–80mm equivalent, which is actually ideal for portraits.
85mm f/1.8 — the portrait standard. This is where the jump in both DoF control and bokeh quality is most noticeable. Canon EF 85mm f/1.8 USM runs $350 new or $150–180 used and has been the reliable recommendation for portrait work for 25 years. The Sony FE 85mm f/1.8, Nikon AF-S 85mm f/1.8G, and Sigma 85mm f/1.4 Art (more expensive, different performance tier) cover other mounts.
At f/2.0 on an 85mm from 10 feet, a person’s head fills the frame appropriately and the background 20+ feet behind them dissolves completely. This is the setup that produces the clean portrait blur that most people are visualizing when they want “that professional look.”
50mm f/1.4 vs. f/1.8: the f/1.4 version costs significantly more (3–5x in most cases). The DoF at f/1.4 is marginally shallower than f/1.8. Whether the bokeh quality is actually better depends on the specific lens — the Canon 50mm f/1.4 has slightly rougher bokeh rendering than the f/1.8 version in some common situations. Upgrading from the 50mm f/1.8 to f/1.4 is rarely the highest-impact investment. Moving to the 85mm f/1.8 from any 50mm is almost always the higher-impact change.
Vintage options: the Helios 44-2 58mm f/2 (M42 mount, ~$40–80 on eBay) plus a mount adapter (~$10–15) is a legitimate option for anyone who wants character in their blur. The swirly rendering is polarizing but distinctive. Manual focus only, older coating means more flare in backlit situations — acceptable trade-offs for the price.
Group Shots and the Aperture Rule
Shallow depth of field and group portraits are in direct conflict. At f/1.8, the zone of sharpness might be 3–4 inches deep at typical portrait distances. Two people standing at different distances from the camera will not both be in that zone.
The working rule for groups: approximately one f-stop per person in the frame.
- 1 person: f/1.8–f/2.8
- 2 people (parallel to sensor): f/2.8–f/3.5
- 3–4 people: f/4–f/5.6
- 5–8 people: f/5.6–f/8
- Large groups in rows: f/8–f/11
This assumes people are positioned roughly parallel to the camera — at the same depth in the frame. If the arrangement is diagonal (people at different distances), close up significantly. A group of 5 in a loose semi-circle at various distances from the camera often needs f/8 or more, even if you’d prefer the background blur that f/2.8 would give you.
The trade-off is real: more people in focus means less background blur. The ways to partially compensate: position the group farther from the background (more subject-to-background distance), and use the longest focal length the location allows. Both increase background blur without requiring a wider aperture.
The same principles apply to the aperture choices in portrait lighting setups where multiple subjects at different distances need to be simultaneously readable.

Phone Portrait Mode — What It Does and Where It Fails
Portrait mode on current smartphones is computational bokeh: the phone uses AI to detect subject edges and then applies simulated blur to everything classified as “background.” It can look convincing in the right conditions and unconvincing in others.
Where it works: single subjects with clear silhouettes against simple backgrounds, good lighting, moderate complexity at the subject’s edges. A person standing against an uncluttered wall at normal portrait distance.
Where it fails:
Hair. Individual hairs at the subject’s outline are difficult to classify — the AI often either includes stray hairs in the “background” (cutting parts of the hair away) or extends the sharp zone around all of them (creating a halo of sharpness around the head that doesn’t look natural).
Glasses. The lenses are transparent, which confuses subject/background classification. The AI sometimes partially blurs through spectacles onto the face.
Complex scenes. Any situation where subject and background interleave — shooting through a doorway, a person in a crowd, foreground elements overlapping the subject — often produces artifacts at those overlap points.
Specular highlights. In a real lens, out-of-focus bright lights render as bokeh balls. In portrait mode, they render as blurred blobs of the same shape. The simulation doesn’t produce actual circle-of-confusion rendering because that requires a real optical defocus — not a filter applied post-capture.
The adjustable “aperture” setting in iPhone and Pixel portrait mode (f/1.4 through f/16) controls the intensity of the blur effect, not an actual aperture. The result at “f/1.4” on a phone is heavier blur than at “f/4” — but neither represents real optics.
For subjects that work within portrait mode’s strengths, it’s useful and produces images with genuine background separation that no phone camera could achieve optically. For anything at the edges of those strengths, the artifacts are obvious at full size.
FAQ
What’s the difference between bokeh and depth of field?
Depth of field is the range of distances that appear sharp — a technical measurement. Bokeh is the visual quality of out-of-focus areas — an aesthetic judgment. You can have very shallow depth of field with mediocre bokeh. They’re related but controlled by different factors.
What aperture should I use for a blurry background?
Start with f/2.8 or wider. But before touching the aperture, move your subject farther from the background — this is often more effective than a wider aperture. Then close distance to the subject. Then open the aperture. Then consider a longer focal length. The aperture step is third or fourth, not first.
What’s the best lens for bokeh under $200?
The 50mm f/1.8 for your camera system, ideally a used Canon EF 50mm f/1.8 STM (~$70–80) or equivalent. It won’t produce the smoothest bokeh available, but it will produce dramatically better results than any kit zoom at any aperture. If you can stretch to $350–400, a used 85mm f/1.8 produces noticeably better results and is the more appropriate focal length for portrait work.
Why does my background still look sharp at f/1.8?
The subject is probably too close to the background. Move them farther away before adjusting anything else. Also check that you’re actually at f/1.8 and not in an aperture priority mode that’s selecting a narrower aperture than you expect.
Can I get professional-looking blur on a phone?
For simple subjects in clean conditions, portrait mode produces convincing background separation. The artifacts become apparent with complex edges, hair, glasses, and subjects against intricate backgrounds. For those situations, the gap between computational bokeh and real lens optics is significant.