Tutorial

Focus Stacking and Hyperfocal Distance: The Technical Edge for Razor-Sharp Landscapes

A

Amin Ghadersohi

November 13, 2026

| 11 min read
Close-up of a camera lens with precise focus ring markings for manual focusing
Photo by ShareGrid on Unsplash

Introduction

The defining characteristic of masterful landscape photography is sharpness from foreground to infinity. When a viewer can trace fine detail from wildflowers at the photographer’s feet to mountain peaks on the horizon, the image commands attention and rewards extended viewing.

Achieving this level of sharpness is more complex than simply selecting f/22 and hoping for the best. In fact, that approach often produces images that are less sharp than wider apertures due to a phenomenon called diffraction.

This tutorial covers the two primary techniques for achieving front-to-back sharpness: hyperfocal distance focusing and focus stacking. Master both, and your landscapes will possess a technical quality that immediately distinguishes them from casual work.

Diagram illustrating the hyperfocal distance concept

Understanding Depth of Field

The Basics

Depth of field (DOF) is the zone of acceptable sharpness in front of and behind your point of focus. Three factors control it:

Factor Effect on DOF
Aperture Smaller aperture (higher f-number) = deeper DOF
Focus distance Greater distance = deeper DOF
Focal length Shorter focal length = deeper DOF
Sensor size Smaller sensor = deeper DOF

The Diffraction Problem

Stopping down to f/16 or f/22 increases depth of field but introduces diffraction—the bending of light as it passes through a small aperture. This causes an overall softness across the entire image.

The sweet spot: Most lenses are sharpest between f/5.6 and f/11. Beyond f/11, diffraction begins to noticeably soften images on high-resolution sensors. By f/22, the softening is significant.

This creates the fundamental landscape photography challenge: you need f/16+ for depth of field but f/8-f/11 for maximum sharpness. Hyperfocal distance and focus stacking both solve this problem, through different approaches.

Hyperfocal Distance: Maximum DOF from a Single Exposure

What Is Hyperfocal Distance?

The hyperfocal distance is the focus distance that maximizes your depth of field for a given aperture. When you focus at the hyperfocal distance, everything from half that distance to infinity falls within acceptable sharpness.

Fuchs Travels Photography Tools — Use the Depth of Field Calculator to compute exact hyperfocal distances and DoF ranges for your camera, sensor, and aperture before heading out.

Example: If the hyperfocal distance is 4 meters, focusing at 4 meters gives you sharpness from 2 meters to infinity.

The Formula

Hyperfocal Distance = (Focal Length²) / (Aperture × Circle of Confusion) + Focal Length

The trailing focal length term is small enough at landscape distances that most photographers (and most apps) drop it. It is included here for completeness.

Circle of confusion (CoC) is the largest blur circle the eye can no longer distinguish from a point at standard viewing size. Standard values are:

Sensor format Circle of confusion
Full frame (35mm) 0.030mm
APS-C 0.020mm
Micro Four Thirds 0.015mm
Medium format (44×33) 0.040mm

For a practical example with a full-frame camera:
- Focal length: 24mm
- Aperture: f/11
- Circle of confusion: 0.030mm

H = (24²) / (11 × 0.030) = 576 / 0.33 = 1,745mm ≈ 1.75 meters

So at 24mm f/11, focusing at 1.75 meters gives sharpness from 0.87 meters to infinity. On an APS-C body the same lens at f/11 yields a hyperfocal distance closer to 2.6 meters because of the tighter CoC.

Practical Field Methods

You don’t need to calculate in the field. Here are the methods professionals actually use:

Method 1: App-Based (Most Accurate)

Apps like PhotoPills, HyperFocal Pro, or DOF Calculator provide instant results:
1. Select your camera and lens
2. Set aperture
3. Read the hyperfocal distance
4. Focus at that distance using manual focus

Method 2: The Double Distance Rule (Quick Estimate)

Focus at twice the distance to your nearest foreground element.

Example: If interesting rocks start 2 meters from your camera, focus at approximately 4 meters. At f/11 with a wide-angle lens, this approximation is usually close enough to the hyperfocal distance.

Method 3: The One-Third Rule (Simpler Estimate)

Focus one-third of the way into the scene. This is less precise than the double distance method but works in a pinch when foreground distance is hard to estimate.

