Depth of Field Calculator
Calculate near and far focus limits, total depth of field, and hyperfocal distance. Visualize the sharp zone and compare aperture settings for your camera.
Camera Settings
Adjust your settings to calculate depth of field.
Focus & Sharpness
Focus Zone
Illustrative distance diagram
Aperture Comparison
Total depth of field at the same focal length and focus distance
Results are theoretical estimates based on the thin-lens depth-of-field model and the selected circle of confusion. Actual perceived sharpness also depends on viewing conditions, lens characteristics, and image output.
What Is Depth of Field?
Depth of field (DoF) is the range of distances in a photograph that appear acceptably sharp. It extends from the nearest acceptable focus point to the farthest acceptable point. The depth of field calculator estimates this range using your focal length, aperture, focus distance, and circle of confusion.
How to Use the Depth of Field Calculator
- Select your camera sensor format or enter a custom circle of confusion.
- Enter the lens focal length in millimeters.
- Choose your aperture, such as f/2.8, f/8, or f/16.
- Enter the distance from the camera to the subject and select meters or feet.
- Choose a teleconverter setting if you use one, then calculate the results.
- Review the near and far focus limits, total depth of field, hyperfocal distance, focus diagram, and aperture comparison chart.
Understanding the Results
- Near limit: The closest distance predicted to appear acceptably sharp.
- Far limit: The farthest distance predicted to appear acceptably sharp. It can extend to infinity under some settings.
- Total depth of field: The distance between the near and far limits. When the far limit is infinity, the total depth of field is also unlimited in this model.
- Hyperfocal distance: A focus distance that brings the range from approximately half the hyperfocal distance to infinity into acceptable focus, under the selected circle-of-confusion criterion.
- Circle of confusion (CoC): The assumed maximum blur-circle diameter considered acceptably sharp for the calculation. A smaller CoC generally produces a narrower calculated depth of field.
How Aperture Affects Depth of Field
With focal length, focus distance, and the circle of confusion held constant, a smaller aperture opening (a higher f-number, such as f/8 instead of f/2.8) generally increases depth of field. A wider aperture often helps isolate a subject against a softer background.
The aperture comparison chart calculates the predicted total depth of field across several f-numbers using the current focus distance, focal length, sensor circle of confusion, and teleconverter setting. The highlighted bar represents the selected aperture before teleconverter adjustment.
When to Use Hyperfocal Distance
Hyperfocal distance can help with landscape and scene photography when you want acceptable sharpness from a nearby foreground toward infinity. Set focus around the calculated hyperfocal distance only after considering the actual foreground distance and the sharpness required in the final image.
Accuracy and Limitations
- The calculator uses a conventional thin-lens depth-of-field model. Real lenses and complex focusing systems may not match the model perfectly.
- Sensor presets use conventional circle-of-confusion values. The most suitable value depends on the intended output size, viewing distance, and acceptable sharpness.
- Focal length should be entered as the lens’s actual focal length, not its 35 mm equivalent.
- The teleconverter option approximates the effect by multiplying both focal length and f-number. Actual exposure and optical performance depend on the equipment.
- The focus diagram is illustrative and its visible distance scale is limited. It is not a physical simulation of a lens or a guarantee of image sharpness.
- Use the results as a planning aid. Review critical focus in the camera or in the final image, especially for close-up work and large prints.
Frequently Asked Questions
What is a depth of field calculator?
It estimates the near and far distances that appear acceptably sharp based on focal length, aperture, focus distance, and a selected circle of confusion.
Does a higher f-number increase depth of field?
Generally, yes. With the other inputs unchanged, moving from f/2.8 to f/8 increases the calculated depth of field.
What is the circle of confusion?
The circle of confusion is a threshold used to define acceptable sharpness. Its appropriate value depends on the imaging format and how the photograph will be viewed.
What is hyperfocal distance used for?
It helps photographers choose a focus distance that extends acceptable sharpness from a nearby point toward infinity, which can be useful in landscape photography.
Should I enter actual or equivalent focal length?
Enter the actual focal length marked on the lens. The selected sensor format affects the circle-of-confusion assumption; do not enter the 35 mm equivalent focal length instead.
Why does the far focus limit show infinity?
Under the calculator’s optical model, the far limit extends to infinity when the focus distance reaches or exceeds the hyperfocal threshold. This is a theoretical acceptable-sharpness estimate, not a guarantee that every distant object will look perfectly sharp.
Are the calculated results exact?
No. They are theoretical estimates based on the selected circle of confusion and a thin-lens model. Lens characteristics, output size, viewing conditions, and focusing accuracy can affect perceived sharpness.