Focus stacking combines multiple images with different focus planes into a single image with maximum depth of field, which is particularly useful in macro and product photography. This involves taking 10–50 images with the focus shifted and processing them with software such as Helicon Focus or Photoshop to create one sharp composite image. A tripod, manual focusing, and consistent lighting are important.
Category: Photography – Advanced Topics > 11. Advanced Image Editing Article ID: 11.5 Created: May 2026
The Essentials at a Glance
- Focus stacking combines multiple images, each with a different focus plane, into a single image with maximum depth of field
- Particularly useful in macro photography and product photography, where depth of field is physically limited
- Software analyzes each image and selects only the sharpest areas from each one
Explanation
The Problem: Limited Depth of Field in Macro Photography
With macro shots at a 1:1 magnification ratio and a stopped-down aperture (f/11), the depth of field is often only 1–5 mm—when photographing an insect’s head, the focus is either on the eyes or on the proboscis, never on both at the same time.
Focus stacking solves this problem: You take 10–50 images, shifting the focus plane slightly farther back in each one. The software combines all the images into a single image that is sharp from front to back.
Step by Step: Taking the Photos
Equipment:
- Tripod (absolutely necessary—the subject must not move between shots)
- Remote shutter release or self-timer
- Macro lens or close-up lens
- For DSLRs: Enable mirror lock-up
Procedure:
- Mount the camera on a tripod and focus sharply on the foremost point of the subject
- Use manual focus (or the camera’s focus stacking mode)
- Take a series of images, shifting the focus slightly backward in each one
- Take enough images until the farthest relevant point is sharp
Shifting the Focus—Two Methods:
- Lens ring: Slightly turn the lens’s focus ring between shots (inaccurate but easy)
- Moving the camera: Physically move a macro focusing rail a few mm forward or backward—more precise
In-Camera Focus Stacking: Many modern cameras (Canon, Nikon, Sony, Olympus) offer a built-in focus stacking mode that automatically creates a series of images with the focus plane shifted.
Focus Stacking Software
| Software | Cost | Strengths |
|---|---|---|
| Helicon Focus | ~€50–200/year | Specialist software, best results, all methods |
| Zerene Stacker | ~$90 | Very good for insects and hair |
| Photoshop | Included in the Creative Cloud subscription | Well integrated, simple workflow |
| GIMP + Plugins | Free | Limited, for simple cases |
In Photoshop:
- Load all images as layers into a document (File → Scripts → Load Files into Stack)
- Select all layers → Edit → Auto-Align Layers
- Edit → Auto-Blend Layers → “Stack Images” + “Seamless Tones and Colors”
- Photoshop creates a composite layer with optimal sharpness
Common Problems and Solutions
| Problem | Cause | Solution |
|---|---|---|
| Ghosting / halo artifacts | Movement between shots | Shorter shutter speed, no wind |
| Unsharp areas remain | Too few images | Take more images with smaller focus steps |
| Color shifts | Lighting changed | Consistent lighting (studio lights, no sunlight) |
| Distorted transitions | Camera position changed | Use a more stable tripod, enable mirror lock-up |
Practical Tip
For your first attempt: Choose a stationary subject—a flower indoors (no wind), piece of jewelry, or coin. Take 10–15 images with slight focus shifts, then select “Auto-Blend Layers” in Photoshop. The result is almost always impressive—and the principle becomes immediately clear. Afterward, you can move on to natural subjects outdoors.