Capturing images that are tack-sharp from the immediate foreground to the distant background is nearly impossible when using an ultra-wide-angle lens, especially when you’re positioning the lens close to a foreground element.

The best aperture for landscape photography is generally between f/8 and f/11. This is the go-to range for most landscape photographers, but when using extreme wide-angle compositions, there’s a good chance you’ll return home to find parts of the image out of focus. Even stopping down to f/22 won’t solve it, and doing so introduces diffraction that softens the image in other ways.

The solution is focus stacking, a technique that makes it possible to achieve razor-sharp images from front to back. It’s used by photographers of all levels, and with a basic understanding of photography and post-processing, it’s more straightforward than it might seem.

In this guide, you’ll learn what focus stacking is, when to use it, how to shoot a focus stack in the field, and how to blend it in Photoshop. I’ll also cover in-camera focus bracketing for those who prefer to let the camera handle the capture side, and the most common problems you’re likely to run into.

What is Focus Stacking?

Simply put, focus stacking is an intermediate technique that makes it possible to create images that are sharp from the very foreground all the way to the background, regardless of the distance between the two.

Guide to Focus Stacking
Focus Stacking was essential to get a sharp image due to the wide-angle lens and distance between the immediate foreground and background.

The technique requires capturing two or more images with different focus points, for example, one image focused on the foreground and another focused on the background. These images are then imported into post-processing software and blended together. Only the sharpest areas from each image are used in the final blend, which results in an image that is sharp throughout.

Focus stacking is used across several photography genres, but it’s most commonly used in landscape and macro photography. Using it for portraits or wildlife is considerably more difficult since it requires a static subject.

The technique requires a camera and post-processing software such as Adobe Photoshop or Helicon Focus.

Why Do You Need to Focus Stack?

Many photographers avoid learning intermediate techniques because they feel their images are already good enough, or they don’t want the extra effort. The reality is that focus stacking has a significant visual impact on certain images, and once you understand when to use it, the effort becomes second nature.

When there’s a large distance between the immediate foreground and a distant background, only part of the image will be sharp at any given aperture. Take the example below: when I focused on the nearest flower at f/10, the flowers behind it were already out of focus. The only way to get everything sharp was to capture four images at different focus points and blend them together.

Guide to Focus Stacking
Notice that the further away from the first flower, the more out of focus the image is

Macro photography is another scenario where focus stacking is essential. At close focusing distances, depth of field is extremely shallow, and getting an entire flower or small object sharp in a single frame is rarely possible.

The differences may not be obvious when viewing images on a small screen, but when you start printing, the lack of front-to-back sharpness becomes immediately visible, particularly at larger sizes.

Recommended Reading: Aperture in Photography: The Complete Guide to F-Stops, Depth of Field & Sharpness [2026]

When Should You Use Focus Stacking?

Focus stacking is a useful technique, but it’s not needed for every image. Most of your landscape shots won’t require it.

There are a few specific scenarios where it becomes necessary:

  • When there’s a significant distance between a close foreground and a distant background
  • When using an ultra-wide-angle lens with a subject close to the lens
  • When photographing small scenes or macro subjects where depth of field is inherently shallow
  • When the scene requires more overlap between focus planes than a single frame can provide
Guide to Focus Stacking in Landscape Photography
To get front-to-back sharpness, I needed to take one image focusing on the foreground and one on the background.

If you’re not sure whether a scene needs focus stacking, take a test shot, zoom in on the preview to 100%, and check the near and far parts of the frame. If anything looks soft that shouldn’t be, that’s your signal.

How To Focus Stack for Sharper Images

Focus stacking is a two-step technique. The first step happens in the field; the second in post-processing.

Setting Up the Shot

Use a tripod. This is important because the camera needs to stay in exactly the same position between frames. Even small movements caused by changing the focus point can make the blending process more difficult later.

Set up your composition as normal. For most landscape photography focus stacking, I use an aperture around f/7.1. This keeps you within the sharpest part of your lens’s performance range while providing enough depth of field in each frame for the blend to work cleanly. Adjust the shutter speed and ISO as you normally would for the conditions.

