What Is Focus Stacking and How Do You Do It Correctly

Updated · 6 min read

Achieving deep focus in close-up photography is often impossible because the physical aperture cannot be stopped down far enough without losing sharpness to diffraction. Focus stacking solves this by shifting the focal plane incrementally through the subject. Success depends on precise overlap between frames, as the software needs distinct, sharp areas in every image to successfully identify and mask the final composite.

In what scenarios is depth of field insufficient for a single exposure?

Single exposures fail to capture entire subjects in sharp detail whenever the distance between the closest and farthest points exceeds the lens's narrow depth of field at high magnification.

  • Macro insects: Compound eyes and antennae often sit on different planes, requiring dozens of slices to render the entire head in focus.
  • Jewelry photography: Intricate metalwork and gemstones demand extreme sharpness across the entire piece, which is impossible at close working distances.
  • Botanical specimens: Petals and stamens curve in three dimensions, necessitating a deep stack to maintain clarity from the front edge to the back.
  • Product close-ups: Small items like watches require uniform sharpness from the crystal to the watch band.

Key numbers

FeatureTypical Range
Image count5 to 200 shots
Overlap20% to 50%
Aperture choicef/2.8 to f/8
Processing time1 to 10 minutes

What are the primary hardware requirements for capturing images for this technique?

A sturdy tripod is the foundation of any stack, as even minor vibrations during a long sequence of exposures will ruin the alignment. Beyond the tripod, a high-quality macro lens is preferred for its flat field of focus, which minimizes distortion across the frame. For precise control, an automated focus rail, such as the Cognisys StackShot, allows for micrometer-level adjustments between each frame. This level of hardware precision removes the human error associated with manual turning of the focus ring.

One nuance to consider is the shutter mechanism itself. Using a mechanical shutter can introduce enough vibration to blur the image at high magnification. Switching to an electronic shutter, if available on your camera body, eliminates this physical movement entirely. This is particularly useful when shooting in a studio environment where absolute stillness is required to make sure the software can perfectly align every pixel in the sequence.

How does a macro rail assist in achieving consistent focal plane increments?

A macro rail provides a mechanical solution for moving the camera toward or away from the subject in precise, repeatable increments to make sure the focal plane covers the entire depth of the object.

  • Micrometer increments: These devices allow for movements as small as 0.01 millimeters, which is necessary for high-magnification work where the depth of field is razor-thin.
  • Consistent spacing: Mechanical gears make sure that every step is identical, preventing gaps in the focus sequence that would otherwise cause blurry patches.
  • Static magnification: By moving the camera rather than the lens focus ring, the effective magnification remains constant throughout the entire bracketed set.

What software tools are commonly used to merge multiple images into a single composite?

Industry standards include Helicon Focus, Zerene Stacker, and Adobe Photoshop. Helicon Focus is often preferred for its speed and specialized retouching tools, while Zerene Stacker is favored for its ability to handle complex overlapping subjects with fewer halo artifacts.

A lot of people assume that the software automatically fixes all alignment issues, but it struggles significantly if the camera shifts even slightly between frames. You must make sure the subject remains completely still, as any movement of leaves or petals during the capture process will create ghosting that no algorithm can perfectly resolve.

Why is it necessary to use a tripod when shooting for this process?

A tripod is required to maintain a fixed perspective, as the software relies on the subject staying in the exact same position relative to the frame boundaries across every image. If the camera shifts, the software will attempt to warp or crop the images to compensate, which inevitably leads to a loss of resolution and distorted edges. Using a heavy-duty tripod with a geared head provides the stability needed to keep the composition locked while you adjust the focus between shots.

One exception involves handheld focus stacking, which is becoming more common with modern mirrorless cameras. These systems use high-speed internal processing to align images in real-time, allowing for a degree of movement. However, this method is generally less precise than a tripod-mounted setup and is unsuitable for professional-grade commercial work where maximum detail and file integrity are required.

How do diffraction and sensor resolution affect the quality of the final composite?

Diffraction limits resolution, as closing your aperture past f/8 causes light waves to interfere, resulting in a loss of sharpness. For high-resolution sensors exceeding 40 megapixels, even f/11 can noticeably degrade the final composite, making wider apertures essential for maintaining crisp detail throughout the entire stack.

What are the most common artifacts encountered during the alignment and blending process?

Artifacts typically arise when the software incorrectly identifies which pixels are in focus or when the subject moves during the capture sequence.

Artifact TypeCauseFrequency
HaloingHigh contrast edges40%
GhostingSubject movement25%
BandingLarge focus steps20%
NoiseHigh ISO settings15%

Use these percentages to prioritize your shooting environment, focusing primarily on eliminating subject movement and optimizing focus intervals to reduce the most common errors.

How does this method differ from traditional focus bracketing?

No, they are essentially the same process, though traditional focus bracketing often refers to the camera's internal automated feature. While manual stacking involves using a rail to move the camera, internal bracketing shifts the lens focus point electronically, typically capturing 10 to 50 images in a few seconds.

Mistakes to avoid

  • Moving the camera instead of the lens. Shifting the camera position changes the magnification, which makes alignment nearly impossible for software. Use a dedicated focus rail or internal focus bracketing to keep the perspective static.
  • Using too small an aperture. Stopping down to f/16 or higher introduces diffraction that softens the entire image. Stick to the lens's "sweet spot" near f/4 or f/5.6 for maximum resolution.
  • Insufficient frame overlap. If the focus jumps too far between shots, the software will leave blurry bands in the final image. Make sure the depth of field of each slice slightly overlaps the next.

Refining your focus stacking workflow

Start with a subject that is perfectly still to avoid alignment errors that ruin the blending process. Once you master the mechanical steps of capturing the sequence, focus your efforts on learning the masking tools in your software to clean up any minor artifacts.

Latest posts

  1. Winter Photography Inspiration for Creative Cold Weather Shots
  2. How to Use Focus Stacking for Deep Depth of Field
  3. What to Look for in an Outdoor Security Camera
  4. What Makes a Good Landscape Photograph? Elements of Success
  5. What Are Framing Questions and How Do They Shape Communication
  6. How the Milky Way Compares to Other Galaxies
  7. How to Describe Autumn Foliage With Precision
  8. Learning About Cameras Essential Concepts for Better Photos
  9. How to Photograph Mountains Effectively
  10. What Is Exposure Bracketing Used For and Why Use It