Depth of field

Depth of field and hyperfocal distance from focal length, aperture, focus distance and circle of confusion.

About this tool

Enter focal length, f-number and focus distance. Near and far limits bound the region assumed acceptably sharp; depth of field is their separation. ∞ means that the far limit reaches infinity. Results update immediately.

Format chooses a conventional circle of confusion (CoC): full frame 0.030 mm, APS-C 0.020 mm, Micro Four Thirds 0.015 mm. These are acceptable-blur assumptions, not measured camera properties. Edit CoC directly for a custom criterion. Smaller CoC requires greater sharpness and reduces the range.

The action below the result sets focus to the hyperfocal distance. In this model the range then extends from half that distance to infinity. Example: 50 mm, f/2.8, CoC 0.030 mm, focus 5 m gives about 4.287–5.997 m, hyperfocal about 29.812 m.

Symmetric thin-lens model: H = f²/(N·c) + f; q = N·c·(s−f)/f²; near = s/(1+q), far = s/(1−q) for s<H, otherwise ∞. All lengths use the same unit, distances from the principal plane. Real lens pupil magnification, macro work, focus breathing, diffraction and aberrations are not modeled. Output size and viewing distance affect acceptable sharpness. Settings persist during navigation.