Depth of Field Calculator
Calculate the depth of field, hyperfocal distance, and near/far focus limits based on lens and camera settings.
About this calculator
Depth of field is the zone in front of and behind your focus point that still reads as acceptably sharp, and it hinges on one key concept: the circle of confusion, the largest blur spot the eye still perceives as a point. This calculator assigns that value by sensor size — 0.03mm for full frame down to 0.011mm for 1-inch sensors, since a smaller sensor gets enlarged more to reach the same output size, so it tolerates less blur before softness becomes visible. From there it computes the hyperfocal distance, H = f²/(N×c) + f, using focal length, aperture, and that circle of confusion. Hyperfocal distance is the focus distance that pushes everything from half that distance out to infinity into acceptable focus — the classic landscape-photography trick.
Near and far focus limits then come from standard optics formulas built around H and your actual subject distance: Dn = Hs/(H+(s−f)) and Df = Hs/(H−(s−f)). When the denominator in the far-limit formula goes to zero or negative, the calculator correctly reports far focus and total depth of field as infinity, which happens once your subject distance reaches or exceeds the hyperfocal distance. A common mixup: smaller sensors don't inherently have more depth of field at a given aperture — this calculator shows they do here because the tighter circle-of-confusion tolerance and typically shorter equivalent focal length both push in that direction, not because of sensor size on its own.
Inputs
Results
Near Focus Limit
2.73 m
≈ 18 smartphones
Total Depth of Field
0.6
How to Use This Calculator
- Enter Focal Length, Aperture (f-stop), and Distance to Subject.
- Set Sensor Size, Full Frame (36mm), and APS-C (23.5mm).
- Adjust Micro Four Thirds (17.3mm), 1-inch (13.2mm) as needed.
- Review Near Focus Limit and Total Depth of Field (m).
- Use Far Focus Limit and Hyperfocal Distance (m) to inform your decision.
How the result changes with Distance to Subject
| Distance to Subject | Near Focus Limit | Total Depth of Field |
|---|---|---|
| 1.5 | 1.43 m | 0.15 |
| 2.25 | 2.1 m | 0.33 |
| 4.5 | 3.92 m | 1.37 |
| 7.5 | 6 m | 4 |
What each input means
- Focal Length
- The focal length of your lens in millimeters.
- Aperture (f-stop)
- The f-number of the lens aperture. Lower values mean a wider opening.
- Distance to Subject
- Distance from the camera to the subject in meters.
- Sensor Size
- The sensor format of your camera. Affects the circle of confusion calculation.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersFocal Length = 50, Aperture (f-stop) = 2.8, Distance to Subject = 3, Sensor Size = 1 = 4 input(s) provided
- Calculate Near Focus Limit2.73 = 2.73
- Calculate Total Depth of Field0.6 = 0.6
- Calculate Far Focus Limit3.33 = 3.33
- Calculate Hyperfocal Distance29.81 = 29.81
Engine last updated . Checked against 1 independently-derived test — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why does a smaller sensor show more depth of field at the same aperture and distance?
It's not the sensor itself creating more depth of field directly — it's the tighter circle of confusion this calculator assigns to smaller formats (as low as 0.011mm for a 1-inch sensor versus 0.03mm for full frame) combined with typically shorter equivalent focal lengths used on those sensors. A smaller sensor is enlarged more to reach the same output size, so it tolerates less blur before something reads as unsharp, and that stricter tolerance is what the hyperfocal-distance formula translates into a deeper apparent zone of focus.
What does it mean when Far Focus Limit and Total Depth of Field show as Infinity?
That happens once your subject distance reaches or exceeds the hyperfocal distance — at that point, the far-focus formula's denominator (H minus (subject distance minus focal length)) goes to zero or negative, meaning everything from the near focus limit out to the horizon is acceptably sharp. This is the classic landscape technique of focusing at the hyperfocal distance to maximize the sharp zone without needing to focus at infinity itself.
Why does the near focus limit change so little compared to the far focus limit as I stop down?
Depth of field extends roughly one-third in front of the focus point and two-thirds behind it at typical shooting distances, so tightening the aperture (a smaller f-number denominator in the hyperfocal formula) pushes hyperfocal distance up and stretches the far limit much further than it pulls the near limit closer. This asymmetry is a direct consequence of the near/far focus formulas both being built around the same hyperfocal distance value.
How exactly does the circle of confusion value change my results?
Circle of confusion (c) sits in the denominator of the hyperfocal distance formula, H = f²/(N×c) + f, so a smaller c produces a larger hyperfocal distance, which in turn produces closer near-focus limits and a shallower total depth of field for the same focal length and aperture. This is exactly why the calculator switches c based on your selected sensor size rather than using one fixed value for every camera.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Lens Equivalent Calculator
Convert focal lengths between camera sensor sizes. Find the equivalent field of view and crop factor when switching between camera systems.
Photography BusinessExposure Triangle Calculator
Calculate exposure value (EV) from ISO, aperture, and shutter speed. Get equivalent exposures and brightness assessments.
Film & VideoCinema DOF Calculator
Calculate depth of field and hyperfocal distance for cinema cameras.
Specialized PhotographyArchitectural Photography Calculator
Tilt-shift settings from building height and camera position.
Specialized PhotographyMacro Photography Calculator
Magnification ratio, DOF, and working distance.
More in Creative, Media & Design.