Back to Free Tools
FREE TOOLS
Depth of Field Calculator
Estimate near/far focus limits and hyperfocal distance under an explicit thin-lens blur model.
Focal length (mm), F-number, Chosen circle of confusion (mm), Focus distance (m)
JSON
Browser only
Runs locally in your browser. Your files, pasted content and generated output are not uploaded. Reset clears this tool’s working data.
This tool needs JavaScript. If it does not load, refresh the page and try again.
How to use this tool
- Enter the labelled values and use the displayed units.
- Choose Calculate result and inspect the full report, assumptions and undefined/no-solution status.
- Choose Download result to save the complete JSON. Reset clears results and restores the example controls.
Examples
Focal length (mm): 50
F-number: 8
Chosen circle of confusion (mm): 0.03
Focus distance (m): 5
Limitations
- Focal length mm,f-number,chosen circle of confusion mm and focus distance m; focus distance must exceed focal length. Infinity far limit represented as null with farIsInfinite=true. Thin lens,pupil ratio1; no macro/real lens or acceptable-sharpness guarantee.
- Scalar numeric inputs use explicit decimal syntax and IEEE-754 arithmetic; unless a tighter bound is stated, positive values are 1e-12–1e12 and nonnegative values 0–1e12. Derived inventory counts above 1 billion and nonfinite results are refused. Combined input limit400,000 UTF-8 bytes;complete JSON output limit4MiB. Numeric/code input controls allow128 characters. All processing stays in your browser.
Related tools
No items found.