Depth of Field Calculator

Calculate depth of field, hyperfocal distance, and focus limits based on aperture, focal length, subject distance, and sensor size.

Input Parameters

Results

Near Focus Limit
—m
Far Focus Limit
—m
Total Depth of Field
—m
Hyperfocal Distance
—m
Circle of Confusion
—mm

How it works

The calculator uses standard depth-of-field optics formulas. It first picks a circle of confusion (CoC) based on your sensor — the largest blur spot still perceived as sharp. Hyperfocal distance H = f² / (N · c) + f, where f is focal length, N is f-number, and c is CoC. The near limit Dₙ = s · (H − f) / (H + s − 2f) and far limit D_f = s · (H − f) / (H − s). When subject distance s ≥ H, the far limit extends to infinity. Total DoF equals the difference between the far and near limits.

Frequently Asked Questions

What is depth of field and why does it matter?

Depth of field (DoF) is the range of distance in a scene that appears acceptably sharp. It matters because it controls how much of your image is in focus — a shallow DoF isolates a subject with a blurred background, while a deep DoF keeps everything from foreground to background sharp, ideal for landscapes.

How do aperture and focal length affect DoF?

Wider apertures (smaller f-numbers like f/1.8) produce shallower depth of field, while smaller apertures (larger f-numbers like f/11) increase DoF. Longer focal lengths (e.g., 200 mm) compress the scene and narrow DoF, while shorter focal lengths (e.g., 24 mm) widen DoF for a given aperture and framing.

What is hyperfocal distance?

Hyperfocal distance is the closest focus distance at which objects at infinity remain acceptably sharp. Focusing at this point maximizes total DoF, giving you sharpness from half the hyperfocal distance all the way to infinity — a key technique in landscape photography.

Related Tools