Photo Focus Stacking: How to Capture and Combine Sharp Images
Learn photo focus stacking step by step: capture a sharp image series, align and blend the frames, then check the result for common artifacts.
Before you start
Focus stacking uses several photos of the same scene, each focused at a different distance, and combines the sharpest areas into one image. It is most useful for macro subjects, small products and close-up detail where a single frame cannot keep the whole subject in focus.
You need a camera or phone that can focus manually or lock focus, a stable support, and software that can align and blend the frames. The work is usually done locally in a desktop editor or a dedicated stacking application. Some camera brands include focus-bracketing or focus-shift capture, but the availability and menu names vary by model, so check the camera manual for your specific device.
Use the same exposure, white balance, focal length and aperture for every frame. Aperture affects how shallow each source image looks, but the combined result is created from the sharp zones rather than from making one very deep single exposure.
If the image will be used online, note the final pixel dimensions and aspect ratio before export. Focus stacking does not set the output size by itself; the dimensions come from the source files and the export settings in your software.
Step-by-step instructions
The exact controls differ between editors, but the capture and stacking order is similar in most tools.
- 1. Put the camera on a tripod or another stable surface. If the camera moves between frames, alignment becomes harder.
- 2. Set manual focus and choose a fixed aperture. Avoid changing exposure between shots.
- 3. Take the first photo focused on the nearest part of the subject you want sharp.
- 4. Move the focus slightly farther away and take the next photo. Continue in small, overlapping steps until the farthest required point is covered.
- 5. If the camera has a focus-bracketing mode, enable it and let the camera capture the sequence. Check the manual for how many shots the mode supports and whether it stops automatically.
- 6. Import the full set into your stacking software.
- 7. Align the frames first if the tool does not do it automatically. Some applications offer a tripod or handheld alignment option; tripod mode is usually the safer choice for this workflow.
- 8. Run the focus-stacking or focus-merge command. Keep the original frames untouched and work on a copy so the process remains reversible.
If your editor separates alignment from blending, align first, then apply the stack. Some tools expose a radius or smoothing setting that affects how the sharp regions are joined. Start with the default value and change it only if the result shows visible problems.
Version differences matter more in the interface than in the core result. A command may be called focus merge, focus stacking or focus bracketing depending on the application and release.
Check the output
View the stacked image at full magnification and look along the transitions between sharp areas. Check edges where one focused frame meets another, especially around thin structures and high-contrast outlines.
Confirm that the nearest and farthest points you intended to keep are both sharp. If a band of the subject is still soft, the capture sequence probably had too large a step between focus positions.
Check the output pixel dimensions after export. Large source files can be kept at full size, while web use usually benefits from explicit resizing rather than relying on the camera default.
Export to a file format that suits the final use. A lossless or high-quality format preserves more detail for further editing; a web format with compression reduces file size but may soften fine detail. If the subject needs transparency, use a format and export setting that supports it.
Common problems and next steps
A common issue is slight subject movement between frames. If a leaf or product part changes position, the blend can show doubled edges or ghosting. The correction is usually to reshoot with more stable support, less delay between frames or a subject that is held still.
Misaligned frames can create soft or duplicated detail. Turn on alignment in the stacking tool, or use a tripod-alignment option if available. If alignment still fails, check whether the camera moved during capture or whether the lens changed focal length.
Halos and blurred halos near edges are also common. They can appear when the software selects the wrong source area around a bright border. Reduce the strength of any edge-smoothing control, increase the number of captured frames, or retouch the affected area manually from one source image.
If parts of the scene remain unfocused, capture a denser sequence with smaller focus steps. If the output file is larger than needed, resize to the required pixel dimensions and aspect ratio during export instead of changing the source images.