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
Related Calculators
DOF Calculator
Calculate near focus limit, far focus limit and total depth of field for any lens, aperture and subject distance combination. Free online calculator.
Hyperfocal Distance Calculator
Find the hyperfocal distance for maximum depth of field in landscape photography. Enter focal length, aperture and sensor size. Free online calculator.
Circle of Confusion Calculator
Calculate the circle of confusion for your sensor size, viewing distance and print dimensions. Essential for accurate DOF calculations. Free calculator.
Bokeh Calculator
Estimate background blur disc size for any lens, aperture and subject-to-background distance. Predict bokeh quality before you shoot. Free online calculator.
Aperture Calculator
Find the exact aperture needed to achieve a target depth of field at any given focal length and subject distance. Free online photography calculator.
Last updated: February 2026
All calculations are estimates based on standard optical and photographic formulas. Results may vary with specific equipment.