Focus Stacking for Beginners: Sharp Macro and Product Photos
Why depth of field limits close-up photos, how to shoot a focus stack, how many frames you need and how to merge them for front-to-back sharpness.

Focus Stacking for Beginners: Sharp Macro and Product Photos
If you have ever photographed a flower, a ring or an insect up close, you have met the problem: one part is sharp and everything in front and behind is blurred. Stopping the lens down helps a little, but at very small apertures diffraction softens the whole image. Focus stacking is how macro and product photographers get images that are sharp from front to back.
Why close-ups have so little depth of field
Depth of field shrinks dramatically as you get closer to the subject. At life-size magnification it can be a fraction of a millimetre, even at f/8. No single setting can make a 3-centimetre beetle sharp from its antennae to its tail.
The focus stacking solution
Instead of one photo, you take a series. Each frame is focused slightly further away than the last, so every part of the subject is sharp in at least one frame. Software then measures sharpness across all frames and combines the sharpest parts into one image.
Equipment
- A tripod is essential. The camera must not move between frames.
- Manual mode for exposure and white balance, so every frame matches.
- A remote release or self-timer to avoid vibration.
- Optional: a focusing rail, which moves the whole camera in tiny steps. Turning the focus ring works fine for most subjects.
How to shoot a stack
- Compose and set exposure manually. An aperture of f/5.6 to f/8 is a good balance between sharpness and depth.
- Focus on the nearest point of the subject and take the first frame.
- Move the focus slightly further and take the next frame.
- Repeat until the farthest point you want sharp is in focus.
- Make sure each frame's sharp zone overlaps the previous one.
How many frames?
It depends on the subject and magnification. A product on a table might need 5 to 10 frames. A small insect at high magnification can need 30 or more. When in doubt, take more frames with smaller steps; gaps between sharp zones show up as soft bands.
Merging methods
There are two common approaches:
- Weighted blending combines all frames, giving more weight to sharper ones at each point. It is smooth and hides seams, with slightly less crisp fine detail.
- Sharpest pixel picks, for every pixel, the frame where it is sharpest. It keeps maximum detail but can show halos around high-contrast edges and patchiness in smooth areas.
Try both and compare. A depth map, showing which frame each area came from, helps diagnose problems.
Common problems and fixes
- Halos around edges: increase the detail radius or switch to blending.
- Soft bands: you skipped part of the depth; shoot more frames.
- Ghosting: the subject moved, usually wind or a living insect. Shoot indoors or faster.
- Size changes between frames: many lenses change their field of view slightly as they focus ("focus breathing"). Small changes are tolerable; for large stacks a focusing rail avoids it.
Beyond macro
Focus stacking is not only for tiny subjects. Landscape photographers stack a foreground flower with distant mountains. Product photographers stack bottles, watches and shoes so labels are crisp. Food photographers stack plates shot at a low angle.
A quick checklist
- Tripod, manual exposure, manual white balance.
- Start at the nearest point, end at the farthest.
- Overlap each step.
- Keep the subject still.
- Merge, check the depth map, adjust and export.
Focus stacking takes a few extra minutes per shot, but the result, a small subject sharp from edge to edge, is impossible to get any other way.


&c=%237c3aed&k=images)
