
Stopping down to a smaller aperture gives you more depth of field in a single frame, but it also introduces diffraction that softens fine detail. Focus stacking blends several frames, each focused at a different distance, to build a sharp image at a wider aperture. For still macro subjects, stacking usually gives crisper results, while a smaller aperture is faster and works with moving subjects.

The Problem with Macro Depth of Field
At close range, depth of field is extremely thin, sometimes a few millimeters. A small subject such as a flower or insect may have its front sharp and its back soft even at a fairly narrow aperture. That is why macro shooters need a plan beyond simply choosing a bigger number.
Option One: Smaller Aperture
- Set roughly f/8 to f/16 for more depth of field.
- Works in one shot, so it suits insects, breezy flowers and handheld work.
- Diffraction increases as you close the aperture, which reduces fine detail beyond a certain point.
- A narrow aperture needs more light, a longer shutter time or higher ISO.
Option Two: Focus Stacking
- You shoot a series of frames while moving the focus point from front to back.
- Software blends the sharpest parts into one image.
- You can stay near the lens’s sharpest aperture, often around f/4 to f/8.
- It needs a still subject and a steady camera, and the process takes more time.
How to Stack Focus
- Mount the camera on a tripod and set manual focus.
- Use a mid aperture, roughly f/5.6 to f/8, and a low ISO.
- Focus on the nearest part of the subject and take the first frame.
- Move focus a small amount farther, using a focusing rail or the focus ring, and shoot again.
- Repeat until you pass the farthest part of the subject, with each frame overlapping the last.
- Blend the frames in stacking software or a photo editor’s auto-blend tool, then check the edges.
Many modern cameras offer a built-in focus bracketing mode that automates the steps. Check your camera’s menu for it.
Quick Comparison
| Trait | Smaller aperture | Focus stacking |
|---|---|---|
| Shots needed | One | Many |
| Fine detail | Softened by diffraction | Stronger |
| Moving subjects | Workable | Difficult |
| Gear | Any | Tripod, software |
Understanding Diffraction in Practice
Diffraction is the reason that simply closing the aperture further does not keep improving sharpness. As light passes through a very small opening, it spreads slightly, and this spreading blurs fine detail across the whole frame. Depth of field grows as you stop down, but at some point the gain in depth is outweighed by the loss of crispness. The aperture where this happens depends on the sensor size, the pixel density and the lens, so there is no single magic number.
In macro work the problem is sharper than usual, because the effective aperture changes as you focus closer. At high magnification the lens extends, and the light reaching the sensor is reduced, which makes the effective aperture narrower than the number on the dial. Some cameras and lenses report this, while others do not, so check your manual. This is one reason macro shooters see softness appear earlier than they expect.
The practical approach is to test your own lens. Photograph a flat, detailed object, such as a printed page or a textured card, at a series of apertures on a tripod, using the same distance and light. Compare the results at full size on a computer. You will usually see sharpness improve up to a point, then decline. Note the aperture where the finest detail looks best, and the one where depth of field becomes acceptable for your usual subjects.
- Larger sensors and lower pixel counts tolerate narrower apertures better.
- Diffraction softening can be partly reversed in editing, but at the cost of noise.
- If you print small or share online, mild softness may not matter.
Choosing by Subject and Situation
The better method depends on what you are photographing and the conditions around you. Before setting up, ask whether the subject can hold still for the length of a series of frames, and whether the light and camera position can remain unchanged. If the answer to both is yes, stacking is a strong option. If not, a single frame with a narrower aperture is the practical choice.
Insects, spiders and small animals rarely stay still, and even a gentle breeze moves flowers and leaves. For these, a single exposure with a small aperture and a flash or higher ISO is usually the better route. You accept some softness in exchange for catching the moment. Some shooters make a small compromise by choosing a mid aperture and positioning the camera so that the most important plane of the subject is parallel to the sensor, which reduces the depth needed.
Still subjects suit stacking well. Examples include flowers brought indoors, mushrooms on a calm day, minerals, coins, jewelry, small tools, food and product shots. In a studio setting, you control the light and position, which makes stacking reliable. Indoors, you can also use a focusing rail for precise steps.
- Moving or breathing subjects: single frame, narrower aperture, faster shutter or flash.
- Still subjects with deep shapes: stacking at a sharp mid aperture.
- Flat subjects: often a single frame at a moderate aperture is enough.
Choosing well saves time. Many beginners stack everything, then discover that a simple single frame was sufficient for a flat subject.
Common Stacking Mistakes and Fixes
Stacking looks simple in theory, but several errors can ruin a series. The most common is shaking the camera between frames. Even a slight shift misaligns the layers, and blending software may need to crop or distort to fix it. Use a sturdy tripod, a remote release or timer, and avoid touching the camera during the sequence. If you use a focusing rail, make sure the locks are tight.
Another frequent problem is skipping too much distance between frames. If the steps are too large, areas between focus planes remain soft, and the blend shows banding or blurry stripes. Overlap each frame with the one before, and when in doubt, take more frames than you think you need. Extra frames cost little, while missing ones cannot be fixed afterward.
Changing light can also cause trouble. Clouds passing, a flickering lamp or a flash that varies in power produces frames with different brightness, which shows as patches in the final image. Use manual exposure so that the camera does not adjust between shots, and lock the white balance. For flash, choose a manual power setting and allow time for recycling.
Wind remains an enemy outdoors. If the subject moves between frames, the blend will show ghosting. Use a windbreak, shoot at a calm time of day, or choose a different technique for that moment.
- Check the first frame and the last frame to make sure the nearest and farthest parts are covered.
- Look at the edges of the final image for halos around thin parts such as hairs or petals, and retouch those by hand if needed.
- Keep the original frames until you are happy with the result.
Gear and Camera Features That Help
You can stack with modest equipment, but a few tools make the process far easier. A stable tripod is the foundation. For close work, choose one that can hold the camera low and that does not creep under load. A ball head is quick but may drift, while a geared head or a macro rail allows small, controlled adjustments.
A focusing rail moves the whole camera forward or back in small steps instead of turning the focus ring, which helps because turning the ring can change the framing slightly on some lenses. Rails come in manual and motorized versions, and the right choice depends on how often you stack and how much precision you need. Check that the rail’s load rating suits your camera and lens.
Many modern cameras include focus bracketing, which takes a sequence automatically while shifting the focus. Look at your menu to see whether you can set the step size, number of frames and interval. A smaller step gives better coverage but requires more frames. Some cameras also include in-camera stacking, though a computer usually gives you more control over the result.
Lighting matters as well. Continuous lights let you see the effect as you work, and diffusion softens harsh reflections on glossy surfaces. A small reflector can fill shadows without adding another light.
- Use a lens hood or flag to prevent stray light from lowering contrast.
- Use a remote shutter release or the camera’s timer.
- Turn off image stabilization on a tripod if the lens manual recommends it.
Choose tools to fit your subjects and budget level. A basic tripod and careful technique can deliver good results before you spend more.
Processing and Checking the Final Image
Once the frames are captured, the software stage turns them into one picture. Start by importing the files into your editing tool and applying any adjustments you want, such as exposure or white balance, to all frames equally. Applying edits unevenly can cause visible mismatches in the blend.
Most stacking tools offer automatic alignment and blending. Alignment corrects tiny shifts and changes in scale caused by focus breathing, which is a slight change in the field of view as focus moves. Blending selects the sharpest areas from each frame. If your software gives a choice of methods, try each one and compare. Some are better for fine, detailed structures, while others handle smooth surfaces more cleanly.
After blending, inspect the result at full size. Look at edges where a sharp object crosses a blurred background, since halos and ghosting often appear there. Check areas that overlap, such as the tips of petals or insect legs. If problems appear, many tools let you paint in a chosen frame over the faulty area, or you can retouch manually.
Finally, apply sharpening and noise reduction sparingly. Stacked images can look slightly soft overall, and gentle sharpening helps, but heavy sharpening exaggerates halos. Save a layered master file and export a copy for sharing.
- Work on copies of your raw files.
- Keep a note of your step size and frame count for repeat use.
- Compare the stack against a single narrow-aperture frame to see whether the extra effort paid off.
FAQ
How many frames do I need?
It depends on the subject depth and step size. A small object may need five to ten frames, while a deep subject may need dozens.
Can I combine both methods?
Yes. Many macro shooters stop down a little and also stack, which cuts the number of frames needed.
What aperture gives the sharpest macro image?
Many lenses are sharpest at a moderate aperture, but the exact value varies. Test your lens on a flat, detailed target at several apertures and choose the one that looks best at full size.
Why does my macro image look soft even at a narrow aperture?
Diffraction can reduce fine detail as you stop down, and camera shake or subject movement can add blur. Use a tripod, a remote release and a moderate aperture to check whether the softness improves.
Do I need a focusing rail to stack?
No. You can turn the focus ring in small steps or use your camera's focus bracketing mode. A rail gives finer, more repeatable steps and keeps the framing steady.
Can I focus stack handheld?
It is possible in good light with a short series, but alignment is harder and results are less reliable. A tripod gives much better results.
Why does my stacked image show halos?
Halos often appear where a sharp edge crosses a blurred background. Try a different blending method, take smaller focus steps, or retouch the area using a chosen frame.
Does focus stacking work with flash?
Yes, if the flash power is steady and it can recycle between frames. Use manual power so every frame has the same brightness.
Is stacking worth it for small online images?
Often not. If you share small images, a single narrow-aperture shot may look just as good, and stacking is best saved for large prints or very detailed work.
Practical Tips
- Use a remote release or a short timer to avoid shake during each frame.
- Keep lighting steady across the series so brightness matches.
- Shoot a few extra frames at each end of the subject.
The Short Version
Choose a smaller aperture for quick shots and moving subjects, and accept some softness. Choose focus stacking for still subjects when you want maximum detail across the frame.