Focus Stacking for Sharp Landscapes From Foreground to Background
There's a specific kind of landscape shot where a single frame of focus just isn't enough: a wildflower or a climber's chalked hand close to the lens, with a full mountain range receding sharply behind it. Stop down as far as you want, and physics eventually wins. At some point a single exposure can't hold both the near and far elements in true, crisp focus at once, and that's exactly the situation focus stacking is built to solve.
It's not a technique I reach for on every landscape, and it's worth being clear about that upfront. Focus stacking takes more time in the field and more time in post than a single well-composed exposure, so I use it deliberately, on the specific images where the extra effort actually changes the outcome rather than as a default habit. For a broader look at how I decide which techniques earn their place in a given shoot, the Adventure Travel Photographer's Playbook covers more of that decision-making process.
What Focus Stacking Actually Solves
Depth of field is a function of aperture, focal length, and distance to subject, and there's a real limit to how much of a scene you can hold in acceptably sharp focus within a single exposure, especially when a foreground element sits close to the lens while a background element sits far away. Stopping down to a very small aperture helps, but it comes with tradeoffs: diffraction softness at extreme apertures, longer shutter speeds that introduce motion blur risk, and a point past which stopping down further stops meaningfully helping at all.
Focus stacking sidesteps that limit by capturing multiple exposures at different focus points across the scene, each one sharp in a different zone, then combining them in post so the final image holds critical sharpness from the closest element to the farthest one. It's a way of getting depth of field that a single exposure physically can't produce, without sacrificing the specific aperture that gives the best overall image quality for each individual frame.
This matters most in landscape work where a genuinely close foreground element, a rock, a plant, a piece of gear, needs to read as sharp alongside a background that's meaningfully far away. Without stacking, you're usually forced to choose: sacrifice foreground sharpness, sacrifice background sharpness, or accept the softness that comes from pushing an aperture past its optimal range trying to get both.
When I Actually Reach for This Technique
The clearest case is a scene with a strong foreground element positioned intentionally close to the lens, paired with a background that matters just as much to the composition. If the background is soft and out of focus by design, meant to fall away and let the foreground carry the shot, stacking isn't necessary and would actually work against the intended look.
Static or near-static scenes are the other prerequisite. Focus stacking requires multiple exposures of the same composition taken in sequence, which means anything moving between frames, wind-blown foliage, water, a subject in motion, creates alignment problems when the images get combined later. I reserve this technique almost entirely for landscape compositions without significant movement in frame, or for compositions where I can time the shots between gusts of wind.
I also think about how the final image will actually be used before deciding whether stacking is worth the extra time. A hero landscape image destined for a large print or a prominent campaign placement is worth the investment. A quick supporting shot that'll be used small and won't be scrutinized closely doesn't usually justify the extra time in the field or the post-production work that follows.
How I Capture the Sequence in the Field
A stable tripod is close to non-negotiable for this technique, since even small shifts in camera position between exposures make the stacking process significantly harder and less reliable. I lock the composition down completely before starting the sequence, since any reframing partway through means starting over.
I typically shoot somewhere between three and seven frames for a stack, starting with focus on the nearest element I want sharp and working back through the scene in deliberate increments until the farthest element is covered. The exact number depends on how much depth the scene actually spans and how wide the aperture I'm shooting at is, since a narrower aperture needs fewer frames to bridge the same depth than a wider one would.
Keeping exposure settings consistent across the whole sequence matters too. I lock aperture, shutter speed, and ISO before starting, adjusting only focus between frames, so the exposures blend cleanly later without visible seams from mismatched brightness or contrast between the layers.
Where This Overlaps With Bracketing, and Where It Doesn't
Exposure bracketing and focus stacking solve different problems, and it's worth being clear about that distinction since they're both multi-exposure techniques that sometimes get conflated. Bracketing captures the same focus point at different exposure values to handle a high dynamic range scene. Focus stacking captures the same exposure value at different focus points to handle a depth-of-field limitation. Some complex scenes genuinely benefit from both at once, though that adds real complexity to the post-production process.
When a scene has both a high-contrast lighting situation and a depth-of-field challenge, I have to decide whether the extra complexity of combining both techniques is actually worth it for that specific image. Often it's more efficient to solve the dynamic range problem through careful single-exposure technique and reserve stacking purely for the depth issue, rather than trying to solve both problems simultaneously through an even more elaborate capture and blending process.
I'd rather under-engineer a shot and get a clean, simple result than over-engineer it and end up fighting artifacts from combining too many variables in post. Simplicity in the field usually pays off later, even when a more technically ambitious approach might theoretically produce a marginally better result.
The Post-Production Process, Realistically
Once the sequence is captured, the blending happens through dedicated focus-stacking software or through manual layer masking in an editing program, depending on how much control a specific image needs. Automated stacking tools handle straightforward scenes well, aligning and blending the sharp regions from each frame with minimal manual intervention required.
More complex scenes, especially ones with fine detail at the transition zones between focus layers, sometimes need manual cleanup after the automated blend. Edges where foreground meets background can show halos or soft transition artifacts that need careful hand correction, particularly around fine detail like grass, hair, or foliage where the automated algorithm consistently struggles to find a clean, believable boundary between adjacent focus zones.
I always budget real, dedicated time for this step rather than assuming the automated blend will be perfectly usable straight out of the software. A stacked image that looks slightly off at the seams is often genuinely worse than a single well-exposed frame with a softer background, since the artifacts from a bad stack read clearly as a technical mistake rather than a deliberate stylistic choice a viewer might otherwise accept.
The Tradeoffs Worth Being Honest About
Focus stacking adds real time to a shoot, both in the field capturing the sequence and in post blending it, and that time has to come from somewhere on a day with a full shot list. I weigh that cost against how much the specific image actually benefits from full-depth sharpness before committing to the technique on any given frame.
It also requires conditions that don't always cooperate: still air, a stable platform, enough time to work through a sequence without the light or the moment shifting mid-process. On a fast-moving adventure shoot where light and conditions change quickly, there often isn't a real window to execute a proper stack, which limits how often this technique fits into the kind of work I do most days.
And it's not always the right creative choice even when it's technically achievable. Some of the strongest landscape images lean into selective focus rather than fighting for total sharpness, using a soft background intentionally to draw the eye toward a specific subject. Stacking is a tool for a specific creative intent, full-depth clarity, not a universal upgrade to apply whenever the option is available.
How I Decide Between Stacking and a Single Well-Composed Frame
Before setting up a stack, I ask whether the shot actually needs both foreground and background to read as fully sharp, or whether the composition would work just as well, maybe better, with one element intentionally soft. If the story of the image depends on both elements being crisp, a foreground detail that anchors the scale of a massive background, stacking earns its place.
If the foreground is more of a compositional accent than a subject in its own right, a single frame with the background in sharp focus and the foreground softly out of focus often reads as more natural and less technically fussy than a fully stacked image would. Not every scene benefits from maximum sharpness everywhere, and forcing that outcome onto a composition that doesn't call for it can actually work against the image.
Over enough shoots, this decision has become fairly quick to make in the field, almost automatic. But I still try to consciously ask the question rather than defaulting to whichever technique is more familiar or comfortable in the moment, since the wrong default in either direction costs either time or image quality.
Gear That Actually Matters for This Technique
Beyond a stable tripod, a reliable remote shutter release or in-camera timer removes a real source of misalignment between frames, since even the small vibration from pressing the shutter button directly can shift the composition enough to complicate the blend later. I treat this as a basic requirement for any serious stacking sequence, not an optional refinement.
A lens with a smooth, precise manual focus ring also makes a meaningful difference. Autofocus can work for this technique, but manual focus gives finer control over exactly where each frame's focus point lands, which matters more as the number of frames in a sequence increases and the margin for error between adjacent focus points shrinks.
I also pay attention to focal length choice going into a stacked composition, since wider lenses inherently have more depth of field at a given aperture and distance than longer lenses do. A wide-angle composition might need fewer frames to bridge a given depth range than the same scene shot on a longer lens would, which affects how I plan the sequence before I even start shooting.
A Real Example From the Field
One composition that comes up often in mountain and alpine work is a close foreground detail, ice texture, a cairn, a piece of gear left in frame, with a distant peak or ridgeline behind it that needs to read with real clarity. A single exposure at a moderate aperture leaves one end of that range soft. Pushing the aperture small enough to cover both usually introduces diffraction softness that undercuts the sharpness the shot was trying to achieve in the first place.
In that kind of scene, I'll typically shoot a foreground-focused frame, one or two frames at intermediate distances if the scene has real depth between the near and far elements, and a final frame focused on the background itself. Blending those together produces a result neither a single frame nor an aggressively stopped-down aperture could match on its own.
The difference is subtle in a web-sized preview but becomes obvious the moment an image gets used large, in print or in a prominent campaign placement where viewers have time to actually study the frame. That's usually the deciding factor in whether a specific shot is worth the extra effort: how closely and how large the final image is actually going to be seen.
How I Handle Wind and Movement When a Stack Is Still Worth It
Wind is by far the single most common reason a promising stacking opportunity falls apart in the field, since even light movement in foreground vegetation or distant water creates visible misalignment between frames once they're combined in post. Rather than abandoning the technique entirely on a breezy day, I've developed a handful of practical workarounds over time that salvage genuinely usable results far more often than not.
Timing shots between gusts is the simplest approach, watching for brief lulls and firing the sequence quickly during that window rather than shooting at a fixed interval regardless of conditions. It requires patience and a genuine willingness to wait, sometimes for several minutes at a stretch, for a calm enough moment to actually execute the full sequence cleanly from start to finish.
When movement is truly unavoidable, I sometimes shoot a faster sequence with fewer frames, accepting a slightly narrower depth-of-field improvement in exchange for a shorter overall capture window that's less likely to be disrupted by wind. A partial improvement from three well-timed frames beats an unusable, artifact-riddled result from seven frames spread across too long a window in genuinely unstable conditions.
What I've Learned Not to Do
Early on in learning this technique, I made the mistake of trying to stack scenes with genuine subject movement, a hiker walking through the frame, water flowing visibly between shots, and spending real, frustrating post-production time trying to force a clean blend that the source material simply couldn't support no matter how carefully I worked it. That taught me to make the still-versus-moving assessment honestly and quickly before committing real time to a sequence, rather than discovering the limitation after the fact, hours later, in the editing room.
I've also learned not to over-rely on the technique as a fix for poor initial planning. Focus stacking solves a specific depth-of-field problem, but it doesn't fix a weak composition, and I've caught myself in the past reaching for the technical solution when the actual issue was that the shot itself needed rethinking from the ground up, not more technical firepower thrown at the same underlying idea that wasn't quite working in the first place.
Reflection Questions
- Are you reaching for focus stacking because a specific image genuinely needs it, or out of habit once you learned the technique?
- How are you weighing the extra field and post-production time against how the final image will actually be used?
- Do you have a reliable process for the manual cleanup that automated stacking software often still requires?
- When was the last time you chose selective focus over full-depth sharpness, and did that choice actually serve the image better?
If landscape and technical craft topics like this are useful to your own work, the Adventure Photographer's Playbook covers more of the field techniques I rely on across different types of adventure and landscape photography.
Dalton Johnson is a professional adventure and editorial photographer with over a decade of experience creating images on all seven continents. His client work includes Patagonia, GoPro, Arc'teryx, Four Seasons, Nike, Rivian, Big Agnes, Ford Bronco, and 160+ other brands. He runs Dalton Johnson Media as a full-service studio, from pre-production through post and distribution.