
What affects depth of field — aperture, focal length, subject distance, or sensor size?
This article gives a clear, simple answer and shows quick tests you can try. You will see how aperture, focal length, camera-to-subject distance, and sensor size each change DOF.
We also explain less obvious factors like circle of confusion, magnification, diffraction, and lens bokeh. Plus you get practical shooting recipes, EXIF examples, side-by-side images, a printable cheat-sheet, and recommended DOF apps.
Whether you shoot portraits, landscapes, macro, or wildlife, this guide shows the steps to get the DOF you want. Ready to control background blur or keep everything sharp? Let’s dive in.
What affects depth of field?

If you are wondering what affects depth of field, the short, complete answer is this: aperture (f‑number), focal length, the distance between camera and subject, and the camera’s sensor size. These four factors work together to decide how much of your image looks acceptably sharp in front of and behind your focus point.
Wider aperture (smaller f‑number) gives a shallower depth of field, and narrower aperture (larger f‑number) gives a deeper depth of field. Longer focal lengths tend to produce shallower depth of field when you keep the same framing, while shorter focal lengths tend to show more depth. Moving closer to your subject reduces depth of field, while moving farther away increases it. For the same framing and aperture, a larger sensor yields a shallower depth of field than a smaller sensor.
Picture these quick comparisons you can try yourself. Shoot a 50mm lens at f/1.8 and again at f/8 to see the background melt and then sharpen. Frame a portrait the same way with a 50mm lens and a 200mm lens at the same aperture, and notice how the telephoto makes the background blur stronger. Move from a distant subject to a macro close‑up and watch the depth shrink to a razor-thin slice.
There are also secondary influences that often confuse photographers. The circle of confusion you accept as “sharp,” overall magnification in the frame, diffraction at very small apertures, and lens design that shapes bokeh can all shift what you perceive as depth of field. If you want a friendly refresher before diving deeper, this beginner’s guide provides a solid foundation.
As you read on, imagine side‑by‑side sliders for each comparison so you can see focus planes and blur grow and shrink. That visual habit will make the factors affecting depth of field feel intuitive on your next shoot.
Aperture (f‑number): how it controls depth of field and why it matters
Aperture is the opening in your lens, and it controls how wide the cone of light is that reaches your sensor. A wide cone makes the focus fall off quickly around the plane of focus, while a narrow cone makes that transition more gradual and therefore deeper in both directions.
The relationship is simple to remember and powerful to use. A small f‑number means a wide aperture and shallow depth of field, while a large f‑number means a narrow aperture and deep depth of field. This is the fastest way to dial in background blur or front‑to‑back sharpness.

EXIF example: 50mm, f/1.8, 1/200 s, ISO 100, distance 2.0 m, full‑frame. Background turns creamy and only the eyes are tack sharp.

EXIF example: 50mm, f/8, 1/25 s, ISO 100, distance 2.0 m, full‑frame. Face and some background details become clear, and context returns.
If you place two frames side by side at f/1.8 and f/8 with identical composition, the aperture difference alone explains the change in background clarity. For portraits, that difference can be the line between a dreamy mood and a reportorial look.
Aperture also ties directly to exposure, so changing f‑number pushes you to adjust shutter speed or ISO. Opening to f/1.8 lets in four stops more light than f/8, which can save a high ISO or a slow shutter in dim scenes, but you pay with a thinner slice of focus.
At very small apertures like f/16 to f/22, diffraction starts to soften the image despite the deeper depth of field. Every lens has a sweet spot around f/5.6 to f/8 on many setups where sharpness across the frame is excellent without too much diffraction.

