Try to photograph a flower, an insect, or a piece of jewelry up close, and you’ll hit a wall fast: no matter where you focus, part of the subject is always soft. That isn’t a flaw in your camera — it’s the physics of depth of field. Focus stacking is the technique photographers use to work around it, by capturing several frames at different focus distances and merging the sharp bits of each into a single image that’s crisp from front to back. Here’s how it works and how to do it yourself.
Why One Frame Can’t Do It
Every lens keeps only a thin slice of the scene in acceptably sharp focus at any one moment — the depth of field. The closer the subject and the wider the aperture, the thinner that slice becomes. In macro photography it can shrink to fractions of a millimeter: an insect’s eye can be razor sharp while its antennae, a couple of millimeters closer, are already blurring.
You can deepen the field by stopping down to a smaller aperture, but only so far. Beyond roughly f/11 or f/16, diffraction sets in and softens the whole picture, so you’d simply be swapping one kind of blur for another. Focus stacking sidesteps that trade-off entirely: you stay at the lens’s sharpest aperture and move the plane of focus through the subject instead.
What Focus Stacking Actually Is
Focus stacking has two halves. The first is capture: you shoot a series of images of the same scene, each focused a little farther away, starting at the nearest point you want sharp and working back toward infinity. That capture step is called focus bracketing. The second half is the merge: software aligns the frames and blends them, keeping only the sharpest region from each exposure and discarding the rest. The result is one composite with far more depth of field than any single frame could produce.

It’s indispensable for macro and close-up work, but you’ll also see it in product photography, watch and jewelry shoots, and even landscapes, where a near foreground rock and a distant ridge both need to be tack-sharp.
How Cameras Automate the Capture
Most modern cameras can do the bracketing step for you, so you never touch the focus ring between frames. Canon calls the feature Focus Bracketing and includes it on bodies like the EOS R5, R6, RP, R10 and 90D. You set the number of shots and the focus increment, and the camera fires a burst while stepping focus from near to far; Canon’s free Digital Photo Professional software can then composite the result for you.
On Nikon Z-series mirrorless cameras the same tool is named Focus Shift Shooting. It lives in the Photo Shooting menu, where you choose the number of shots, the focus step width and an interval, and the camera shifts focus automatically from the starting point toward infinity.
Fujifilm’s X Series and GFX bodies call it Focus Bracketing (FOCUS BKT). You can control frames, step and interval manually, or switch to AUTO and let the camera calculate the frame count after you select the near and far focus points.
How to Shoot a Focus Stack
1. Mount the camera on a tripod. Alignment matters — even slight movement between frames creates ghosting in the merge.
2. Focus on the nearest point you want sharp, then start the bracketing sequence. If your camera lacks the feature, shoot frames manually, nudging focus slightly between each one.
3. Use a small-to-mid aperture (often f/5.6 to f/11) where the lens is sharpest, and keep exposure identical across frames.
4. Overlap generously. A small step between frames means no soft gaps between slices; it’s better to shoot too many frames than too few.
5. Keep the subject still. Wind, moving insects, or anything drifting between exposures will show up as ghosting in the final image.
How Software Blends the Slices
Stacking software works in two stages: alignment and blending. It first aligns all the frames, correcting for tiny framing shifts between exposures, then analyzes each one to find the in-focus regions and stitches them together. In Adobe Photoshop, you import the frames as layers, run Edit → Auto-Align Layers, then Edit → Auto-Blend Layers and choose Stack Images. Dedicated tools such as Helicon Focus, Zerene Stacker and Affinity Photo do the same thing with more control and often fewer artifacts, especially on deep macro stacks of dozens of frames.
When to Use It — and When Not To

Reach for focus stacking when you’re working close: macro insects and flowers, product and jewelry photography, and any still-life where you want edge-to-edge sharpness. It also helps in landscapes with a strong near-far composition. Skip it when the subject moves — focus stacking fails on anything that can’t hold still, including portraits, moving wildlife, and scenes with fast-changing light. In those situations a single frame with judiciously chosen focus is the better tool.
FAQ
Do I need special software to focus stack? Not necessarily. If your camera shoots focus-bracketed frames, you can merge them in Photoshop, Affinity Photo, or free tools like CombineZP. Dedicated apps such as Helicon Focus and Zerene Stacker simply handle large stacks more gracefully.
How many frames do I need? It depends on the depth of your subject and the aperture, but macro stacks often run from a handful of frames to more than a hundred. Start with 10–20 and increase the count until there are no soft gaps.
Does focus stacking work on a phone? Some modern smartphones offer a limited form of it for macro and close-up shots, blending a few frames automatically, but the serious multi-frame stacking described here is a camera-and-software workflow.
Conclusion
Focus stacking is one of the most rewarding techniques in photography because it lets you do something no single exposure can: capture sharpness across a depth your lens simply can’t cover. With built-in focus bracketing on modern Canon, Nikon and Fujifilm cameras, the capture side has become nearly effortless — the real skill is knowing when to use it and giving your software clean, well-aligned frames to work with. Start with a flower or a watch on your desk, and you’ll be amazed at how much detail you’ve been leaving on the table.