CameraLore

How to Shoot Focus Stacks—and Why Composite Edges Warp

Focus stacking combines multiple photos taken at different focus distances to create a larger area of sharpness. Keep the camera position and exposure fixed, with enough overlap between adjacent depth-of-field ranges. Focus breathing, subject movement, and changes in lens magnification can cause edge halos and distortion.

CameraLore Editorial Team

Focus stacking combines multiple photos taken at different focus distances to create a larger area of sharpness. Keep the camera position and exposure fixed, with enough overlap between adjacent depth-of-field ranges. Focus breathing, subject movement, and changes in lens magnification can cause edge halos and distortion.

Focus stacking combines multiple photos taken at different focus distances to create a larger area of sharpness. Keep the camera position and exposure fixed, and make sure adjacent depth-of-field ranges overlap generously. Focus breathing, subject movement, and changes in lens magnification can cause edge halos and distortion.

How Is Focus Stacking Different from Stopping Down?

Stopping down expands the acceptably sharp area in a single photo, but a very small aperture introduces diffraction that reduces overall detail and also requires a slower shutter speed. Focus stacking instead captures multiple images at different focus distances, selects the sharper areas from each, and blends them together. This can provide both a larger sharp area and better detail in each frame. It does not increase the lens's actual depth of field; it creates a computationally composited result.

Still life, macro, product photography, and windless landscapes are good candidates for stacking. Moving people, insects, flowing water, and rapidly changing light are more difficult because the frames are not captured at the same instant. If a single stopped-down photo already meets the requirements of the final output, there is no reason to add more files, alignment, and mask maintenance.

Start with the principles of depth of field to choose a sensible aperture, then decide how many focus layers you need. Stacking cannot fix camera shake, serious exposure errors, or detail the lens never resolved in the first place.

How Do You Determine the Focus Step and Number of Shots?

There is no fixed number of shots that works for every lens. The higher the magnification, the wider the aperture, and the greater the subject's depth, the thinner the area covered by each frame; you will generally need smaller steps and more photos. In-camera settings such as “step width 1–10” are usually manufacturer-specific relative values. They do not represent millimeters and cannot be compared across camera models, so confirm their behavior in the manual and with test shots.

A reliable method is to focus on the nearest point of the subject, move the focus progressively toward the distance, and continue until the final frame covers the farthest point. The sharp areas in adjacent photos must overlap with some margin. If a soft band runs across the subject after compositing, the step was usually too large or a frame was missed—not that the software simply needs more sharpening.

For landscapes, start by capturing three test frames focused on the nearest foreground, middle distance, and far distance, then add denser focus layers where gaps appear. For macro work, start with small steps and magnify the images to check that textures remain continuous between adjacent frames; do not rely only on the thumbnails on the rear screen.

Should You Turn the Focus Ring or Move the Entire Camera?

For ordinary landscapes and product photography, it is often simplest to keep the camera fixed and change the lens's focus. However, the angle of view or magnification may change at different focus distances—a phenomenon known as focus breathing. After alignment, the software may crop the edges, and halos can appear along overlapping contours.

High-magnification macro work often uses a focusing rail to move the entire camera while keeping the lens's internal focus position as constant as possible. This still is not a zero-change method: moving the camera changes perspective, and a rail that is not parallel to the subject can make the subject drift through the sequence. The right choice depends on subject depth, magnification, lens breathing, and the software's alignment capabilities; neither method is universally correct.

Whichever method you use, lock down the tripod, exposure, white balance, and lighting. Per-frame changes in auto exposure or color temperature can create brightness and color patches in the blended areas.