EXIF example: 50mm, f/16, 1/6 s, ISO 100, distance 2.0 m, full‑frame. Foreground to background is acceptably sharp, but micro‑contrast is slightly reduced by diffraction.
Here is a quick creative translation you can memorize. Use wide apertures to isolate your subject and control the story by hiding distractions, or use narrow apertures to bring in context and show relationships across the scene. Both approaches are useful, and your aperture ring is your storytelling dial.
If you need a quick refresher on background blur and aperture linkage, the step‑by‑step examples in this essential guide can help you visualize the changes before you shoot. It pairs perfectly with the comparisons you just saw.
There are practical wrinkles you will meet in the field. In bright light a wide aperture can force a shutter speed beyond your flash sync or a base ISO, so a neutral density filter lets you keep the blur without overexposure.
Tip about when not to stop down too far: if you find yourself at f/22 on a modern high‑resolution camera just to gain a little extra depth, consider stepping back or focus stacking instead. You will often get more crisp detail at f/8 to f/11 plus a better technique than by pushing into heavy diffraction.
For genre targets, aim for broadly useful ranges and refine from there. Solo portraits often sing at f/1.8 to f/2.8 for eyes‑sharp shots, group portraits usually land in the f/4 to f/8 range, and landscapes frequently look best around f/8 to f/11 where the lens is sharp and depth is deep. Macro work often needs f/8 to f/16, but even then you will likely want stacking because magnification is the boss there.
Focal length and camera–subject distance: how lens choice and proximity interact to change DOF
Many people say longer lenses always have shallower depth of field, but that is only half the story. Focal length and camera distance dance together, and the depth you see depends on both at once along with your framing.
When you keep the subject the same size in the frame, switching from 50mm to 200mm usually gives a shallower depth of field at the same f‑number. That is because to keep the framing, you step back with the longer lens, and magnification at the sensor changes the blur geometry in your favor.

EXIF example A: 35mm, f/2.8, 1/400 s, ISO 100, distance 1.0 m, full‑frame. Background shows moderate detail with a wide‑angle sense of space.

EXIF example B: 85mm, f/2.8, 1/640 s, ISO 100, distance 2.4 m, full‑frame. Subject isolation increases and the background becomes more blurred.

EXIF example C: 200mm, f/2.8, 1/1600 s, ISO 100, distance 5.6 m, full‑frame. Background blur gets strong and appears closer, with notable separation from the subject.
Another scenario is to keep the distance the same and change focal length while you let the framing change. At equal distance and aperture, the longer lens does not magically create shallower depth of field in the mathematical sense, but it magnifies the blur circles more, which makes the background look softer.

EXIF comparison: 35mm and 85mm at 2.0 m, f/2.8, ISO 100, full‑frame. The 85mm frame shows stronger blur because the background is enlarged relative to the subject.
These two comparisons explain why telephotos are popular for portraits and wildlife. The longer focal length increases subject isolation, simplifies busy backgrounds, and compresses perspective in a pleasing way when you keep your subject framed the same.
Wide‑angle lenses tend to make depth of field feel deeper, but you can still get shallow depth by moving very close. A 24mm lens at f/2.0 can blur a background nicely if you place the subject near the front element and keep the background far away.
Working distance matters for people and macro alike, and this is where understanding what determines depth of field pays off. If you cannot open the aperture more, take a step closer for extra blur, or take a step back for extra sharpness across a group.
In portrait sessions, choose your lens based on how much space you have and how much background you want to include. An 85mm at f/2.0 from about 2.5 meters is a classic head‑and‑shoulders recipe, while a 35mm at f/4 from 3 meters keeps the environment in play without faces going soft.
For macro, the story changes dramatically because magnification pushes depth of field to razor‑thin slivers. A dedicated macro 100mm lens at 1:1 magnification at f/11 still gives tiny fractions of a millimeter of depth, so technique and stacking become crucial.
When you combine focal length and distance consciously, the big picture becomes simple. Longer focal lengths exaggerate blur and separation, and moving the camera reshapes depth in practical, predictable steps you can use even when your aperture is locked by available light.
Camera sensor size and other technical factors that influence depth of field
Sensor size changes depth of field because it changes how you achieve the same field of view. For the same framing and aperture number, a larger sensor produces a shallower depth of field than a smaller sensor by requiring a longer focal length or closer distance.

Practical example: to frame a headshot the same way, a full‑frame camera might use 85mm at f/2.8, while an APS‑C camera might use around 56mm at f/2.8. The full‑frame setup will render a slightly shallower depth of field due to the longer focal length for the same composition.
The circle of confusion is the size of a blur spot we still accept as “sharp,” and it depends on sensor size and viewing conditions. Depth of field calculators use a CoC value to define what is “acceptably sharp,” so your settings and the CoC you choose directly affect the numbers you see.
Magnification is the boss in macro, which is why depth becomes so thin at close‑up distances. This is also where stopping down can help, but you will hit diffraction earlier because effective aperture grows with magnification, and sharpness slowly gives way even as depth increases.

