Last month I was out in the high desert before sunrise, tripod planted in loose volcanic rock, trying to get a basalt formation in the foreground sharp alongside a ridge line sitting about two miles out. I’ve been doing this long enough to know that no single focal point was going to give me both. Physics doesn’t negotiate. So I shot a focus stack, came home, blended it in Photoshop, and walked away with an image I’d have thrown in the trash ten years ago out of frustration.

Focus stacking is one of those techniques that sounds complicated until someone walks you through it cleanly. This William Patino tutorial does exactly that, covering both the capture process in the field and the blending workflow in post.

Why a Single Sharp Frame Is Often a Lie

Depth of field is a compromise. If you push your aperture to f/16 or f/22 chasing sharpness across a wide scene, you introduce diffraction, and your image goes slightly soft across the board. The sweet spot for most lenses is somewhere around f/8 to f/11, but at those apertures your foreground rock and your background mountain simply cannot both be in focus at the same time. That gap is where focus stacking lives.

The idea is straightforward: shoot multiple frames, each focused at a different distance, then let Photoshop identify the sharpest areas from each frame and merge them into one composite. The result is an image with edge-to-edge sharpness that would be optically impossible in a single exposure.

What to Do Before You Touch the Shutter

The whole technique falls apart if your camera moves between frames, so the first discipline is locking everything down. Patino is clear about this: tripod, remote shutter release or a two-second timer delay, and mirror lockup if you’re shooting with a DSLR. Any vibration between frames creates misalignment that Photoshop has to work to correct, and sometimes can’t.

Shoot in manual mode and set your exposure before you start. I also lock my white balance rather than leaving it on auto. If the light shifts slightly between frames and your camera compensates automatically, you can end up with subtle color differences that create halos along your blended edges.

For aperture, Patino recommends staying in that f/8 to f/11 range for maximum lens sharpness. You’re not using a narrow aperture to manufacture depth of field here. You’re using focus position to do that work instead.

Capturing the Stack: How Many Frames and Where to Focus

The number of frames you need depends on how much distance you’re covering between your closest foreground element and the background. For a typical landscape with a moderately interesting foreground, Patino walks through a three-frame approach: one focused on the nearest foreground detail, one in the middle ground, and one on the background or infinity.

The rule for where to place each focus point is that the sharpness from each frame needs to overlap with the next. You can’t leave gaps. The clearest way to think about it: look at your foreground frame and ask where the sharpness starts to fall off in the background direction. Your next focus point should land inside that zone of acceptable sharpness, not beyond it. Work your way to the back of the scene this way.

Autofocus is fine for acquiring each position, but once you’ve locked focus for a frame, switch to manual focus so nothing shifts when you press the shutter. Then simply refocus for the next frame and repeat.

Blending in Photoshop: The Exact Steps

Open all your frames in Photoshop as layers in a single document. If you shoot raw, process them all together in Lightroom or Camera Raw first, applying identical edits, then open as layers.

With all layers selected, go to Edit, then Auto-Align Layers, and choose Auto as the projection method. This corrects for any minor camera shift between frames. Once that’s done, go to Edit again and select Auto-Blend Layers. Choose Stack Images, check Seamless Tones and Colors, and let Photoshop run.

That’s the core of it. Photoshop generates layer masks on each frame, keeping only the sharpest regions from each one and blending the transitions. The result is a single flattened image with sharpness throughout the frame that no single capture could have produced.

Patino recommends zooming in at 100 percent afterward and checking the blend seams carefully, particularly around edges that appear in multiple frames at different focus distances. Branches, grass blades, and anything else with fine texture near the transition zones can sometimes produce artifacts that need a small manual mask correction.

Where This Technique Gets Complicated

Focus stacking is excellent in calm conditions. Water is another story. If you have a moving stream or a lake with any surface ripple in your foreground, each frame will show the water in a different state, and Photoshop’s masking will struggle. I’ve dealt with this by treating the water as a separate exposure entirely, shooting it at a single focus distance and masking it in manually over the stack. It adds time in post, but it’s cleaner than fighting the auto-blend.

Wind is the same problem for foliage. A field of wildflowers or a grove of aspens with any movement between frames will create ghosting at the blend points. In those situations, I’ll sometimes accept a slightly narrower aperture and live with a single frame rather than introduce blending problems I can’t easily fix.

The Sharpest Idea to Take Into the Field

The technique is Photoshop’s job. Your job is disciplined capture: locked-down camera, consistent exposure, and overlapping focus points that leave no gap from your nearest subject to the horizon. Get that right and the blending almost takes care of itself.

Watch the full William Patino tutorial for the visual walkthrough, especially the Photoshop steps, which are far easier to follow on screen than to read about.