💡 Who this is for
For photographers and filmmakers who want to quickly evaluate depth of field while shooting or planning, without relying on external services. The tool runs entirely in your browser, works offline, and never sends any data online.
This Depth of Field (DOF) calculator helps you understand how aperture, focal length, focus distance, and sensor size together affect depth of field and framing.
📘 How it works
- How to use: Pick a Preset (sensor size) or choose Custom and enter width/height (mm). Set Focal length, Aperture, and Focus distance. Click Calculate.
- Units: Enter distance in metres (m) or feet (ft). Results are shown in both.
- Custom Sensor: When selected, enter width/height (mm). CoC (circle of confusion) is auto-calculated from diagonal crop vs Full Frame (base 0.030 mm), unless overridden.
- Advanced options: Override CoC and choose whether hyperfocal distance uses the +f variant (
H = f²/(N·c) + f) or not (H ≈ f²/(N·c)). - Practical meaning:
- Hyperfocal distance — focus at H to maximise DOF; everything from H/2 to ∞ is acceptably sharp.
- Near/Far limits — the distances that bound acceptable sharpness.
- Total DOF — Far − Near. If Far = ∞, depth extends to infinity.
- Angle of View — horizontal field of view from sensor width and focal length.
- Framing width @ distance — real‑world width at your focus distance for quick composition estimates.
- Notes: Some presets (e.g., S35/S16/BMPCC) are approximate across models. Use Custom for exact sensors. All calculations run locally.
Camera & Sensor
If CoC is empty, it will be derived from diagonal crop vs Full Frame (base 0.030 mm).
Advanced options
Results
Hyperfocal distance
—
Near limit
—
Far limit
—
Total DOF
—
Field of View (Horizontal)
Angle of View
—
Framing width @ distance
—
Notes
- Units: input in metres or feet; results are shown in both.
- Default CoC: Full Frame = 0.030 mm; other presets scale by diagonal crop. You can override in Advanced.
- Formulas: H = f²/(N·c) (+ f), Near = (H·s)/(H + (s − f)), Far = (H·s)/(H − (s − f)).
- All variables (f, c, s, H) are in the same units (mm). Far = ∞ when s ≥ H (with +f convention).
- Presets like S35/S16/BMPCC are approximate across models. Use Custom for exact sensors.