Bokeh quality also influences how we perceive depth beyond the numbers. Aperture blade count, the shape of the diaphragm, and lens corrections like spherical aberration all change how out‑of‑focus areas look at the same measured depth of field.
If you want to run precise comparisons across sensor formats and lenses, a reliable calculator is your friend. You can explore equivalence and hyperfocal values in the Photopills definitive guide and then test those predictions in the field with your own lenses.
Practical tips, shooting recipes and tools: how to get the DOF you want in real shoots
Let’s turn the theory into frames you can put in your portfolio today. The examples below include focal length, aperture, distance, and the expected look so you can dial in results without guesswork.
Portrait headshot recipe: use an 85mm prime on full‑frame at f/2 to f/2.8 from 1.5 to 3 meters. Eyes will be crisp, ears will fade gently, and the background melts into color for clean subject isolation.
Environmental portrait recipe: try a 35mm or 50mm lens at f/4 to f/5.6 with the subject 2 to 4 meters away. You will hold face clarity while keeping enough background detail to tell the story of place.
Landscape with maximum depth: a 16–35mm lens at f/8 to f/11 with hyperfocal focus gives foreground and background sharpness. Aim your focus slightly beyond the closest detail you care about to balance front and back equally.

EXIF example: 16mm, f/11, 1/4 s, ISO 100, focus around 1.2 m, full‑frame. Rocks at your feet and mountains at infinity look crisp in the final image.
Macro with usable depth: a 60mm or 100mm macro at f/8 to f/16 with focus stacking creates a natural look without diffraction mush. Move the camera as little as possible and stack a short sequence to cover the subject’s contours.