Method 4: Live View Magnification

  1. Focus on the foreground using AF
  2. Switch to manual focus
  3. Magnify the background in Live View
  4. Adjust focus until the background is acceptably sharp
  5. Check that foreground hasn’t become unacceptable
  6. Find the balance point

Wide-angle scene with a tack-sharp foreground rock and a distant town and horizon held in acceptable focus, illustrating hyperfocal focusing
A textbook hyperfocal frame — a single exposure at f/11 holds the foreground stone and the distant horizon both inside the zone of acceptable sharpness

Hyperfocal Distance Quick Reference

Focal Length f/8 f/11 f/16
16mm 1.1m 0.8m 0.5m
20mm 1.7m 1.2m 0.8m
24mm 2.4m 1.7m 1.2m
35mm 5.1m 3.7m 2.6m
50mm 10.4m 7.6m 5.2m

Values for full-frame sensor with 0.03mm CoC

When Hyperfocal Works (and Doesn’t)

Works well when:
- Foreground is 1+ meters away
- Using wide-angle lenses (14-35mm)
- You need a single clean exposure (moving subjects, changing light)

Falls short when:
- Foreground is very close (under 0.5 meters)
- Using longer focal lengths where DOF is inherently shallow
- You need critical sharpness at both extremes for large prints
- Close foreground elements combined with distant backgrounds

Focus Stacking: The Ultimate Sharpness Technique

Dolomites scene with tack-sharp foreground boulders and razor-sharp distant peaks, demonstrating front-to-back focus stacking
Foreground rocks, midground meadow and the Dolomite peaks all rendered cleanly — front-to-back sharpness like this is rarely achievable in a single frame wider than f/16, which is exactly the gap focus stacking fills

What Is Focus Stacking?

Focus stacking combines multiple images focused at different distances into one image that is sharp throughout. Each individual frame is shot at the lens’s sharpest aperture (typically f/8-f/11), and software blends only the sharp regions from each frame.

Diagram showing how focus stack layers combine

The Result

Front-to-back sharpness at f/8 optical quality—the best of both worlds. No diffraction softening, no DOF compromises.

How Many Frames?

For landscape work, you typically need fewer frames than macro photographers:

Scenario Frames Needed
Wide angle, moderate foreground 2-3
Wide angle, very close foreground 3-5
Medium focal length landscape 3-4
Telephoto landscape detail 4-6
Macro/close-up 10-50+

Shooting the Focus Stack

Step 1: Compose and Lock

  • Set up tripod and compose
  • Lock exposure in manual mode (don’t change between frames)
  • Lock white balance (don’t let it shift between frames)
  • Use f/8-f/11 for best optical quality

Step 2: Focus Sequence

  • Start with the nearest point you want sharp
  • Take the first frame
  • Move focus slightly farther into the scene (don’t move the camera)
  • Take the next frame
  • Continue until the farthest point is sharp
  • Overlap focus zones generously—too much overlap is fine; gaps are not

Step 3: Bracketing Tips

  • Use manual focus, not AF (prevents unpredictable focus shifts)
  • Turn off image stabilization on the tripod
  • Use a remote release or 2-second timer
  • Shoot quickly if conditions are changing (wind, clouds, water)

Camera-Specific Focus Bracketing Features

Many modern cameras automate the capture process:

Camera Feature How It Works
Nikon Z8/Z9 Focus Shift Shooting Automated sequence from near to far, configurable steps
Sony A7R V Focus Bracketing Captures up to 299 frames with adjustable step width
Canon R5 II Focus Bracketing Built-in with configurable parameters
Fujifilm X-T5 Focus Bracket Simple 3-parameter setup

Nikon’s implementation is particularly well-designed for landscapes: you can set the starting focus point, number of steps, and step width, and the camera fires the sequence automatically.

Software for Stacking

Strengths:
- Three different stacking algorithms (weighted average, depth map, pyramid)
- Handles wind-shifted frames well with alignment
- Retouching tools for fixing blend artifacts
- Batch processing

Best algorithm for landscapes: Method B (Depth Map) handles large focus shifts well and produces natural-looking results.

Adobe Photoshop

Strengths:
- Available to most photographers (Creative Cloud subscription)
- Auto-align handles slight tripod shifts
- Manual masking for precise control

Workflow:
1. File → Scripts → Load Files into Stack
2. Edit → Auto-Align Layers
3. Edit → Auto-Blend Layers → Stack Images
4. Flatten and process

