numvana

Depth of Field Calculator

Find a photo's hyperfocal distance and the near/far limits of acceptably sharp focus from focal length, aperture, subject distance, and circle of confusion.

Hyperfocal distance
10.47 m
Near limit of sharp focus
3.39 m
Far limit of sharp focus
9.53 m
Total depth of field
6.14 m

How it works

Depth of field comes from thin-lens optics: only objects at the exact focused distance form a perfectly sharp point on the sensor, but points somewhat nearer or farther still land within an acceptably small blur spot (the circle of confusion) rather than a visibly soft one. The hyperfocal distance H — the focus distance beyond which everything out to infinity stays acceptably sharp — is H = f²/(N·c) + f, where f is focal length, N is the f-number, and c is the circle of confusion.

Once H is known, the near and far limits of acceptable sharpness for a lens focused at subject distance s follow from the same thin-lens defocus relationship: near limit = s(H − f) ÷ (H + s − 2f), and far limit = s(H − f) ÷ (H − s). The far-limit formula's denominator reaches zero exactly when s equals H, which is why focusing at the hyperfocal distance sends the far limit to infinity — and it also means the near limit at that exact focus distance always comes out to precisely H ÷ 2.

Focal length and circle of confusion are entered directly in millimeters regardless of the unit toggle, since photographers worldwide specify both that way by convention; only subject distance — the one field you're likely to think of in meters or feet depending on where you are — switches with the toggle.

FAQ

What circle of confusion should I use?

0.03mm (the default) is the standard reference value for a full-frame 35mm-format sensor, viewed at a normal size and distance. A smaller sensor needs a proportionally smaller circle of confusion to look equally sharp when the two images are displayed at the same size — roughly 0.02mm for APS-C, or about 0.015mm for Micro Four Thirds. Check your camera's sensor format and adjust the field if it isn't full-frame.

Why did my far limit come out as 'infinite'?

That happens whenever your subject distance is at or beyond the hyperfocal distance shown above it — by definition, focusing anywhere from the hyperfocal distance to infinity keeps everything out to infinity acceptably sharp. Move your focus point closer than the hyperfocal distance if you need a finite far limit.

Related calculators