EXIF example: 100mm macro, f/11, 1/60 s, ISO 200, distance 0.35 m, full‑frame, stack of 12 frames. Depth expands across the insect while the background remains buttery.
Wildlife isolated subject: a 300mm at f/4 to f/5.6 from moderate distance keeps animals clean against busy foliage. Work around 10 to 20 meters and watch your background distances, because far backgrounds blur more pleasingly.
Here is a plain guide to hyperfocal distance you can use without math anxiety. The hyperfocal distance is the focus distance that gives you acceptable sharpness from half that distance to infinity at a chosen aperture and focal length.
If you want the formula, it reads as the focal length squared divided by aperture times circle of confusion, plus the focal length. You do not have to memorize it, but knowing that focal length, f‑number, and CoC drive the result helps you choose a lens and aperture quickly.
To set it in the field, choose a smallish aperture like f/8 or f/11 and focus a bit beyond the nearest important foreground. Use a DOF app to read out a distance in meters, then switch to manual focus and place your focus there for consistent results.
Focus stacking is the next level when you need more depth than any single frame gives. Shoot a short series moving the focus from front to back by small increments, keep exposure and framing constant, and blend the images later for a natural, detailed final shot.
When the sun is bright and you want shallow depth, consider neutral density to tame shutter speed and ISO. A 3‑stop or 6‑stop filter lets you stay wide open without blowing out highlights or exceeding flash sync when you add light.
Tripods earn their place when you work at small apertures and slower shutters or when you stack frames. Stabilizing the camera locks your composition and makes small focus changes easier and more precise.
With very shallow depth of field, autofocus technique matters a lot. Use a single point on the closest eye, consider back‑button focus to avoid accidental refocusing, and avoid focus‑and‑recompose at f/1.4 distances because even small moves can shift focus off the eye.
Common pitfalls are easy to fix once you see them. Expecting an entire face to be sharp at f/1.4 from up close is unrealistic, so either step back a little or stop down to f/2.8 to f/4 for head‑and‑shoulders work.
Another mistake is leaning on very small apertures to chase depth and losing crispness to diffraction. If your images feel a little soft at f/22, test the same scene at f/11 with tidy technique and compare at the same output size.
Remember that lenses have personality, including field curvature and bokeh signatures. Test your lenses at common distances and apertures to learn where they shine and how their out‑of‑focus areas render in real scenes.
A tiny cheat sheet you can remember in your head goes like this. For shallow depth of field, open the aperture, use a longer focal length, move closer to your subject, and keep the background far away.
For deep depth of field, close the aperture to f/8–f/11, use a shorter focal length, step back, and place your focus near the hyperfocal distance. If you need even more, blend a few focus‑stacked frames to extend depth naturally.
Here are six mini case studies to tie it all together in the field. A bridal portrait at 85mm, f/2.0, 1/500 s, ISO 100 from 2.2 meters created velvet blur behind the veil and kept both eyes tack sharp.
A chef’s portrait at 35mm, f/4, 1/100 s, ISO 400 from 2.8 meters held the hands and knives detailed while the kitchen fell into gentle context. The frame told the story of craft, not just a face.
A cityscape at 24mm, f/8, 1/10 s, ISO 100 using hyperfocal focus near 3 meters gave crisp foreground lines and distant skyline texture. The tripod kept everything steady without raising ISO.
A product shot of a watch at 100mm macro, f/11, 1/30 s, ISO 160 as a stack of 15 frames produced edge‑to‑edge sharpness on the dial and bezel. The background stayed silky thanks to distance and a wide physical aperture.
A hummingbird at 400mm, f/5.6, 1/3200 s, ISO 800 about 6 meters away popped off a messy garden due to long focal length blur. Positioning with a distant hedge behind doubled the effect.
An intimate flower detail at 60mm macro, f/8, 1/125 s, ISO 200 from 0.25 meters emphasized the petal rim with a soft swirl behind. A small stack of five frames held the important edges while keeping the painterly look.
If you learn best by guided visuals, spend a few minutes with a DOF calculator before a shoot and then confirm the look on location. Many apps let you save your camera and sensor so you can quickly see how focal length and aperture changes will play out on your gear.
For a richer dive and more exercises, bookmark a trusted depth of field tutorial and revisit it as you practice. Combining a calculator’s predictions with hands‑on tests will cement how and why these settings change your images.
The core idea worth keeping is that what affects depth of field is predictable and controllable once you master the few levers that matter. Aperture is the fastest lever, distance is the handiest lever, focal length is the stylistic lever, and sensor size is the structural lever that frames it all.
When your site supports it, present your comparisons with a side‑by‑side slider so readers can scrub between frames. Seeing the plane of focus and blur shift is the quickest way to build that muscle memory for how focal length affects depth of field and how aperture and background blur interlock.
What People Ask Most
What affects depth of field?
Aperture, distance to the subject, and focal length are the main things that affect depth of field.
What is depth of field and why does it matter?
Depth of field is the range in a photo that looks sharp, and it matters because it controls what stands out or fades into the background.
How does aperture affect depth of field?
A wider aperture (lower f-number) creates a shallower depth of field and a blurrier background, while a smaller aperture increases sharpness across the frame.
Does camera-to-subject distance change depth of field?
Yes — getting closer to your subject makes the depth of field shallower, and moving farther away increases it.
How does focal length influence depth of field?
Longer focal lengths usually produce a shallower depth of field than shorter ones when the subject fills the frame similarly.
How can I get a blurry background for portraits quickly?
Use a wide aperture, move closer to your subject, and use a longer lens or zoom in to make the background blurrier.
What common mistakes do beginners make about depth of field?
Beginners often think cropping or digital zoom will change depth of field, and they forget that aperture, distance, and focal length are what control it.
Final Thoughts on Depth of Field
Depth of field gives you direct control over what reads sharp and what melts into the background, and if a memory trick helps, pin 270 in your head as a quirky bookmark. In this guide we focused on the four big levers—aperture, focal length, subject distance, and sensor size—and showed how each changes separation so your subject stands out or the whole scene stays crisp. For most photographers, that control turns a snapshot into a story.
Be realistic: very wide apertures or tiny apertures bring tradeoffs—wide apertures make focus finicky, and small apertures invite diffraction—so test your lens before committing to extreme settings. Portrait and macro shooters will benefit most from these techniques, though landscape and wildlife photographers will also find the recipes useful, since we answered the opening question—what affects depth of field—by naming the four factors, outlining the optics, and offering hands-on recipes. Try a few of the suggested setups and you’ll quickly see how small changes make big photographic differences.





0 Comments