Images and Photos

How to Focus Stack Macro and Product Photos

Learn to shoot a focus bracket and merge it into one image that is sharp from front to back, with alignment, detail radius and a depth map check.

Saizul Amin
Saizul Amin2 Nov 2026 · 4 min read
How to Focus Stack Macro and Product Photos

Close-up photography has a frustrating physical limit: the closer you get, the thinner the zone of sharp focus. At life-size magnification it can be a millimetre deep even at f/8. Focus stacking gets around this by combining several photos focused at different distances. This guide explains how to shoot a stack and merge it with the free Focus Stacking tool.

Why not just use a smaller aperture?

Stopping down to f/16 or f/22 does increase depth of field, but diffraction softens the whole image. You end up with everything equally mediocre. Stacking lets you shoot at the lens's sharpest aperture, usually f/5.6 to f/8, and still have the whole subject crisp.

Step 1: set up for consistency

Use a tripod, a copy stand or a sturdy table. Switch to manual exposure and manual white balance so every frame matches. Turn off image stabilisation on a tripod. If you shoot outdoors, wait for still air; a flower that sways between frames will show doubled edges.

Step 2: shoot the bracket

Focus on the nearest point you want sharp and take a photo. Turn the focus ring a fraction, or move the camera forward on a focusing rail, and take the next. Continue until the farthest point is sharp. Overlap the sharp zones: if in doubt, take more frames with smaller steps. Many recent cameras from Canon, Nikon, Sony, Olympus and Fujifilm have a focus bracketing mode that does the stepping automatically.

Step 3: load the frames

Open the tool and choose all the frames. They are sorted by file name. Thumbnails have checkboxes so you can leave out a frame spoiled by a bump or a moving insect.

Step 4: choose settings

The detail radius sets how large an area the tool looks at when judging sharpness. Values of 3 to 6 pixels suit most photos. Use smaller values for very fine detail such as insect hairs, and larger ones for noisy images or smooth products, where they reduce speckled transitions.

Blending between neighbours softly mixes each pixel's sharpest frame with the frames on either side. A value of 1 gives smooth transitions on curved surfaces such as a ring band or a mushroom cap.

Leave alignment on. It corrects small shifts between frames, which happen when you touch the camera or when the lens changes framing slightly while focusing.

Step 5: stack and check

Click Stack. The tool measures local contrast in every frame, picks the sharpest source for every pixel and blends the result. Switch to the depth map: dark areas came from early frames (near focus) and light areas from late frames. A smooth progression front to back means good coverage. A band of identical grey across a subject that should vary in depth suggests a gap in your bracket.

Practical example

A jeweller photographs a ring at about half life-size with a 100 mm macro lens at f/8. Fourteen frames from the front of the stone to the back of the band, stacked at 2,400 pixels, produce an image with every facet and the hallmark inside the band in focus. The depth map shows a clean gradient, confirming no frames are missing.

Fixing common artefacts

  • Halos around edges: a sharp near edge over a blurred far background. Increase the detail radius or add frames at the transition.
  • Soft bands: gaps in the bracket. Reshoot with smaller focus steps.
  • Ghosts: something moved. Untick the affected frames and stack again.

Landscapes too

Focus stacking is not only for macro. A landscape with a flower a metre from the lens and mountains on the horizon can be stacked from two or three frames: one focused on the flower, one at the middle distance and one at infinity.

Privacy and limits

All processing happens in your browser, so product photos under embargo stay on your machine. The tool corrects shifts but not rotation or focus breathing, so very long stacks from lenses that change magnification noticeably may show soft edges; keeping the subject centred helps.

Summary

Shoot a bracket on a tripod with fixed exposure, overlap the sharp zones, load the frames, stack with a moderate detail radius and check the depth map. The result is a photo sharp from front to back without diffraction softening.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages