DOF Calculator — Depth of Field
Calculate the near focus limit, far focus limit and total depth of field for any lens, aperture and distance combination.
Determines the circle of confusion
How We Calculate This
This calculator uses the standard thin-lens depth of field equations:
Hyperfocal Distance
H = f² / (N × c) + f
Near and Far Focus Limits
D_near = (H × u) / (H + u - f)
D_far = (H × u) / (H - u + f)
Where f = focal length, N = f-number, c = circle of confusion, u = focus distance. When u ≥ H, the far limit extends to infinity.
Frequently Asked Questions
Related Calculators
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.
Focus Stacking Calculator
Plan focus stacking sequences for macro and landscape photography. Calculate the number of frames and focus step distance needed. 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.