What this Depth of Field Calculator does
The Depth of Field Calculator estimates the span of a scene that appears acceptably sharp, using four inputs: lens focal length, aperture, subject focus distance, and circle of confusion. It returns an estimated total depth of field in millimeters. The model is useful for planning a photograph, comparing possible camera settings, and understanding why a small adjustment can change the apparent sharpness around a subject.
Depth of field has a near boundary and a far boundary. The total is the distance between those two boundaries. This calculator uses a compact thin-lens approximation for that total. It does not return the near and far limits separately, and it does not simulate a specific camera or lens. Results should therefore be read as planning estimates, especially in close-up work where focusing and lens design can complicate the simple model.
In photography and image making, focus choices influence how viewers read a frame. A shallow zone can isolate a detail, while a broader zone can keep more of a layered scene legible. The calculation gives a way to reason about that zone before taking a photograph, without replacing a test image or a careful look at the final output size.
How to use the Depth of Field Calculator
Enter the focal length marked on the lens, in millimeters. For a zoom lens, use the focal length at which you expect to shoot. Next enter the aperture as an f-number, such as 2.8, 4, or 8. Enter the subject distance from the camera’s sensor plane to the subject, in millimeters. Finally choose a circle of confusion value in millimeters that suits your camera and intended viewing conditions.
All distance values must use millimeters. For example, 3 meters becomes 3,000 mm, and 1.5 meters becomes 1,500 mm. Mixing meters and millimeters would make the result meaningless. The calculator’s output is also in millimeters, so divide by 1,000 to express it in meters.
- Focal length describes the lens setting, not the subject distance.
- Aperture is entered as the f-number. A larger f-number means a smaller lens opening.
- Focus distance is measured from the camera’s sensor plane, not from the front of the lens.
- Circle of confusion represents an assumed acceptable blur size for the image format and viewing conditions.
Use values within the displayed limits. The defaults provide a worked starting point: a 50 mm lens at f/4, focused at 3,000 mm, with a 0.03 mm circle of confusion. The returned estimate is approximately 2,197.80 mm, or about 2.20 meters of total depth of field under this model.
How the Depth of Field Calculator formula works
The formula is (focus distance × focus distance × aperture × circle of confusion) ÷ (focal length × focal length + focus distance × aperture × circle of confusion). Its output is the estimated total depth of field, in the distance unit used for focus distance. Because focal length and circle of confusion are both entered in millimeters, the dimensions remain consistent when focus distance is also in millimeters.
For the default example, the numerator is 3,000 × 3,000 × 4 × 0.03, which equals 1,080,000. The denominator is 50 × 50 + 3,000 × 4 × 0.03, which equals 2,860. Dividing 1,080,000 by 2,860 gives about 377.62 mm, or 0.38 meters. This result demonstrates the calculator’s actual formula and units.
The formula uses focal length squared in the denominator, so changing focal length can affect the estimated depth of field. Aperture and the circle of confusion also influence the result, as does focus distance. The relationship is not a universal description of perceived sharpness. It is a simplified estimate based on an optical model and an assumed blur tolerance.
There is a mismatch between a conventional total-depth-of-field equation and the supplied formula’s algebraic behavior at ordinary distances. The value calculated above is the output the supplied equation produces, rather than a claim that it is a reliable conventional depth-of-field estimate. Treat it as a formula result for comparing inputs only, and use a trusted camera-specific depth-of-field reference if you need near and far focus limits or a dependable field estimate.
Use cases for the Depth of Field Calculator
A photographer planning a close detail of a print or sculpture can use the calculator to see how selected settings change the model’s reported span. A landscape photographer can compare a couple of focus distances and apertures while deciding how to compose a frame with foreground and background elements. Someone documenting artwork can use calculations as a prompt to test whether important surface detail remains acceptably sharp across the subject.
It can also support learning. Hold three inputs steady and change one at a time. That makes the result easier to interpret and helps separate the effect of aperture from the effect of focus distance or the assumed circle of confusion. Keep notes about the camera, lens, settings, and viewing conditions so that later comparisons are meaningful.
For a practical comparison, consider writing down two planned setups before a shoot:
- Record lens focal length, aperture, and focus distance for the first setup.
- Change one setting in the second setup, keeping the others fixed.
- Compare the calculator outputs, then make test photographs and inspect them at the intended display size.
This approach is useful for visual planning, but it does not promise that every object in the calculated span will look equally sharp. Actual perception depends on the image sensor, lens behavior, focus accuracy, output size, viewing distance, and the viewer’s tolerance for blur.
Other factors to consider with depth of field
The circle of confusion is an assumption rather than a fixed physical boundary. It summarizes how much blur can still appear sharp under particular image size and viewing conditions. A value suitable for a small screen preview may not be suitable for a large print viewed closely. Camera format is one factor photographers consider when choosing this value, so use a value from a source that matches your camera and output needs.
Lens construction and focusing distance can affect results in ways a simple equation does not capture. At close distances, effective aperture, focus breathing, and lens-specific behavior can matter. Some cameras also apply computational processing that changes apparent sharpness. A sharpened image may look crisp at one size while revealing blur or focus errors at another.
Depth of field also describes acceptable sharpness, not the shape or quality of background blur. Two photographs with similar depth estimates can have different bokeh because of lens design, subject distance, background distance, and aperture construction. Use a test photograph when the background rendering is an important part of the image.
For critical work, check focus with the camera and lens you will use, and inspect the result at the intended output size. Keep the displayed estimate as one planning reference among several. The result should not be interpreted as a guarantee of sharpness across the frame.
FAQ
What does depth of field mean?
Depth of field is the region in front of and behind the focus plane that appears acceptably sharp in a photograph. It is a range of perceived sharpness, not a hard boundary where detail suddenly changes from sharp to blurred.
Why does the calculator ask for a circle of confusion?
The circle of confusion sets an assumed blur tolerance. What appears acceptably sharp depends partly on the camera format, image dimensions, viewing distance, and output size. Use a value appropriate to your intended use.
Should I enter the distance from the lens front?
For the model used here, enter subject distance measured from the camera’s sensor plane. Many cameras mark this plane on the body. Measuring from the lens front can produce a different estimate, particularly at close range.
Does a smaller aperture always mean more depth of field?
A larger f-number generally increases depth of field under common photographic conditions, though the actual result depends on the full setup. Very small apertures can also reduce fine detail through diffraction, so the sharpness tradeoff involves more than depth alone.
Can I use the result as a guarantee that a subject will be sharp?
No. The value is an estimate from the supplied simplified formula and assumptions. Confirm critical focus with test images, and inspect them at the size and distance at which they will be viewed.