Focus Stacking Calculator

Calculate the number of shots needed to achieve front-to-back sharpness in macro and close-up photography.

How deep is the subject from front to back?
Shots needed
DoF per shot
Focus step size
Effective DoF range
Assumptions

DoF at macro distances uses the formula: DoF ≈ 2 × N × CoC × (M+1) / M². Overlap ensures seamless blending in stacking software. More overlap = safer blending.

Focus Stacking Tips

  • Use a tripod — Essential for alignment. Even small movements ruin stacks.
  • Use manual focus — Move focus ring or use a focus rail for precise control.
  • Shoot more than calculated — Better to have extra shots than miss the edges.
  • f/8–f/11 is usually optimal — Balances DoF per shot vs. diffraction.
  • Consistent lighting — Use manual exposure and controlled lighting.

FAQ

What software do I need? Photoshop (Auto-Blend Layers), Helicon Focus, Zerene Stacker, or the free CombineZP all work well.

Why not just use f/22? At macro distances, diffraction significantly reduces sharpness at small apertures. Focus stacking at f/8 gives sharper results than a single shot at f/22.

How do I measure subject depth? Estimate or measure the distance from the closest point to the farthest point you want in focus.

What is magnification? The ratio of subject size on the sensor to real-life size. 1:1 means life-size; 2:1 means twice life-size on the sensor.