Depth of field is the slice of your photograph that appears acceptably sharp. Everything in front of that slice and behind that slice is progressively blurred. The depth and placement of that sharp slice is one of the most visible creative decisions in any photograph. A portrait with a 3 cm sharp zone behind a beautifully blurred background looks completely different from a landscape with everything from 2 meters to infinity in focus. Four variables control depth of field, and once you understand how they interact you can make this look intentional rather than accidental.
The four variables
Depth of field depends on aperture, focal length, focus distance, and sensor size. Change any one and depth of field changes too.
Aperture is the most direct control. Wider apertures (smaller f-numbers like f/1.4, f/2, f/2.8) produce shallower depth of field. Narrower apertures (larger f-numbers like f/8, f/11, f/16) produce deeper depth of field. Each full stop roughly doubles or halves depth of field at typical shooting distances.
Focal length affects depth of field for two reasons. The lens optics themselves change the depth slightly, but the bigger effect is that longer lenses force longer working distances to keep framing the same, and longer lenses also magnify any out-of-focus area more dramatically. The result: at the same composition, a 200mm portrait at f/4 looks much more blurred in the background than a 50mm portrait at f/4.
Focus distance has the biggest practical effect. The closer the focus point, the shallower the depth of field. At 0.5 meters, depth of field is measured in millimeters. At 3 meters, depth of field is measured in centimeters. At 10 meters, depth of field is measured in tens of centimeters. At infinity, depth of field reaches from a few meters in front of you out to infinity.
Sensor size affects depth of field indirectly through framing math. To frame the same scene, a smaller sensor forces a wider focal length or shorter working distance, both of which deepen depth of field. The practical result is that full-frame produces about one stop shallower depth of field than APS-C, and two stops shallower than Micro 4/3, for the same composition.
When shallow depth of field serves the photograph
Shallow depth of field isolates a subject from its surroundings. The viewerโs eye has nowhere to go except to the sharp area. This is why portrait photographers chase f/1.4 and f/1.8 lenses: a tack-sharp face floating in a soft background looks intentional, polished, and emotional.
Shallow depth of field also rescues bad backgrounds. A cluttered restaurant, a busy street, a distracting wall behind your subject all dissolve into smooth color when you stop down to f/2 instead of f/8. Wedding photographers rely on this for receptions where they cannot control the venue.
Macro work uses shallow depth of field by physics, not choice. At 1:1 magnification on a 100mm macro lens, depth of field at f/2.8 is about 1 mm. Even at f/11 it is only 4 mm. This is why macro photographers focus stack: they take multiple frames at different focus distances and blend the sharp slices in post.
When deep depth of field serves the photograph
Landscape photography wants everything sharp from foreground rocks to distant mountains. The standard formula is f/8 to f/11, focal length 16mm to 35mm, focus point at hyperfocal distance.
Hyperfocal distance is the focus point that produces the deepest possible depth of field for a given aperture and focal length. Focus at hyperfocal distance and everything from half that distance out to infinity is acceptably sharp. For a 24mm lens at f/8 on full-frame, hyperfocal distance is about 3 meters: focus there, and everything from 1.5 meters to infinity is sharp.
Architecture and interior photography also want deep depth of field. The reader wants to see the texture of the floor and the detail of the back wall simultaneously, so apertures of f/8 to f/11 are typical even when light is low (which forces a tripod).
Group portraits need depth of field deep enough to cover front-row to back-row faces. Two rows of people at 2 meters distance need about 30 cm of depth of field, which on full-frame at 50mm means f/4 to f/5.6.
The diffraction limit
Beyond a certain aperture, narrowing the aperture stops sharpening the image and starts softening it. This is diffraction: light bending around the edges of the aperture blades, spreading slightly across multiple sensor pixels.
The diffraction limit depends on sensor pixel density. Roughly:
- Full-frame 24 megapixels: diffraction visible past f/11
- Full-frame 45 megapixels: diffraction visible past f/8
- APS-C 24 megapixels: diffraction visible past f/8
- Micro 4/3 20 megapixels: diffraction visible past f/5.6
You can shoot past the diffraction limit when you need the depth of field more than you need maximum sharpness, but for most work staying within these limits keeps your files crisp.
Focus stacking: deeper than physics allows
When you need deeper depth of field than diffraction allows, focus stacking is the solution. Take multiple frames focused at different distances (near, middle, far) and blend the sharp slices in Photoshop, Helicon Focus, or Affinity Photo.
Landscape photographers focus stack 3 to 5 frames to get tack-sharp foreground at f/8 without diffraction softening the background. Macro photographers focus stack 20 to 50 frames at f/4 to f/5.6 to get a fully sharp insect.
Modern cameras (Olympus, Panasonic, Sony, Fuji, Nikon) include in-camera focus bracketing that automates the capture. Set the number of frames and step size, hold the shutter, and the camera shifts focus between each shot.
Practical depth of field calculations
Memorize these field-tested numbers for full-frame work:
- 24mm at f/8 focused at 3 meters: sharp from 1.5 meters to infinity
- 50mm at f/2.8 focused at 2 meters: sharp from 1.9 meters to 2.1 meters (depth about 20 cm)
- 85mm at f/1.8 focused at 1.5 meters: sharp from 1.48 meters to 1.52 meters (depth about 4 cm)
- 200mm at f/4 focused at 5 meters: sharp from 4.9 meters to 5.1 meters (depth about 20 cm)
For APS-C, multiply the depth of field by 1.5x. For Micro 4/3, multiply by 2x.
Putting depth of field to work
The decision tree: what do you want the viewer to see? If the subject is one thing and the background should disappear, aim for the shallowest depth of field that keeps the subjectโs most important features (eyes, key surface) sharp. If the subject is multiple things at different distances (a group, a landscape, a complex scene), aim for the deepest depth of field that still respects your diffraction limit.
For more on the gear and settings that shape sharpness, read our exposure triangle guide and prime versus zoom lens guide. Depth of field is where photographers stop thinking like camera operators and start thinking like visual storytellers.
Frequently asked questions
Why does my f/1.8 portrait have only one sharp eye?+
At f/1.8 on a full-frame camera shooting an 85mm lens from 1.5 meters away, the depth of field is about 3 cm. The distance between two eyes (front eye to back eye when the face is slightly turned) is often 4 to 6 cm. The back eye falls outside the sharp zone. Stop down to f/2.8 or f/4 to keep both eyes sharp, or position the subject more square-on to the camera so both eyes are at the same focal distance.
Is hyperfocal distance still useful for digital cameras?+
Yes, especially for landscape photography on a tripod. Hyperfocal distance is the focus distance that produces the deepest possible depth of field for a given aperture and focal length. Focus at hyperfocal distance and everything from half that distance to infinity is acceptably sharp. For a 24mm lens at f/8 on full-frame, hyperfocal distance is about 3 meters, so focus at 3 meters and everything from 1.5 meters to infinity is sharp. Apps like PhotoPills calculate this in seconds.
Why is depth of field different on phones than on real cameras?+
Phone cameras have very small sensors (about 1/1.7-inch on a flagship phone versus 36 mm by 24 mm on full-frame) and very short actual focal lengths (4mm to 8mm physical, even though the camera labels them as 24mm equivalent or 50mm equivalent). Short focal lengths produce huge depth of field at any aperture. To create the shallow-focus look, phones use software algorithms (Portrait Mode) that detect the subject and blur the background artificially. The result is convincing for casual viewing but breaks down at fine details like hair edges and curly leaves.
Does sensor size really change depth of field, or is that a myth?+
It really changes depth of field, but the reason is indirect. A 50mm lens at f/2.8 has the same depth of field on any sensor for the same focus distance. But to frame the same scene, a smaller sensor forces you to use a wider lens or step closer, and both moves change depth of field. The net result is that Micro 4/3 at f/2.8 has roughly the same depth of field as full-frame at f/5.6 when framing the same composition. This is the equivalence math behind the full-frame look that wedding and portrait photographers chase.
How do I get tack-sharp focus on the eye in low light?+
Three changes. First, use eye-detection autofocus (all 2026 mirrorless cameras have it; turn it on, set it to detect the closest eye). Second, drop shutter speed to no slower than 1/250 to freeze subject movement and minor camera shake. Third, take three to five shots of any important moment because at very shallow depth of field even a 1 cm sway can move the eye out of the sharp zone. Burst mode plus eye AF plus multiple frames is the modern formula for sharp portraits at f/1.4 to f/2.0.