Skip to content
ApertureAuthority
LearnField guide

Focus Stacking: How to Get Front-to-Back Sharpness

When one frame cannot hold both the near and far subject in focus, you shoot several at different focus points and blend them. Here is how focus stacking works.

Updated Jun 29, 20264 min readResearch backed
A macro flower rendered sharp from the nearest petal to the back of the bloom

We may earn a commission from links on this page, at no extra cost to you. Picks are researched, not sponsored.

Guided path

Make sharpness a decision, not a prayer

Article decision brief

Use this page for the decision it can actually settle

The shortest path is answer, fit check, next useful action, then price.

What this settles

Field guide

The practical answer, then the next guide, tool, or rule check that keeps the decision moving.

Evidence layer

Guide backed

The guide is tied to related paths and tools so the answer does not end at prose.

Next action

Use a tool

1 practice tool can turn the guide into a working setup.

Buying posture

Learn before buying

Use the buying paths only after the guide makes the actual need clear.

Practice this

Turn the guide into a working setup

All tools

What this means in real life

Even a small aperture has limits. In macro work the depth of field can be a millimeter thin, so a single frame leaves most of the subject soft. In a landscape with a rock right at your feet and mountains far away, no single focus point catches both. Stopping the aperture all the way down to f/22 widens the zone, but it also softens the whole image through diffraction. Focus stacking sidesteps the compromise: instead of one frame trying to do everything, you take several, each sharp in a different slice, and let software keep only the sharp parts of each.

An extreme macro of a dew-covered dahlia where every petal from the nearest curling edge to the deep center of the bloom is rendered tack sharp, each droplet crisp, a depth no single frame could hold at this magnification
A focus-stacked macro: sharp from the nearest petal to the back of the bloom, impossible in a single frame at this magnification.

When to stack

The same close-up of an insect on a leaf shown twice, on the left only the head is sharp while the body falls soft in a single frame, on the right the entire insect is crisp end to end from a focus stack
A single frame leaves part of a deep subject soft. The stack keeps every slice sharp without stopping down into diffraction.

Stack when the near-to-far distance is too great for one frame at a clean aperture. That is most common in macro and close-up work, and in landscapes with a strong, very close foreground. If everything in your scene is roughly the same distance away, you do not need to stack; a single well-focused frame at f/8 to f/11 is sharper and simpler. Stacking also assumes a still subject, so it suits flowers in calm air, products, and rock-solid landscapes, not wind or motion.

The settings

Lock everything down so only the focus changes between frames.

Keep the aperture in the lens's sharp range, around f/5.6 to f/11, rather than stopping fully down, because the whole point is to avoid diffraction softening. Lock exposure in manual mode so the frames blend cleanly, and lock white balance too. The focus steps should overlap so no slice of the scene falls between two frames. This is a deliberate, methodical extension of the exposure triangle discipline: nothing moves but the focus ring.

The size of each focus step is what makes or breaks a stack. A safe rule is to advance focus by about a third of the depth of field per frame, so consecutive slices overlap rather than leaving a soft gap between them. In practice that means small, even nudges of the focus ring at high magnification and slightly larger ones for a landscape. When in doubt, take more frames with smaller steps; extra overlap costs only storage, while a missed slice cannot be recovered after the shoot.

A mountain landscape where a cluster of wildflowers and a mossy rock just inches from the lens are rendered as crisply as the snow-capped peaks miles away, foreground and distance equally sharp across the whole frame
A landscape stack keeps a close foreground and distant peaks equally crisp, which no single focus point can do.

The technique

The full sequence:

  1. Mount on a tripod, compose, and set manual exposure at a sharp aperture like f/8.
  2. Focus on the nearest point you want sharp and take the first frame.
  3. Step focus slightly farther and shoot again, repeating in small overlapping increments until the farthest point is sharp.
  4. Trigger each frame with a remote or self-timer so the frames stay aligned.
  5. Merge in your editor's focus-merge or stack-and-blend command, which picks the sharpest pixels from each frame.

A macro subject might need 10 to 30 frames; a landscape often needs only 3 to 5. Many cameras have a focus-bracketing mode that automates the steps for you once you set the first focus point and the step size. This is a core tool for astrophotography foregrounds and for any landscape photography scene with a dramatic close element, where you want the foreground rock and the distant peak equally crisp.

Common mistakes

Leaving gaps between focus steps is the classic error, and it shows up as a soft band running through the final image. Letting the subject or camera move between frames breaks the alignment, so a tripod and a still subject are essential. Changing exposure between frames, often from shooting in an automatic mode, makes the blend uneven. Stopping the aperture down too far defeats the purpose, since diffraction then softens every frame you stack. And forgetting to lock focus and exposure in manual lets the camera quietly re-decide between shots.

How many frames do I need for focus stacking?

It depends on the depth of the scene and the aperture. A flat-ish landscape may need only 3 to 5 frames, while a deep macro subject can need 10 to 30 or more. The rule is simple: enough overlapping focus steps that no slice of the subject is left soft.

Can I focus stack handheld?

It is possible for a quick 3-frame landscape stack if the software aligns the frames, but a tripod is strongly recommended. Macro stacking, with its razor-thin focus slices and many frames, really does need a tripod and a still subject to align cleanly.

Why not just use a small aperture like f/22 instead?

Stopping down that far widens depth of field but softens the entire image through diffraction. Focus stacking lets you shoot at a sharp aperture like f/8 and still get front-to-back sharpness, so the final result is crisper than a single f/22 frame.

Keep going

Where this guide fits

Follow the full path, or jump to the next guide, tool, or gear page that matches what you are doing.

More photography guides

One email when a useful guide, tool, or field note goes live. Unsubscribe anytime.

  • Buying paths
  • Deal checks
  • Tool updates

No daily sale spam. Just new guides, tools, and buying shortcuts.

Researched, not personally tested: picks compare specifications, available owner feedback, and established expert sources. As an Amazon Associate I earn from qualifying purchases. We may earn a commission from links here, at no extra cost to you. How we research →