Depth of Field Explained
The zone of sharpness in your photo, what makes it shallow or deep, and the four controls that put it where you want it.
Depth of field is one of those ideas that sounds technical and turns out to be simple once you picture it. It is the single biggest reason one photo has a dreamy, blurred-out background while another keeps a whole mountain range crisp from the flowers in front to the peaks behind. Once you understand what sets it and how to move it, you stop hoping for a look and start choosing it.
What depth of field actually is
A camera focuses on one exact distance. But sharpness doesn’t drop off instantly on either side of that plane — there’s a zone, stretching some distance nearer and some distance farther, that still looks acceptably sharp to your eye. Depth of field is that zone: the range from near to far that appears in focus. Everything inside it reads as sharp; everything in front of or behind it melts into blur, gently at first and then completely.
“Acceptably sharp” is the key phrase. There is exactly one plane in perfect focus, but our eyes accept a band around it as sharp, and that band is what we’re talking about. When people say a photo has a “shallow” or “deep” depth of field, they’re describing how thick that band is.
Shallow versus deep — and when you want each
A shallow depth of fieldis a thin zone of sharpness. Your subject is crisp and almost everything else — especially the background — dissolves into soft blur. This is the classic portrait look: it isolates a person, lifts them off a distracting background, and draws the eye straight to them. It’s also how you make food, a product, or a single flower pop while its surroundings fade away. If your goal is a blurry background, that’s shallow depth of field at work — our guide to getting a blurry background is the practical companion to this one.
A deep depth of fieldis a wide zone of sharpness, where the foreground, the middle, and the distance are all in focus together. This is what you want for most landscapes, cityscapes, architecture, and group photos — anywhere the whole scene is the subject and you need it sharp front to back. The same photo of a valley looks careless if only the mid-ground is sharp and deliberate when every layer holds detail.
Neither is “better.” They’re tools. The skill is deciding which story the image is telling — one subject or the whole scene — and then dialing the zone of sharpness to match.
The four things that control depth of field
Four factors decide how thick your zone of sharpness is. You can adjust any of them, and in practice you’ll usually lean on the first.
- Aperture— the size of the opening inside the lens, set by the f-number. A wider opening (a lower f-number, like f/1.8) gives a shallowerdepth of field; a narrower opening (a higher f-number, like f/11) gives a deeper one. This is the control you’ll reach for first, because it changes depth of field without changing where you stand or what lens you use. Because f-numbers work backwards — small number, big opening — they trip up beginners, so our camera settings guide walks through them alongside shutter speed and ISO.
- Focal length— how “zoomed in” the lens is. Longer focal lengths (an 85mm or 135mm) render a shallower-looking depth of field with more compressed, creamier backgrounds; wider focal lengths (a 24mm) look deeper and keep more of the scene sharp. This is part of why portrait shooters favor longer lenses and landscape shooters favor wide ones.
- Focusing distance— how close you are to whatever you focus on. The closer you focus, the shallower the depth of field becomes; the farther away your subject, the deeper it gets. Step in toward a subject and the background blur grows; back off and more of the scene snaps into focus.
- Sensor size— the size of the sensor capturing the image. For the same framing and the same f-number, a biggersensor (full-frame) gives a shallower depth of field than a smaller one (APS-C or Micro Four Thirds). It’s a big reason full-frame cameras get that effortlessly blurred background, and why smaller-sensor cameras have to work a little harder for the same look.
These stack. The shallowest possible depth of field comes from combining them: a wide aperture, a longer lens, a close subject, and a large sensor all at once. The deepest comes from the opposite — a narrow aperture, a wide lens, and a subject that isn’t right on top of you. A fast prime lens gives you the most room to go shallow, which is why the picks in our best lenses for portraits guide are built around wide maximum apertures.
Hyperfocal distance: getting the most sharpness in a landscape
When you want everything sharp — the foreground rocks and the distant peaks together — there’s a smarter move than just focusing on the horizon. The trick is a focusing point called the hyperfocal distance. In plain terms: for a given aperture and lens, there’s a specific distance you can focus at that pushes your zone of sharpness as far as it will go — everything from roughly half that distance all the way out to the horizon comes out acceptably sharp.
The practical takeaway matters more than the math. If you focus on the far mountains, you waste sharpness beyond them (there’s nothing out there) and your foreground goes soft. Focus a bit intothe scene instead — not on the nearest rock, not on infinity, but somewhere in the near-to-middle distance — and the whole frame holds together. That, combined with a smaller aperture, is how landscape photographers get front-to-back sharpness, and it’s the core idea in our landscape photography guide.
Why macro and close-ups have razor-thin depth of field
Remember that focusing distance is one of the strongest controls: the closer you focus, the shallower things get. Macro photography focuses extremelyclose — on an insect, a droplet, a coin — so the zone of sharpness shrinks dramatically. Up close, depth of field can collapse to just millimeters, even when you stop the aperture down. The eye of a bee might be sharp while its wings are already blurred.
That’s why close-up shooters stop their aperture down hard, focus with great care on exactly the right spot, and often use a technique called focus stacking — combining several frames focused at slightly different distances into one image that’s sharp throughout. Knowing why the sharpness is so thin is half the battle; it tells you to slow down and be deliberate about where that thin sliver lands.
The depth-of-field preview button
Here’s a detail many beginners never notice. Most cameras keep the lens wide open while you compose, so the viewfinder stays bright, and only close the aperture to your chosen f-number at the instant you take the shot. That means what you see isn’t always the depth of field you’ll get. The depth-of-field preview button— usually a small button near the lens mount — closes the aperture down while you hold it, so you can see the true zone of sharpness before you press the shutter.
The image gets darker when you press it (less light is coming in), but that’s expected — you’re looking at how much of the scene is actually in focus. On mirrorless cameras the electronic viewfinder often shows the real depth of field as you change the aperture anyway, but the preview button is still there when you want a deliberate check. It’s a quick way to confirm a background is as blurred, or a landscape as sharp, as you intended.
The short version
Depth of field is the zone from near to far that looks sharp. Go shallow— wide aperture, longer lens, closer subject, bigger sensor — to isolate one subject against soft blur. Go deep— narrow aperture, wider lens, focus into the scene — to keep a whole landscape sharp, and use the hyperfocal idea to stretch that sharpness as far as it’ll reach. Remember that macro work leaves you almost no margin, and that the preview button lets you check the result before you shoot. Master this one idea and you control the most expressive tool in photography — where the viewer’s eye is allowed to rest.
Frequently asked questions
What is depth of field in simple terms?
Depth of field is the zone in your photo, from near to far, that appears acceptably sharp. Everything inside that zone looks in focus; everything in front of or behind it falls off into blur. A shallow depth of field is a thin zone of sharpness; a deep depth of field is a wide one.
What controls depth of field?
Four things: aperture (a wider opening with a lower f-number gives a shallower zone), focal length (longer lenses look shallower), focusing distance (the closer you focus, the shallower it gets), and sensor size (a bigger sensor is shallower at the same framing). Aperture is the control you'll reach for most.
How do I get a shallow depth of field?
Open the aperture to its lowest f-number, use a longer focal length, and get closer to your subject while keeping the background far behind them. A fast prime lens on a larger sensor makes this easiest. Shallow depth of field is what isolates a portrait subject against a soft background.
How do I get a deep depth of field for landscapes?
Stop the aperture down to a higher f-number like f/8 or f/11, use a wider focal length, and focus a bit into the scene rather than on the nearest object. Focusing at the hyperfocal distance keeps everything from roughly half that distance to infinity acceptably sharp.
Why is depth of field so thin in macro photography?
Focusing distance is one of the biggest controls, and macro means focusing extremely close. At those distances the zone of sharpness can shrink to millimeters even at small apertures, which is why macro shooters stop down hard, use focus stacking, and take great care with exactly where they focus.
Keep reading
How to Get a Blurry Background
Shallow depth of field for subject blur.
Read the guideCamera Settings Explained
Aperture is the main depth-of-field control.
Read the guideBest Lenses for Portraits
Fast lenses give the shallowest depth of field.
See lensesHow to Photograph Landscapes
Deep depth of field for front-to-back sharpness.
Read the guide