Limitation: Photoshop’s auto-blend can produce artifacts at complex boundaries (branches against sky). Manual masking often needed.

Zerene Stacker (Best for Macro)

Primarily designed for macro focus stacking where precision is critical. Overkill for most landscape work but unmatched for extreme close-up stacking.

Common Focus Stacking Problems

Movement between frames: Wind shifts vegetation or water changes between exposures. Solution: shoot quickly, or mask the moving element from a single frame.

Parallax errors: Slight camera movement between frames causes misalignment. Solution: use a sturdy tripod, lock everything, don’t touch the camera between frames.

Halo artifacts at blend boundaries: Software sometimes creates bright or dark halos where it transitions between frames. Solution: use manual masking in Photoshop to clean these areas.

Exposure shifts: If the camera or lens changes exposure between frames, blending produces visible bands. Solution: shoot in full manual mode, including fixed ISO and fixed aperture.

Combining Both Techniques

Professional landscape photographers often use both techniques in different situations:

Situation Technique Why
Stable conditions, close foreground Focus stack Maximum quality
Wind, moving subjects Hyperfocal single frame One exposure captures moment
Changing light (sunrise/sunset) Hyperfocal single frame Speed critical
Tripod work, static scene Focus stack No disadvantage
Handheld shooting Hyperfocal Can’t stack handheld reliably

The Hybrid Approach

Some photographers use hyperfocal distance as the middle frame of a focus stack. Focus at hyperfocal distance, then add one frame focused on the extreme foreground and one focused at infinity. Three frames, maximum quality, fast execution.

Related: For the Photoshop side of focus stacking, see our Photoshop for landscape photographers guide.

Manual Focus in the Dark

Hyperfocal math assumes you can actually achieve focus, and that gets harder as light disappears. Twilight, aurora and astro shots are the situations where autofocus quits working and where focus stacking is rarely an option (the sky is moving, and a single sharp frame is what you have). The diagram below walks through the three reliable manual-focus methods landscape photographers fall back on when their AF starts hunting.

Aurora and night sky manual focus techniques — lens markings, live view magnification and star-lock methods

Sharpness Refinement After the Stack

A clean focus stack solves the capture side of sharpness, but the perception of sharpness in the final file is shaped in post. Selective sharpening with masks lets you push detail into the parts of the frame that earn it — foreground texture, midground edges — while leaving smooth areas (sky, water) alone so they don’t take on noise or grain. The Lightroom workflow below stacks focus-range, luminosity and radial masks to do exactly this.

Lightroom mask stacking workflow — combining focus range, luminosity and radial masks for selective sharpness enhancement

Sensor Size, DOF and Stack Count

Focus stacking demand scales with sensor size. A full-frame camera at f/8 gives you noticeably more inherent depth of field than a medium-format body at the same aperture, which is why MF shooters tend to stack more frames per scene than their full-frame peers. The chart below shows the practical difference and how many frames each format typically requires for a wide-angle landscape with close foreground.

Depth of field comparison — full-frame vs. medium format at f/8 and focus stacking requirements

Exercises

Exercise 1: Hyperfocal Practice

Set up a scene with clear foreground (1-2m), midground (5-10m), and background (infinity). Photograph at f/8 focused at the hyperfocal distance. Zoom to 100% and evaluate sharpness at all three distances.

Exercise 2: The 3-Frame Stack

Capture a 3-frame focus stack: foreground focus, middle focus, infinity focus. Blend in Photoshop using Auto-Blend. Compare the result to a single frame at f/16.

Exercise 3: Diffraction Comparison

Photograph the same scene at f/8, f/11, f/16, and f/22. View all four at 100% zoom. Note where diffraction becomes visible on your specific camera.

Conclusion

Front-to-back sharpness is the technical foundation of landscape photography excellence. Hyperfocal distance gives you this in a single exposure when conditions demand speed. Focus stacking gives you the ultimate quality when conditions allow precision.

Master both, understand when to use each, and your landscape images will possess the technical authority that commands attention at any viewing size—from phone screens to gallery walls.

A

About the Author

Amin Ghadersohi

Contributing writer

Share this article

Field Notes

The next guide, before you need it.

We publish a new location guide every few weeks — the season that actually works, the hours worth setting an alarm for, and coordinates for the compositions we'd walk back for. Subscribers get each one as it lands, plus new tours as operators list them.

  • Destination guides
  • Seasonal shooting windows
  • New tours