I focus stack in Manual Mode with a fixed Kelvin white balance. Keeping exposure and white balance consistent between frames makes the blending significantly easier and avoids colour shifts across the stack.

Capturing the Frames

Start by focusing on the subject closest to the lens and making sure the nearest foreground is sharp. Take a frame, then shift the focus point slightly further into the scene. Take another frame, then shift again.

I use touch focus on my camera screen to move the focus point between frames, which I find quick and precise. Work your way through the scene from front to back until you have enough frames to cover the full depth of the composition.

In most landscape situations, two to four frames is sufficient. If you’re unsure, take one or two extra frames as insurance. It’s much easier to have one frame too many than to discover a gap in the stack once you’re back at the computer.

Focus Stacking
Image 1: Focus on the rock Image 2: Focus on the background

Quick recap:

  1. Set up on a tripod and compose the shot
  2. Set Manual Mode, fixed white balance, and aperture between f/8 and f/11
  3. Focus on the subject closest to the lens and capture a frame
  4. Shift the focus point further into the scene and capture another frame
  5. Repeat until the entire scene is covered from front to back

In-Camera Focus Bracketing

Most modern mirrorless cameras now include a built-in focus bracketing feature that automates the capture side of the process. Rather than manually adjusting the focus between each frame, you set the number of images and the focus step increment, and the camera shoots the entire sequence automatically.

The general workflow is similar across brands: you select the focus bracketing mode, set how many frames you want and how large each focus step should be, focus on the nearest subject, and let the camera take it from there. The resulting RAW files are processed in the same way as a manually captured stack, either in Photoshop, Helicon Focus or another software.

In-camera focus bracketing is particularly useful for macro photography, where the depth of field is extremely shallow and a large number of frames is required. For landscape photography with three to four frames, I personally find that manual focus adjustment is quicker and gives me more control, but for complex scenes or unfamiliar situations, the automated approach is a useful option to have.

Check your camera’s manual for the exact location of this feature, as it varies between manufacturers and is sometimes labelled “focus shift shooting” rather than “focus bracketing.”

Blending the Images in Post-Processing

After capturing the series of images in the field, the next step is to blend them together in post-processing. There are two main approaches I’ll cover here: Adobe Photoshop and Helicon Focus.

Method 1: Focus Stacking in Adobe Photoshop

Photoshop is the most widely used software for focus stacking, and the method I use for my own work. The following workflow combines Photoshop’s Auto Blend Layers function with manual correction for the areas where the algorithm makes mistakes.

Opening images as Layers in Photoshop from Lightroom

Step-by-Step Focus Stacking in Photoshop:

  1. Open the series of images as layers in Photoshop. If you use Lightroom, select all images and go to Edit In > Open as Layers in Photoshop.
  2. Select all layers and go to Edit > Auto-Align Layers.
  3. Duplicate all layers (select all layers and press Cmd+J on Mac or Ctrl+J on Windows).
  4. Select only the duplicate layers and go to Edit > Auto Blend Layers. Choose Stack Images and check Seamless Tones and Colors.
  5. Photoshop analyzes each pixel and selects the sharpest areas from each image using Layer Masks.
  6. Zoom in to 100% and check the entire image carefully for any areas the algorithm has handled incorrectly.
  7. If there are problem areas, create a Stamp Visible Layer (Cmd+Shift+Option+E on Mac, Ctrl+Shift+Alt+E on Windows) with a white Layer Mask, place the sharpest original layer beneath it, and use a soft black brush to paint the sharp areas back in.

The reason for duplicating all layers before running Auto Blend is that this gives you a clean set of originals to work with when correcting any mistakes the algorithm makes. Photoshop’s Auto Blend does a good job in most situations, but it’s not perfect, particularly along complex edges or in areas with fine detail. Having the unmasked originals available makes the manual correction process significantly easier.

Always zoom in and check the result carefully before flattening anything. Errors are much easier to fix while the layers are still intact.

Method 2: Focus Stacking in Helicon Focus

