Focus Stacking Calculator

Focus stacking works when each frame overlaps the next by about 30%. This calculator turns your near and far limits into a frame count and a focus step, so you stop guessing at 20 shots and hoping.

Lens and scene

Circle of confusion: 0.030 mm for full frame, 0.020 mm for APS-C, 0.015 mm for Micro Four Thirds. 30% overlap is the usual start; use 50% for a handheld burst.

Result

Frames needed
—
shots in the stack
Focus step
—
between frames
Depth per frame
—
at the middle of the range
First and last focus
—
metres
—

How many shots does a focus stack need?

Short answer: divide the distance you must cover by about 70% of the depth of field each frame already gives you, then add one. At 50 mm and f/8 on full frame, covering 0.5 m to 2 m needs 9 frames, with a focus step of about 20 cm. The same range at 100 mm needs 33 frames.

The step is the whole trick. Each frame is sharp over a slab of depth. If the next frame starts where the last one ended, the merge has nothing to blend and small alignment errors become visible bands. Overlap the slabs by 30% and the software has room to work:

Typical stacks, full frame

Frames at 30% overlap, 0.030 mm circle of confusion, focus ring method
SubjectLens and apertureRangeFramesStep
Watch face, macro100 mm, f/80.30 to 0.35 m222.5 mm
Flower head100 mm, f/80.40 to 0.52 m235.6 mm
Product shot50 mm, f/80.5 to 2 m90.20 m
Furniture35 mm, f/81 to 4 m32.2 m
Landscape foreground24 mm, f/5.60.5 to 3 m31.6 m

Set the calculator to your own values before trusting these: the step depends on the sensor, the aperture and the distance, and a change from f/8 to f/5.6 roughly halves the depth per frame.

Common questions

How many photos do I need for focus stacking?

Between 3 and 12 for most subjects. Close macro work at 100 mm needs 20 to 40 frames, because depth per frame at half a metre is only a few millimetres. A wide landscape stack needs 2 or 3.

Can I focus stack handheld?

Yes, if you shoot a burst and let the software align the frames. Use a 50% overlap, a shutter speed fast enough to freeze movement, and expect to discard frames where the camera drifted. Static subjects on a tripod always merge better.

Does focus stacking work with a moving subject?

No. The subject must be still for the whole sequence, or the merge shows ghost edges. Wind, water and people are the usual reasons a stack fails.

Related tools and guides

Macro Depth of Field

Magnification, working distance and the thin slab that is sharp.

Depth of Field Calculator

Near and far limits for any sensor, lens and distance.

Hyperfocal Distance

When one frame is enough and the stack is not needed.