Calculator

Depth of field calculator

Near and far limits of sharpness, total depth of field and hyperfocal distance for any lens, aperture and sensor.

Near limit—
Far limit—
Depth of field—
Hyperfocal distance—
In front / behind—

How it works#

The calculator uses the thin-lens equations with a circle of confusion (CoC) of 0.030 mm for full frame, scaled by crop factor (0.020 mm APS-C, 0.015 mm MFT). These are the same assumptions behind lens DoF scales and suit an 8×10 in print viewed at about 25 cm.

Formulas: hyperfocal H = f²/(N·c) + f; near = s(H−f)/(H+s−2f); far = s(H−f)/(H−s) (infinite when s ≥ H).

Frequently asked questions#

Why does depth of field look shallower on my screen than the calculator says?

At 100% zoom you're looking at a much bigger 'print' than the CoC assumes. For pixel-level critical sharpness, use a smaller CoC — or treat the numbers as 'acceptably sharp at normal size'.

Is depth of field split evenly in front and behind the subject?

No. At normal distances roughly a third is in front and two-thirds behind; the split approaches 50/50 at macro distances and becomes very asymmetric near the hyperfocal distance.

Last updated October 03, 2026 · How we calculate · Sources

Last posts

  1. Can You Photograph Fireworks Without a Tripod?
  2. Best Lenses for Fireworks Photos Expert Gear Recommendations
  3. Which Lens Should I Buy First? A Practical Strategy
  4. Are Teleconverters Worth It? Pros and Cons for Your Gear
  5. Teleconverters vs Cropping Which Method Wins for Reach
  6. Is Longer Focal Length Better? Choosing the Right Lens
  7. The Best Lenses for Sunset Photography by Focal Length
  8. ND vs CPL Filters Which One Do You Need for Better Photos
  9. Best Filters for Sunset Photography and How to Use Them
  10. Choosing the Right ND Filter for Sunset Photography