1. Home
  2. Tools
  3. Optics
  4. Focus Stacking Calculator

Focus Stacking Calculator

Optics · free · runs in your browser

When a foreground is too close for hyperfocal focusing, a focus stack keeps everything sharp. This calculator finds the minimum number of frames and the exact focus distance for each one, so that the depth-of-field zones overlap from your nearest point to the far limit (or infinity).

Works for landscapes and macro-landscapes on any sensor.

Frames needed
—
Hyperfocal distance
—
FrameFocus atSharp fromSharp to

How it works

H = f²/(N·c) + f. Each frame focuses at s = n(H−2f)/(H−f−n) so its near limit n equals the previous frame's far limit s(H−f)/(H−s).

FAQ

Should I overlap frames more?
Add one extra frame or focus slightly closer than listed for safety; stacking software handles extra overlap well.

Embed this tool on your site

Free to embed on blogs, club websites and forums — copy the code below. A small credit link is included.

Latest posts

  1. How to Photograph the Desert for Sharp and Evocative Images
  2. Tips for Better Coastal Photography and Sharp Seascape Shots
  3. 7 Basic Tips for Better Photos and How to Improve Your Shots
  4. What Is Similar to the Aurora Borealis and Other Sky Lights
  5. How to Improve Photo Print Quality for Sharp Results
  6. Why Wildlife Photography Matters for Conservation Success
  7. Explaining Mountain Photography With Practical Examples
  8. Starting Wildlife Photography Gear and Field Essentials
  9. What ISO to Use for Milky Way Photography Settings
  10. How to Describe a Landscape Using Precise Sensory Details