We may earn a commission from links on this page, at no extra cost to you. Picks are researched, not sponsored.
Depth of field is one of the most useful ideas in photography because it decides what the viewer's eye reads as the subject. A shallow depth of field isolates one face in a crowd. A deep one keeps a whole landscape or a real estate interior crisp corner to corner. Four things control it.
The four controls
Think of these as dials that all push depth of field shallower or deeper.
1. Aperture (the main one)
A wide aperture, a low f-number like f/1.8, gives a shallow depth of field. A narrow aperture, a high f-number like f/11 · f/16, gives a deep one. This is the primary control and the one you reach for first. The reason a low number is a wide opening is in what aperture and f-stop mean.
2. Focus distance
The closer you focus, the shallower the depth of field. A macro shot of a flower at a few inches has a paper-thin sharp zone even at f/8. The same lens focused across a street has a deep one. Distance to the subject matters as much as the aperture for close work.
3. Focal length
Focal length changes the background more than the depth of field. At the same subject framing and aperture, total depth of field is virtually constant with focal length, but a longer lens enlarges the background and its blur, so an 85mm portrait lens separates a subject from the background far more than a 24mm wide angle. Standing in the same spot, a longer lens does give a shallower depth of field, because it magnifies the subject. This feeds the prime versus zoom lens choice.
4. Sensor size
A larger sensor produces a shallower depth of field at the same aperture and framing. This is why full-frame cameras blur backgrounds more easily than phones or small sensors, and why phones fake the look with software. The full explanation is in sensor sizes explained.
"Acceptably sharp" depends on how the photo is viewed. Sharpness fades gradually on both sides of the focus point, and depth of field figures assume a blur spot (the circle of confusion) small enough to go unnoticed on an 8x10 inch print viewed from about a foot away, as Cambridge in Colour explains; print bigger or zoom to 100 percent and the zone that looks sharp gets thinner.

Shallow versus deep, and when to use each
Shallow (wide aperture, close, long lens): portraits, food, products, anything where you want the subject to pop and the background to disappear. The how-to is how to get a blurry background.
Deep (narrow aperture, back up, wide lens): landscapes, architecture, real estate interiors, group photos, anything where front-to-back sharpness matters. A good starting point for "all sharp" is f/8 · f/11. Focusing roughly a third of the way into the scene is a rough fallback that Cambridge in Colour calls rarely optimal; hyperfocal distance places focus more precisely.
A reliable everyday recipe sits in between: f/5.6 · 1/250 · ISO 200 gives enough depth for a person plus some context, while keeping the shutter fast. All of this is the give-and-take of the exposure triangle: close down for more depth and you let in less light, so you compensate with shutter or ISO.

Common mistakes
The most common mistake is shooting portraits wide open at f/1.4 and missing focus, because the sharp zone is too thin to forgive a small error. Stop down to f/2.8 for a more reliable margin while keeping plenty of blur, and focus on the near eye. Back button focus helps you place focus precisely.
The opposite mistake is shooting a landscape at f/22 to maximize depth, then losing overall sharpness to diffraction. On full frame you rarely need more than f/11 for deep focus. Smaller sensors show diffraction sooner, so the same ceiling is about f/8 on APS-C and f/5.6 on Micro Four Thirds. Going further does add depth, since depth of field grows in proportion to the f-number, but diffraction softens the whole frame. A third error is forgetting that backing away from your subject deepens the zone, which is sometimes the easiest fix when too little is in focus.
What aperture gives the most depth of field?
A narrow aperture, a high f-number, gives the deepest depth of field. f/11 is a strong, safe choice for landscapes and interiors on full frame (about f/8 on APS-C). Going from f/16 to f/22 still adds roughly 40 percent more depth, but diffraction softens the whole image at those settings.
What is the difference between depth of field and bokeh?
Depth of field is how much of the scene is in focus. Bokeh is the visual quality of the out-of-focus areas, the look of the blur itself. A shallow depth of field is what produces a large, blurred background; bokeh describes how pleasing that blur appears.
How do I get everything in focus?
Use a narrow aperture like f/8 to f/11, a wider lens, stand back from the subject, and focus at the hyperfocal distance, or about a third of the way into the scene as a rough fallback. On smaller sensors this is easier, since they already carry more depth of field at a given aperture.
Depth of field ties together aperture, focus, and lens choice, so it rewards understanding the fundamentals together. Pair this with what aperture and f-stop mean and the full exposure triangle.
Where to go next
The fastest way to build intuition is to run real numbers through the depth of field calculator: try the same lens at f/2.8 and f/11, then at two different subject distances, and watch the near and far limits move. For landscapes, hyperfocal distance is the next concept to learn. On the gear side, shallow depth of field comes cheapest from a fast prime, compared in the best prime lenses roundup, while deep focus for scenes and interiors usually means a wide lens from the best wide-angle lenses guide.
Practice this
Turn the guide into a working setup
Keep going
Next useful steps
Pick one. Each link continues the same job without starting the research over.
Researched, not personally tested: picks compare specifications, available owner feedback, and established expert sources. As an Amazon Associate I earn from qualifying purchases. We may earn a commission from links here, at no extra cost to you. How we research →




