← All articles
·7 min read·ExifGrabber

How to Use Focus Stacking for Sharp Landscape Photos

As an Amazon Associate, ExifGrabber earns from qualifying purchases.

What Is Focus Stacking?

Focus stacking is a technique where you capture multiple photos of the same scene, each focused at a different distance, then blend them together in software to create a single image with sharpness from the nearest foreground to the farthest background.

In landscape photography, this solves a fundamental optical problem: even at f/11 or f/16, a wide-angle lens cannot keep a flower six inches from the front element and a mountain range on the horizon both perfectly sharp in a single frame. Stopping down further introduces diffraction, which softens the entire image. Focus stacking lets you shoot at the lens's sharpest aperture (usually f/5.6 to f/8) while achieving far greater depth of field than any single exposure can deliver.

When You Need Focus Stacking

Not every landscape photo requires it. If your nearest foreground element is several meters away, a single shot at f/11 will likely cover the entire scene. Focus stacking becomes essential when:

  • You have a prominent foreground element very close to the lens (rocks, flowers, ice formations)
  • You are using a wide-angle lens and want to emphasize an object within arm's reach
  • You are shooting at a wide aperture for low-light conditions and still need depth
  • You want to avoid diffraction by staying at f/5.6 to f/8

The technique is most common in compositions where a dramatic foreground leads the viewer's eye into the distance. Think of a field of wildflowers stretching toward a mountain peak, or a tide pool in the foreground of a coastal sunset.

Rolling green hills in Val d'Orcia, Tuscany with front-to-back sharpness
Freefly69 · CC BY-SA 4.0

Equipment You Need

Essential:

  • A camera with manual focus and manual exposure
  • A sturdy tripod (the camera must not move between frames)
  • A remote shutter release or your camera's self-timer

Helpful but optional:

  • A camera with built-in focus bracketing (Canon EOS R5, Nikon Z8, OM System OM-1 Mark II, and several Sony bodies now include this feature)
  • A lens with a focus distance scale or electronic readout
  • Photoshop, Helicon Focus, or Zerene Stacker for merging

If your camera has a focus bracketing mode, it will automatically capture a sequence of frames with incrementally shifting focus. This saves time in the field and ensures even spacing between focus points. Check your camera's menu under drive modes or bracketing settings.

Step-by-Step Field Technique

1. Compose and Lock Your Tripod

Set up your composition and make sure the tripod is absolutely stable. Any movement between frames will cause alignment issues in post. If conditions are windy, hang your camera bag from the center column for extra stability.

2. Set Manual Exposure

Switch to manual mode. Pick an aperture between f/5.6 and f/8 for optimal sharpness. Set your ISO and shutter speed for a correct exposure. These settings must remain identical across all frames, so do not use aperture priority or auto ISO.

3. Switch to Manual Focus

Turn off autofocus. You will be manually adjusting the focus ring between each shot. If your camera has focus peaking, enable it to see exactly what is sharp in each frame.

4. Focus on the Nearest Element

Start by focusing on the closest part of the scene you want sharp. For a foreground rock, that might be the leading edge nearest to the camera.

5. Capture and Shift Focus

Take the first frame. Then rotate the focus ring slightly toward infinity to shift the focus plane deeper into the scene. Take the next frame. Repeat.

The key is overlapping your depth of field between each frame. At f/8 with a 16mm lens, you might need 3 to 5 frames. With a 50mm lens at f/5.6, you might need 8 to 12. Err on the side of more frames rather than fewer. Extra frames do not hurt the final result, but gaps in the focus coverage will leave a soft band in your image.

6. End at Infinity

Your final frame should be focused at infinity or on the most distant element in the scene. Now you have a complete sequence from near to far.

Using In-Camera Focus Bracketing

Many modern cameras automate the capture process. Here is the general workflow:

  1. Enable focus bracketing in your camera's menu
  2. Set the number of frames (10 to 20 is a good starting point for landscapes)
  3. Set the focus step size (start with a medium increment and adjust based on results)
  4. Focus on the nearest point manually
  5. Press the shutter and the camera fires the entire sequence automatically

The Nikon Z8 and OM System OM-1 Mark II are particularly strong for this workflow. The OM-1 Mark II can even composite the stack in-camera, giving you a finished result without touching a computer. Canon's EOS R5 also performs in-camera stacking, merging frames into a single RAW file.

Merging Your Focus Stack in Post

Adobe Photoshop

This is the most common method:

  1. Open Photoshop and go to File > Scripts > Load Files into Stack
  2. Select all your focus-bracketed images
  3. Check "Attempt to Automatically Align Source Images"
  4. Click OK
  5. Select all layers, then go to Edit > Auto-Blend Layers
  6. Choose "Stack Images" and check "Seamless Tones and Colors"
  7. Click OK and let Photoshop create the blend masks

Photoshop analyzes each layer, identifies the sharpest regions, and creates masks that blend only the in-focus areas from each frame. The result is a single flattened image with front-to-back sharpness.

Helicon Focus

Helicon Focus is a dedicated focus stacking application that often produces cleaner results than Photoshop, especially in areas where foreground elements overlap against the background (like blades of grass against a sky). It offers three blending algorithms: weighted average, depth map, and pyramid. For landscapes, the pyramid method typically works best.

Zerene Stacker

Zerene Stacker is another dedicated option favored by macro photographers but equally effective for landscapes. Its PMax algorithm handles fine details and edge transitions particularly well.

Common Mistakes and How to Avoid Them

Moving the camera between frames. Even a tiny shift will cause misalignment. Use a remote release and avoid touching the camera. If you are on a sandy or soft surface, let the tripod settle for a minute before starting.

Not overlapping focus distances enough. If there is a gap between the sharp zones of consecutive frames, you will have a soft band that no software can fix. Take more frames than you think you need.

Changing exposure between frames. Clouds passing overhead or auto-exposure adjustments will cause brightness flickers in the stack. Lock exposure to manual.

Shooting in strong wind. Moving grass, flowers, or water between frames creates ghosting artifacts. Wait for a calm moment, or accept that some natural motion will need to be addressed with masking in post.

Forgetting to shoot a "safety frame." Always capture a single shot at f/11 or f/16 as a backup. If the focus stack fails for any reason, you still have a usable image.

Checking Your Focus Stack EXIF Data

After capturing a focus bracket sequence, upload the individual frames to ExifGrabber to verify your settings were consistent across the stack. The Exposure tab will confirm that aperture, ISO, and shutter speed remained locked. The Image tab shows the resolution of each frame, and you can compare focal lengths and lens data across the set. This is a useful habit for refining your technique over time.

If you are interested in other landscape techniques, check out our guide to the best wide-angle lenses for landscape photography or the best ND filters for long exposure photography.

Final Thoughts

Focus stacking adds a few minutes to your workflow in the field and a few more in post-processing, but the results are worth it. Once you see a landscape image with razor sharpness from a foreground flower to a distant ridgeline, all captured at your lens's optimal aperture, you will wonder why you ever relied on f/16 alone. Start with a simple three-frame stack on your next outing and build from there.

Your images never leave your device — all EXIF extraction runs locally in your browser