Kalkmi Online calculators
en
English

Depth of Field Calculator — Focus & Scene Planner

Check depth of field for your camera settings or choose a balanced focus distance and aperture to cover the near and far subjects in your scene.

PHOTOGRAPHY · MAKE FOCUS A CHOICE

What needs to look sharp?

See the range your settings cover, or choose a focus distance and aperture for the near and far subjects in your scene.

Illustrative examples, not lens-specific recommendations. Depth of field means acceptable geometric blur under your chosen criterion.

Lens focal length and circle of confusion stay in millimetres.

Lens & sharpness criterion

Conventional starting points:

Rounded conventions, not pixel-level sharpness. Larger prints, closer viewing or cropping may need a smaller criterion. Enter your own value.

Current camera settings

Acceptable sharpness range3.3894–9.5274 m

Focus at 5 m · f/8 · CoC 0.03 mm

Near limit
3.3894 m
Far limit
9.5274 m
Depth of field
6.1381 m
Hyperfocal distance
10.4667 m
Focus · 5 m0∞Distance axis compressed toward infinity
Acceptable geometric blurFocus plane

What changes with aperture?

Focus distance stays fixed. Select an aperture to see its range.

ApertureNear limitFar limitDepth of fieldUse
Model, assumptions & practical use

This is a geometric thin-lens planner. Sharpness changes continuously; a depth-of-field boundary is where the defocus blur reaches your circle-of-confusion criterion. It is not a wall between perfectly sharp and completely blurred.

Use the actual focal length including any optical teleconverter effect. A smaller sensor does not change the calculation when actual focal length and CoC are held fixed. Format buttons only supply rounded conventional CoC values; they do not detect your camera, print size or crop.

With lengths in millimetres: hyperfocal distance H = f² / (N × c) + f. For focus distance s, near limit = s × (H − f) / (H + s − 2f), far limit = s × (H − f) / (H − s). At or beyond H, the far limit is infinity. When focusing at H, the near limit is H / 2. When focusing at infinity, the near limit is H − f.

For scene distances a and b, balanced focus is their harmonic mean, 2ab / (a + b). With a far subject at infinity, focus is 2a. The minimum geometric f-number is f²(b − a) / [c(2ab − f(a + b))], or f² / [c(2a − f)] for infinity. The tool then checks coverage using the selected nominal f-number. These are geometric choices, not an optimum for total image quality.

Stopping down increases geometric depth of field, but diffraction, lens aberrations, motion and focus accuracy affect the actual photo. None are predicted here. Use the result as a starting point and inspect real captures at your intended viewing size. This is not a macro, tilt/shift or focus-stacking calculator. Distances approximate the lens principal plane; a camera's sensor-plane mark or focus scale can differ.

Sources: DOFMaster optical equations and ZEISS on depth of field and the blur criterion.

Was this calculation useful?
It takes one second and helps others choose a useful calculator.

Help improve Kalkmi Report an issue or request a useful calculator.
Suggest a calculator
Text copied
Removal error
Restore error
Calculator published
Calculator unpublished
Feedback sent
Done
Error
Author received:++
Calculator removed
Install as an app

Open the browser menu and choose “Add to Home Screen” or “Install app”.