Skip to content

Focus Stacking Calculator — Number of Frames

Plan focus stacking steps for macro or landscape shots with correct overlap.

How We Calculate This

DOF per Frame

Depth of field per frame is found from the standard thin-lens equations at the average focus distance: hyperfocal H = f² ÷ (N × c) + f, near limit Dn = H·s ÷ (H + (s − f)) and far limit Df = H·s ÷ (H − (s − f)), where f is focal length (mm), N the f-number, c the circle of confusion (mm) and s the focus distance. DOF per frame = Df − Dn.

Number of Frames

Frames = ⌈total depth ÷ (DOF × 0.7)⌉ + 1

The 0.7 factor leaves 30% overlap between frames for reliable blending. The focus step is then the total depth spread evenly across the frames.

Macro accuracy note

These thin-lens equations are intended for general and landscape distances. At true macro magnifications (greater than roughly 1:4) depth of field is better estimated from the magnification-based formula DOF = 2·N·c·(m + 1) ÷ m², so for 1:1 work add extra frames or use a dedicated macro DOF table (e.g. Zerene Stacker or Points in Focus).

Frequently Asked Questions

Last updated: February 2026

All calculations are estimates based on standard optical and photographic formulas. Results may vary with specific equipment.