Depth of Field Calculator
Estimate near focus limit, far focus limit, total depth of field, and hyperfocal distance for your lens setup.
What Is Depth of Field?
Depth of field (DOF) is the zone in front of and behind your focus point that appears acceptably sharp. It is one of the most important tools in photography because it shapes how viewers experience your image. A narrow DOF isolates a subject with soft background blur, while a deep DOF keeps more of the scene in focus.
This calculator gives you practical numbers so you can make creative decisions before you press the shutter. Instead of guessing, you can quickly estimate whether your portrait background will melt away or whether your landscape foreground and horizon can both remain sharp.
How the Calculator Works
The calculator uses the classic optical formulas based on focal length, aperture, subject distance, and circle of confusion.
Inputs
- Focal length: Lens focal length in millimeters.
- Aperture (f-number): Controls lens opening size and strongly affects DOF.
- Subject distance: Distance from camera sensor plane to focused subject.
- Circle of confusion (CoC): Acceptable blur diameter tied to sensor size and viewing assumptions.
Outputs
- Near focus limit: Closest point that remains acceptably sharp.
- Far focus limit: Farthest point that remains acceptably sharp (or infinity).
- Total DOF: Distance between near and far limits.
- Hyperfocal distance: Focus distance where far limit reaches infinity and near limit is maximized.
How to Control Depth of Field in Real Shooting
1) Aperture
Wider apertures (like f/1.8 or f/2.8) produce shallower DOF. Narrow apertures (like f/8 or f/11) increase DOF. Aperture is usually the fastest way to change background blur.
2) Subject Distance
The closer you focus, the shallower your DOF becomes. Even at moderate apertures, close-up shots can have very thin focus zones.
3) Focal Length
Longer lenses often appear to have shallower DOF for equivalent framing and subject distance. They also compress perspective, which can make blur look smoother and stronger.
4) Sensor Size and CoC
Larger sensors generally allow shallower depth of field for comparable framing and exposure settings. This calculator uses CoC presets to reflect common assumptions for different formats.
Example Scenarios
Portrait Example
Try 85mm, f/1.8, 2 meters, full frame. You should see a relatively narrow DOF that keeps eyes sharp but softens ears and background. Great for subject separation.
Street Example
Try 35mm, f/8, 5 meters. You’ll get a much wider focus zone, making it easier to capture spontaneous moments without perfect focus timing.
Landscape Example
Try 24mm, f/11, focus near the hyperfocal distance. This maximizes your in-focus region and helps keep foreground and distant details acceptably sharp.
Practical Tips for Better Results
- Use this calculator as a planning tool, then confirm with live view zoom or focus peaking when possible.
- Remember diffraction at very small apertures (for example f/16+ on some cameras) can reduce overall sharpness.
- For critical work, bracket focus or use focus stacking, especially in macro photography.
- In portraits, prioritize eye focus first; shallow DOF can easily shift perceived sharpness to the wrong feature.
- Hyperfocal techniques are useful, but modern high-resolution sensors may benefit from more conservative CoC values.
Common Mistakes to Avoid
- Assuming DOF is evenly distributed in front of and behind the focus point (it usually is not).
- Ignoring subject movement at wide apertures; motion blur can ruin sharpness even with correct focus.
- Using only center-frame focus without checking composition shifts that move key details out of the focus plane.
- Expecting background blur to depend only on aperture; distance relationships matter just as much.
Final Thought
A depth of field calculator is not just technical—it is creative. When you know your focus limits, you can intentionally guide the viewer’s eye, separate a subject from clutter, or keep an entire scene readable. Use the numbers here to plan faster and shoot with more confidence.