What This Depth of Field Calculator Does
This tool estimates how much of your scene appears acceptably sharp in front of and behind your focus point. It calculates four practical values photographers use every day: hyperfocal distance, near focus limit, far focus limit, and total depth of field.
Whether you shoot portraits, landscapes, macro, or video interviews, understanding depth of field helps you make deliberate creative choices instead of guessing in the field.
How the Calculator Works
Inputs You Control
- Focal length — longer lenses usually create shallower depth of field at the same framing style.
- Aperture (f-number) — lower f-numbers (like f/1.8) reduce depth of field; higher ones (like f/11) increase it.
- Focus distance — the closer you focus, the thinner your depth of field becomes.
- Circle of confusion (CoC) — ties sharpness assumptions to sensor size and viewing conditions.
Core Formulas
The calculator uses standard thin-lens depth-of-field approximations:
- Hyperfocal distance: H = (f² / (N × c)) + f
- Near limit: Dn = (H × s) / (H + (s − f))
- Far limit: Df = (H × s) / (H − (s − f))
Here, f is focal length (mm), N is f-number, c is circle of confusion (mm), and s is focus distance (mm). If the far-limit denominator reaches zero or becomes negative, far depth extends to infinity.
Practical Photography Tips
Portraits
For a subject at 2–3 meters, even small aperture changes can dramatically affect eye-to-ear sharpness. Use this calculator before a session to decide whether your target look is cinematic blur or editorial crispness.
Landscapes
Hyperfocal distance is most useful in scenes where you want foreground and distant background both sharp. Focus around the hyperfocal mark and stop down carefully to balance sharpness and diffraction.
Video and Interviews
Shallow depth of field looks beautiful but makes focus pulling harder. Checking near and far limits beforehand can reduce missed takes, especially when subjects lean forward or backward while speaking.
Common Mistakes to Avoid
- Assuming f/2.8 always means the same blur regardless of subject distance.
- Ignoring sensor format and using an incorrect circle of confusion.
- Forgetting that composition changes (distance and framing) alter depth of field more than expected.
- Using only “infinity focus” when hyperfocal focusing would keep foreground sharper.
Final Note
Depth of field is both technical and artistic. Use the calculator to get a reliable baseline, then adjust for your style, subject movement, and final output medium. For critical work, always verify with real-world test shots and magnified review.