Depth of Field Calculator

Enter your camera sensor, focal length, aperture, and focus distance to instantly calculate near/far DoF limits and hyperfocal distance.

Camera Settings

Must be greater than 0. Enter the distance from camera to subject.

Hyperfocal Distance

Focus here to maximize sharpness from half this distance to infinity.

Near Limit

Closest sharp point

Far Limit

Farthest sharp point

Total Depth of Field

Far limit minus near limit — the complete sharp zone.

Sharp Zone Visualization

Camera Focus point Infinity

Blue bar = sharp zone relative to hyperfocal distance (capped at hyperfocal).

Formulas Used

H = f² / (N × c) + f

Dnear = (H × d) / (H + d − f)

Dfar = (H × d) / (H − d + f)  [∞ if d ≥ H]

f = focal length, N = f-number, c = CoC, d = focus distance

Summary

Enter your camera sensor, focal length, aperture, and focus distance to instantly calculate near/far DoF limits and hyperfocal distance.

How it works

  1. Select your camera sensor size from the preset list (or choose Custom to enter a circle of confusion manually).
  2. Enter the focal length in millimeters (e.g. 50 for a 50mm lens).
  3. Choose the aperture f-stop from the dropdown (e.g. f/2.8).
  4. Enter the focus distance in meters or feet — the unit selector applies throughout.
  5. The calculator instantly shows hyperfocal distance, near DoF limit, far DoF limit, and total depth of field.
  6. Switch between metric and imperial units at any time; all values recalculate.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-29 · Reviewed by Nham Vu