Focus stacking is a technique where you take multiple photos of the same scene, each focused at a different distance, and combine them in software to produce a single image with front-to-back sharpness that a single exposure can never achieve. It solves the fundamental physics problem: at close range or wide apertures, depth of field is razor thin. This guide covers the technique end-to-end — from the camera settings through to software merging — for wedding detail shots, macro, landscape, and product photography.
Why Focus Stacking Exists
Every lens has a plane of sharpest focus. Objects in front of and behind that plane become progressively blurred. The range of acceptable sharpness is "depth of field" (DoF). You can increase DoF by stopping down to f/16 or f/22, but this introduces diffraction — a physics-based softening that affects the entire image. Focus stacking lets you use the lens's sharpest aperture (typically f/5.6 to f/8) and still achieve total sharpness from foreground to infinity.
When to Use Focus Stacking
Macro and Close-Up Photography
At 1:1 magnification, depth of field is measured in millimetres — even at f/16, only a few millimetres are sharp. A ring shot at f/2.8 might have the diamond sharp but the band blurred. Focus stacking solves this: take 10-20 shots across the ring, stack them, and every facet and inscription is razor sharp.
Landscape Photography
A composition with flowers in the foreground and mountains in the background cannot be sharp throughout at any single aperture — especially with wide-angle lenses at close focus. Two or three shots — one focused on the flowers, one on the middle distance, one on the mountains — stacked together produce edge-to-edge sharpness at f/8 without diffraction.
Product Photography
Flat-lay compositions of wedding stationery, shoes, perfume, and jewellery often need every element sharp. Focus stacking at f/5.6 produces images sharper than shooting at f/22.
Equipment Needed
- Tripod: essential — the camera must not move between frames, or the stacking software can't align them correctly.
- Remote trigger or timer: avoids camera shake between shots.
- Camera with manual focus: all cameras support this. Some modern cameras have built-in focus bracketing that automates the process.
- Stacking software: Adobe Photoshop (Auto-Blend Layers), Helicon Focus, or Zerene Stacker. Photoshop handles most tasks well; the dedicated tools offer finer control for complex stacks.
Camera Technique — Step by Step
- Mount on tripod. Lock everything down. Do not touch the camera between shots if possible.
- Set Manual exposure. Aperture, shutter speed, and ISO must be identical across all frames — if any change, the brightness will shift and the stack will show banding.
- Choose a sharp aperture. f/5.6 to f/8 is the sweet spot for most lenses. This gives maximum per-image sharpness.
- Focus on the nearest point in the scene using manual focus or live-view zoom.
- Take the first shot.
- Move the focus point slightly deeper into the scene. The amount to shift depends on your depth of field at the chosen aperture and magnification. For macro work, tiny adjustments are needed — the depth of field per frame is only a few millimetres.
- Take the next shot. Repeat focusing deeper and shooting until the entire scene has been covered from front to back.
- Overlap the focus zones. Each successive focus point should overlap with the previous frame's sharp zone. Gaps between focus points result in soft bands in the final image.
How Many Frames?
- Macro (1:1): 15-40 frames depending on subject depth.
- Close-up detail shots: 5-10 frames.
- Landscape (foreground to infinity): 2-5 frames.
- Product flat-lay: 3-8 frames.
Automated Focus Bracketing
Many modern cameras (Nikon Z series, Canon R series, Olympus/OM System, Fujifilm, Panasonic) have a built-in focus bracketing mode. You set the starting focus point, the step size, and the number of frames — the camera then fires the entire sequence automatically, shifting focus by a predetermined amount each shot. This is faster, more consistent, and eliminates the risk of bumping the focus ring.
Stacking in Software
Photoshop Method
- Open all frames as layers: File → Scripts → Load Files into Stack.
- Select all layers.
- Edit → Auto-Align Layers → Auto.
- Edit → Auto-Blend Layers → Stack Images, check "Seamless Tones and Colors".
- Photoshop creates layer masks that select the sharpest region from each frame and blends them together.
- Flatten the result and crop away the alignment edges.
Helicon Focus / Zerene Stacker
Dedicated stacking software offers multiple algorithms (weighted average, depth map, pyramid). These handle tricky overlapping edges and translucent subjects (like insect wings) better than Photoshop. Helicon Focus also includes a retouching brush to fix blending artefacts manually.
Focus Stacking for Wedding Details
Rings and Jewellery
The classic application. At f/2.8, a ring has less than 5mm of depth in focus. The diamond may be sharp but the band behind it blurs. Take 8-12 shots stepping focus from the nearest edge to the farthest. The result: every facet, inscription, and surface detail is tack sharp, with beautiful background bokeh preserved behind the ring.
Wedding Stationery Flat-Lays
Invitations, perfume bottles, shoes, cufflinks, and flowers arranged in a flat-lay. Even shooting straight down, varying heights of objects create different focus distances. A 3-5 frame stack ensures every element is sharp.
Cake Details
A three-tier wedding cake shot at f/2.8 has the middle tier sharp but the top and bottom tiers soft. Three stacked frames — one for each tier — solve this while maintaining the creamy bokeh in the background.
Common Mistakes and Solutions
- Camera movement between frames: even tiny shifts cause alignment problems. Use a remote trigger and don't touch the camera.
- Subject movement: wind blowing flowers, a moving insect, or the bride's veil caught in a breeze — any movement between frames creates ghosting. Shoot quickly and review for motion.
- Focus gaps: not enough overlap between focus points leaves soft bands. Better to take more frames than fewer.
- Changing light: a cloud passing during the sequence changes exposure. Shoot in manual mode with consistent lighting or work fast.
- Parallax shift: changing focus on a lens slightly changes framing (focus breathing). Modern stacking software handles this via alignment, but extreme breathing can cause cropping issues.
Every facet of the diamond, every letter on the invitation — focus stacking delivers detail a single exposure simply cannot.
Precision technique for the details that matter most. See wedding detail photography in the portfolio.







