# Depth of field > How much of my photo will be in focus? Near and far focus limits and hyperfocal distance from your lens settings. Calculate near and far focus limits, total depth of field and hyperfocal distance from focal length, aperture, focus distance and a chosen blur limit. - Page: https://how.box/depth-of-field/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/depth-of-field/?f={f}&n={n}&d={d}&c={c} - `f` (number 1 to 2000): Actual focal length. Example: `50`. - `n` (number 0.5 to 128): Aperture f-number. Example: `8`. - `d` (number 0.01 to 1e6): Focus distance from the lens principal plane. Example: `3`. - `c` (number 0.001 to 0.2): Acceptable sensor blur diameter. Example: `0.03`. Example answer: https://how.box/depth-of-field/?f=50&n=8&d=3&c=0.03 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `depth_of_field_calculate`: Calculate thin-lens near/far focus limits, total depth and hyperfocal distance in metres from actual focal_length (mm), aperture (f-number), distance (m from lens principal plane) and coc (sensor blur diameter, mm). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"depth_of_field_calculate","arguments":{"focal_length":50,"aperture":8,"distance":3,"coc":0.03}}}` - GET: https://how.box/mcp/run/depth_of_field_calculate?focal_length=50&aperture=8&distance=3&coc=0.03 ## How it works Depth of field describes the range that meets a chosen sharpness criterion. A smaller acceptable blur circle makes that range narrower. The default 0.03 mm is a starting criterion, not a measurement of your camera. For focal length f, f-number N, blur diameter c and focus distance s, let q = f²/(Nc). With all lengths in millimetres, the near limit is sq/(q+s−f), the far limit is sq/(q−s+f), and the hyperfocal distance is H = q+f. A zero or negative far denominator means the range reaches infinity. This is a thin-lens geometric estimate. It excludes diffraction, aberrations and pupil magnification. Close-up work and complex lens designs need a more detailed model. A camera distance scale is usually referenced to the sensor plane, so its reading differs from the principal-plane distance used here. ## FAQ **What is hyperfocal distance?** It is the focus distance at which the far acceptable-focus limit first reaches infinity for the chosen blur criterion. **What circle of confusion should I use?** Choose a sensor-plane blur diameter appropriate to your intended viewing conditions. The default 0.03 mm is a conventional starting point for 35 mm photography; tighter sharpness requirements need a smaller value. **Should I enter crop-equivalent focal length?** Enter the actual optical focal length. Account for your desired sharpness through the circle of confusion rather than replacing focal length with an equivalent. **Does a smaller aperture always make the picture sharper?** A higher f-number increases geometric depth of field, but diffraction can reduce fine detail. This calculator does not model that trade-off. **Why does the far limit say Infinity?** You are focusing at or beyond the calculated hyperfocal distance. Distant objects then meet the selected geometric blur limit. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)