Helicon Focus is dedicated software built specifically for focus stacking. German landscape photographer Felix Inden is one of many who uses it regularly for stacks that are too complex for Photoshop to handle cleanly.

Focus Stacking Helicon Focus
Importing files in Helicon Focus Pro

Step 1 is to import the files and choose one of three different stacking approaches. Explaining exactly what the different algorithms/approaches do gets a little too technical. That’s why Helicon advises testing all three and selecting the one that works best for the given image. Approach A and B seem to work best for my own landscape photography.

Focus Stacking rendering helicon focus
Rendering in Helicon Focus

You can see the mask building up while Helicon is rendering the files, which is quite fun to follow since each algorithm creates a different one. The rendering process is incredibly fast compared to Photoshop, even when using big amounts of images for macro photography or product shots.

focus stacking helicon focus
Check that everything went well

Make sure to zoom in once the rendering is done and make sure that it did a good job. The file is now ready to be exported and processed in Adobe Photoshop or your software of choice!

focus stacking helicon focus
Image is ready for further processing!

There are other software options worth knowing about. Zerene Stacker is another well-regarded choice that many photographers rate highly for complex blends.

Common Problems When Focus Stacking

Focus stacking in landscape photography involves working with conditions you can’t fully control. Here are the three most common problems and how to approach them.

Moving Foreground Elements

Wind is the most frequent challenge. If grass, flowers, or leaves are moving between frames, the blending algorithm will struggle to produce a clean result, and you may end up with ghosting or smearing in those areas.

The best approach is to wait for a still moment and shoot quickly. If the movement is intermittent, work with it rather than against it: take each frame when the foreground is as still as possible, even if there’s a short wait between shots.

If the movement is constant and unavoidable, focus stacking may not be the right technique for that scene. A single well-focused frame at f/11 may give a cleaner result than a poorly blended stack.

Changing Light Between Frames

At sunrise and sunset, the light can shift quickly between frames, causing noticeable tonal differences across the stack. The further apart your frames are in time, the more visible this becomes.

Shooting in Manual Mode with a fixed white balance minimizes this, but it doesn’t eliminate it entirely when the light is changing fast. Working quickly and keeping the number of frames to a minimum helps. If you notice a visible exposure shift between frames, try to correct the Lightroom adjustments before sending the files to Photoshop, so the starting point for each frame is as consistent as possible.

Poor Photoshop Blending

Photoshop’s Auto Blend Layers function does a good job in straightforward situations, but it makes mistakes. The most common issues are soft patches along high-contrast edges, misaligned areas near the transition between focus planes, and over-reliance on one frame where another would have been sharper.

This is exactly why I always duplicate all layers before running Auto Blend. The duplicate set gets the masks applied by the algorithm. The original set stays clean and unmasked, ready to be used for manual corrections. When I find a problem area, I stamp a new visible layer on top, place the correct original layer beneath it, and paint the sharp areas back in with a black brush.

It’s a little tedious when there are multiple errors, but it’s the most reliable way to get a clean result.

Recommended Reading: Understanding Layers and Masks in Photoshop

Conclusion

Focus stacking is one of those techniques that opens up a whole range of compositions that simply aren’t possible any other way. Once you’ve used it a few times, the process becomes quick enough that it no longer feels like extra work.

It’s not something you’ll need on every image. Most of your landscape shots will work perfectly well with a single frame at f/8 or f/11. But for those scenes where a strong foreground element demands front-to-back sharpness, knowing how to focus stack properly is what separates a technically compromised image from one you can print large with confidence.

If you’re working on building a broader post-processing workflow around techniques like this, the post-processing guide covers the full sequence from RAW optimization through to export. And for a deeper look at the aperture decisions that determine whether focus stacking is needed in the first place, the aperture guide goes into detail on depth of field and when to use each range. 

5 COMMENTS

  1. I heard about this method earlier but just heard haven’t performed yet! It’s very interesting process and means a lot for those who want sharp focus for both fore ground and background! ?? for the simple use of words and explanation! Thank you christian!

LEAVE A REPLY

Please enter your comment!
Please enter your name here