Near limit, far limit, total depth of field & hyperfocal distance from your sensor, focal length, aperture and focus distance — browser-only
- Runs locally
- Category Calculator
- Best for Getting a realistic range before a purchase, plan, workout, or schedule decision.
CoC 0.029 mm · reference full frame
What this tool does
A depth-of-field calculator built for the way photographers actually shoot. Pick your sensor or camera (full frame, Canon 1.6× APS-C, Nikon/Sony 1.5× APS-C, Micro 4/3, 1 inch, medium format, or a custom circle of confusion), type the focal length, the aperture f-number, and how far the subject is in metres. It returns the near focus limit, the far focus limit, the total depth of field split into front and back depth, and the hyperfocal distance for that lens and aperture. The math is the standard optical model: H = f-squared / (N times c) plus f for the hyperfocal distance, then the near and far limits derived from H and the focus distance. Crucially every length is converted to millimetres internally before any formula runs, so the metre/millimetre mismatch that breaks so many DoF calculators never happens here. When you focus at or past the hyperfocal distance the far limit correctly reads infinity instead of a wrong finite number. The circle of confusion follows the diagonal-over-1500 convention that lens DoF scales assume, and switching format instantly reshows how a smaller sensor with a tighter CoC deepens the field. Settings round-trip through the URL so a shared link reopens the exact reading.
Tool details
- Input
- Text + Numbers
- The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
- Output
- Live result
- The result area focuses on usable output, with copy, download, or preview actions when supported.
- Privacy
- Browser-side processing
- The main tool logic does not call an external API, so inputs normally stay in the current tab.
- Save / share
- Shareable URL state
- Key settings are encoded in the URL so another person can reopen the same setup.
- Performance budget
- Initial JS <= 11 KB
- No WASM budget is declared, keeping the tool quick to open on mobile.
- Best fit
- Calculator · Content Creator
- Category and role tags drive related tools, internal links, and quick fit checks.
How to use
-
1. Input
Paste or drop your content into the tool panel.
-
2. Process
Click the button. All processing is local in your browser.
-
3. Copy / Download
Copy the result or download to disk in one click.
How Depth of Field Calculator fits into your work
Use it for fast estimates, comparisons, and planning numbers before you make the final call.
Calculation jobs
- Getting a realistic range before a purchase, plan, workout, or schedule decision.
- Comparing scenarios by changing one input at a time.
- Turning rough assumptions into a number you can discuss.
Calculation checks
- Double-check units, dates, rates, and rounding assumptions.
- Treat health, finance, tax, and legal outputs as planning aids, not professional advice.
- Save the inputs that produced an important result so you can reproduce it later.
Good next steps
These links move the current task into a more complete workflow.
- 1 Aspect Ratio Calculator Calculate aspect ratio — fix any 1 of [width, height, ratio], get the other two. Open
- 2 Scientific Calculator Scientific calculator — sin / cos / log / sqrt / power, with full keyboard input + history, deg/rad mode. Open
- 3 Percentage Calculator 5 common percentage calculations — "x% of y", "x is what% of y", percentage change, increase/decrease — instant, browser-only Open
Real-world use cases
Nail a shallow portrait background
You are shooting an 85 mm portrait wide open at f/1.8 with the subject 2 metres away on a full-frame body. Punch those numbers in and the total depth of field reads a few centimetres — enough to keep the eyes sharp but melt the background. If the depth looks too thin to keep both eyes sharp at a three-quarter angle, you nudge to f/2.5 and watch the field widen in real time before you ever press the shutter.
Get a landscape sharp front to back
On a 24 mm lens at f/11 you want a foreground rock and distant peaks all sharp. The calculator gives the hyperfocal distance (around 2 m); you set focus there and the far limit flips to infinity, confirming everything from 1 m to the horizon falls inside the sharp zone. No more guessing whether to focus on the rock or the mountains.
Zone-focus for street photography
You prefocus a 35 mm lens at f/8 to grab candid moments without waiting for autofocus. Enter the settings and read the near and far limits, then set your manual focus to the middle of that zone. Anyone who walks into the band between, say, 1.5 m and 4 m is sharp the instant you raise the camera — the whole point of zone focusing.
Plan a product or macro shot's focus
Shooting a watch on a 100 mm macro at f/16, you need the dial and the crown both sharp. The tool shows just how thin the depth is at that magnification, so you decide up front whether to stop down further or shoot a focus-stack of several frames instead of discovering the problem on the computer.
Compare full frame vs crop before you buy
Deciding between a full-frame and an APS-C body for video, you compare the same 50 mm f/2 framing on each by switching the format. The crop sensor's deeper field tells you how much harder it will be to throw a background out of focus — concrete numbers instead of forum opinions to settle the upgrade question.
Common pitfalls
Mixing metres and millimetres. The formulas need focal length and CoC in mm but focus distance in metres; entering a focus distance in mm gives a wildly wrong field. This tool takes distance in metres and converts everything internally, so you only enter the unit shown on each field.
Using full-frame depth-of-field marks on a crop body. A printed DoF scale on a lens assumes a circle of confusion for one format. Mount it on an APS-C or Micro 4/3 body and the real depth differs; switch the sensor format here to get numbers that match your actual camera.
Expecting a single CoC to fit every output. The diagonal-over-1500 value suits normal print and screen sizes. If you crop heavily or pixel-peep at 100 percent, that standard is too loose; choose the custom format and enter a smaller circle of confusion.
Privacy
Every calculation — the hyperfocal distance, the near and far limits, the front/back depth split — is plain JavaScript running in your browser tab. Nothing you type is sent anywhere, there is no logging of your lens or settings, and there is no external API call. The one thing to know: the shareable URL encodes your current inputs in the query string (format, focal length, aperture, distance), so if you paste a share link the destination server's access log will record those values. For ordinary shot planning that is harmless; if you would rather not, just copy the numbers manually instead of sharing the link.
FAQ
Tool combos
Folks in your role tend to reach for these alongside this tool.
- A1Z26 Cipher (Letter ⇄ Number) A=1, B=2 … Z=26 — encode text to numbers or decode numbers to text, pick hyphen / space / comma separators, one-click copy — browser-only
- Chinese Acupoint Locator 200+ meridian acupoints / WHO 2008 standard locations / with contraindications, manipulation, and combinations.
- Add Line Numbers Number every line of pasted text — set start, step and separator, zero-pad to align, skip blanks, or strip numbers back off — browser-only
- Aesthetic Text Generator Turn plain text into wide fullwidth vaporwave letters, spaced-out aesthetic, or fold it back to normal — one click to copy, runs in your browser