What Is a Repeatable Focus-Stacking Workflow?

  1. Clean up the subject and background, secure the camera, turn off Auto ISO, and set manual exposure and white balance.
  2. Choose an aperture that balances detail in each frame against the total number of shots. Manually focus on the nearest point and capture a reference frame.
  3. Move the focus toward the distance in sufficiently small steps, waiting for vibrations to stop before each shot. Mark the beginning and end of the sequence.
  4. Let the final frame extend beyond the farthest point that needs to be sharp, and take one extra safety frame.
  5. After importing, apply the same RAW adjustments to the whole set. Do not apply different lens or geometric corrections to individual frames.
  6. Align the frames first, then blend according to the sharp areas. Nikon's Focus Shift, the Basics—Stacking Focus also distinguishes continuous capture at different focus planes from the two-step process of post-processing and compositing.
  7. Keep the individual layers and masks, inspect the result at high magnification, and make manual corrections before cropping and applying output sharpening.

Make sure the memory card and battery can cover the entire set. For formal product shoots, you can photograph a card showing the group number before each set to keep similar angles from getting mixed up.

Why Do Composites Develop Halos, Double Edges, and Distortion?

A sharp foreground edge blocks part of the background behind it. When focus shifts to the background, the now-blurred foreground edge spreads into the background area. The software cannot obtain complete sharp pixels for an occluded area from any frame, so it may produce a halo or an unnatural mask. Hair, transparent materials, reflective metal, and overlapping leaves make the problem especially visible.

Focus breathing changes the size of each frame; subject movement creates ghosting; steps that are too large leave soft bands; and exposure drift creates patches. Troubleshoot by symptom first:

| Symptom | Likely cause | Priority action | | --- | --- | --- | | The entire edge scales from frame to frame | Focus breathing or rail movement | Align first and leave room for cropping | | A double edge appears in one area | Wind, vibration, or subject movement | Reshoot the affected frames and shorten the sequence | | A soft band appears between sharp areas | Steps that are too large or a missed frame | Add frames or reduce the step size | | A bright ring appears around hair | Occlusion relationships and failed auto-masking | Brush the mask back in manually from a suitable original layer |

Why Do Landscapes and Macro Work Require Different Techniques?

Landscapes can span a large range of distances, but depth of field is usually broader in the distance, so a few frames covering the foreground, middle distance, and far distance may be enough. The main risks are moving leaves, clouds, water, and changing light. Complete the sequence quickly and keep a non-stacked safety version. If you also need multiple horizontal frames for a panorama, the files and motion variables multiply; learn the panorama workflow first rather than attempting two complex composites at once.

Macro subjects have extremely shallow depth of field in a single frame, so the focus layers need to be denser. Flash recycle time, vibrations from the table, movement by living subjects, and changes in magnification matter more. Continuous light makes previewing easier but may require a longer shutter speed; flash can freeze vibration, but every frame must have stable output and color temperature. With live insects, put the animal's safety first—do not chill, injure, or disturb it for a long time just to complete a stack.

How Do You Evaluate the Composite Instead of Judging It Only by “Overall Sharpness”?

First view the image at its final output size, then zoom in to inspect the nearest point, farthest point, and every occluding edge. Check alignment and cropping along all four edges of the frame, and inspect repeating textures, transparent objects, reflective surfaces, and background highlights. Hide the top layer or switch to individual frames to make sure the software did not cover important detail with the wrong area.

Also check whether the sharp range serves the image's purpose. Stacking every background detail into sharpness can weaken subject-background separation; a product catalog may require complete clarity, while a floral image may not. The success criterion for focus stacking is not “the sharpest possible pixel everywhere,” but a continuous sharp region, natural edges, and no timing-related misalignment.

What Are Common Focus-Stacking Mistakes?

“More shots are always better” increases the chances of movement, exposure drift, storage problems, and masking errors; take only enough frames to cover the required range. “Auto-alignment solves everything” ignores occlusion and parallax, and software cannot restore an area that no frame captured. “The smallest aperture is safest” can introduce diffraction and long exposures at the same time, undermining the detail advantage that stacking was meant to preserve.

Finally, in-camera focus bracketing usually only captures the sequence; it does not necessarily create a high-quality composite automatically. For example, the Focus Shift Shooting guide for the Nikon Z 8 lists the available options for shot count, step width, interval, and exposure lock. Supported formats, flash compatibility, exposure smoothing, and the definition of step width vary by camera model, so consult the correct manual.

References

Previous Article