Depth of Field Calculator
Tip: The mathematically correct phrase is depth of field, but many photographers still search for a "deep of field calculator."
What Is Depth of Field?
Depth of field (DOF) is the distance range in a photo that appears acceptably sharp. It starts at the near focus limit and ends at the far focus limit. Everything outside that zone becomes progressively blurrier. If you're trying to isolate a portrait subject, create cinematic bokeh, or keep an entire landscape sharp, DOF is one of the most important concepts to understand.
This deep of field calculator gives you practical numbers instantly: hyperfocal distance, near limit, far limit, and total depth of field. Instead of guessing, you can plan your shot with precision before pressing the shutter.
How the Calculator Works
The calculator uses standard optical formulas used across photography and cinematography. It combines your focal length, aperture, subject distance, and circle of confusion (CoC) to estimate focus depth.
- Hyperfocal distance: The closest distance where focusing gives acceptable sharpness out to infinity.
- Near limit: The closest point that still appears in acceptable focus.
- Far limit: The furthest point that still appears in acceptable focus (or infinity).
- Total DOF: The distance between near and far limits.
Input Guide: What Each Field Means
1) Focal Length
Focal length (in mm) strongly influences perspective and blur behavior. Wider focal lengths generally create deeper depth of field at the same framing and aperture, while longer focal lengths tend to produce shallower depth of field.
2) Aperture (f-number)
Smaller f-numbers (like f/1.8) produce shallower depth of field; larger f-numbers (like f/11) increase depth of field. However, as you stop down, you may eventually encounter diffraction softness depending on your sensor and lens.
3) Subject Distance
The closer you focus, the thinner your depth of field. This is especially noticeable in close-up or macro photography, where even tiny movements can throw focus off.
4) Sensor Format / Circle of Confusion
CoC is the acceptable blur threshold used in DOF formulas. Different sensor formats use different typical CoC values, which is why the dropdown includes presets. If you have a specific workflow or output requirement (for example, large print viewing), use the custom value.
Practical Examples
Portrait Example
Suppose you use an 85mm lens at f/1.8 and focus at 2.5m. Your DOF may be only a few centimeters. That means eyelashes might be sharp while ears are soft. For portraits, this can look beautiful—but it also means precise focusing is critical.
Landscape Example
Imagine a 24mm lens at f/8 focused near hyperfocal distance. You can keep foreground elements and distant mountains acceptably sharp in the same frame. This is where knowing hyperfocal distance becomes extremely useful.
Street and Travel Example
Many street photographers use zone focusing: a moderate wide lens, stopped-down aperture, and a preset focus distance. The result is a broad focus zone, allowing fast shooting without waiting for autofocus confirmation.
Tips to Control Depth of Field Intentionally
- Need more blur? Use a larger aperture (lower f-number), longer focal length, and shorter focus distance.
- Need more sharpness front-to-back? Stop down aperture, use a wider focal length, and focus carefully (often near hyperfocal distance).
- Watch your background distance: The farther background sits behind your subject, the blurrier it appears.
- Stabilize your camera: Smaller apertures may require slower shutter speeds, so tripod support can help.
- Consider focus stacking: For extreme depth in macro or product photos, multiple focus planes may be the best solution.
Common Mistakes
- Assuming aperture is the only DOF variable.
- Ignoring subject distance, which has huge impact on sharpness depth.
- Using hyperfocal distance when critical foreground sharpness needs tighter quality standards than "acceptable."
- Confusing shallow depth of field with lens quality. Blur can be artistic and intentional.
- Forgetting output size matters: web display, mobile viewing, and large prints can demand different CoC assumptions.
Frequently Asked Questions
Is this 100% physically exact?
It is mathematically standard and highly useful in real shooting, but real-world perception of sharpness depends on viewing distance, print size, lens rendering, and your definition of "acceptable focus."
Why does the far limit sometimes show infinity?
When your focus distance reaches or exceeds hyperfocal conditions for the chosen settings, the far limit extends to infinity.
Can I use this for video and cinema?
Yes. Cinematographers use similar calculations constantly for focus pulls, lens planning, and scene blocking.
Final Thoughts
A good deep of field calculator saves time, reduces missed shots, and helps you shoot intentionally rather than by guesswork. Use this tool during planning, on location, or while learning the effects of focal length and aperture combinations. After a while, you'll start predicting DOF naturally—and your compositions will improve because you're making sharpness a creative choice, not an accident.