Depth of Field Calculator

The Depth of Field Calculator estimates the total distance range that appears sharp in a photograph. This tool helps photographers understand how focal length, aperture, and subject distance affect image sharpness. Whether you are shooting portraits, landscapes, or macro photography, this calculator provides quick estimates for planning your shots.

Enter the lens focal length (e.g., 50 for a 50mm lens)
Enter the f-number (e.g., 1.8, 2.8, 8, 16)
Enter the distance from camera to subject (e.g., 2.5 for 2.5 meters)
Enter sensor blur limit (0.03 for full-frame, 0.02 for APS-C)

This calculator is for informational purposes only. Results are estimates based on geometric optics formulas and may not account for all real-world factors. For critical photography work, test your equipment and settings in the field.

Use this free online Depth of Field Calculator to calculate your total depth of field, near focus distance, and far focus distance. Simply enter your focal length, aperture, subject distance, and circle of confusion to instantly get results in meters and feet. These values help you understand which parts of your scene will appear acceptably sharp in the final image.

How Depth of Field Is Calculated

Depth of field is calculated using optical formulas that relate lens properties to the zone of acceptable sharpness. The calculation starts by finding the hyperfocal distance, which is the focus distance that maximizes depth of field. Then, near and far focus limits are determined based on your actual subject distance. The total depth of field is the difference between these two limits.

H = f² / (N × c) + f
Dn = (H × s) / (H + (s - f))
Df = (H × s) / (H - (s - f))
DOF = Df - Dn

Where:

  • f = focal length in millimeters
  • N = aperture f-number
  • c = circle of confusion in millimeters
  • s = subject distance in millimeters
  • H = hyperfocal distance in millimeters
  • Dn = near focus distance
  • Df = far focus distance

The circle of confusion value depends on your camera sensor size. Larger sensors typically use larger values (0.03mm for full-frame) while smaller sensors use smaller values (0.015mm for Micro Four Thirds). This accounts for how much the image will be enlarged in prints or displays.

What Your Depth of Field Result Means

Your depth of field result tells you the total distance range that will appear acceptably sharp in your photograph. A smaller depth of field means less of the scene is in focus, which works well for isolating subjects in portraits. A larger depth of field means more of the scene is in focus, which is often preferred for landscapes and architecture.

Photography Type Typical DOF Range Common Settings
Portrait 0.1 - 0.5 meters 50-85mm lens, f/1.4-f/2.8
Street Photography 1 - 3 meters 28-35mm lens, f/5.6-f/8
Landscape 5 - 50+ meters 16-24mm lens, f/8-f/16
Macro 0.001 - 0.01 meters 90-105mm lens, f/11-f/22

Remember that depth of field is not a sharp cutoff. Objects at the near and far limits are just barely acceptable in sharpness. Objects inside this range appear progressively sharper toward the point of exact focus.

Accuracy, Limitations & Common Mistakes of the Depth of Field Calculator

How Accurate Is the Depth of Field Calculator?

This calculator uses standard optical formulas that provide good estimates for most photography situations. The accuracy depends on having correct input values and understanding that "acceptable sharpness" is based on standard viewing conditions. Results may vary slightly from what you see in actual images due to lens characteristics, sensor resolution, and personal perception of sharpness.

Limitations of the Depth of Field Calculator

This calculator does not account for lens aberrations, diffraction effects at small apertures, focus breathing in zoom lenses, or print size variations. The formulas assume a simple lens model and standard viewing conditions. Very close focus distances (macro range) may produce less accurate results. The circle of confusion value is a compromise that works for typical viewing distances and print sizes.

Common Mistakes to Avoid

  • Using the wrong circle of confusion value for your sensor size, which gives misleading results. Check your camera specifications for the correct value.
  • Forgetting that depth of field extends roughly one-third in front and two-thirds behind the focus point, not equally on both sides.
  • Confusing subject distance with focus distance. Enter the actual distance to your subject, not where the lens focus ring is set.
  • Assuming smaller apertures always give sharper images. Diffraction at very small apertures (f/16, f/22) can actually reduce overall sharpness.

Frequently Asked Questions

Who is this Depth of Field Calculator for?

This calculator is designed for photographers of all skill levels who want to understand and control focus in their images. It is useful for portrait photographers who want blurry backgrounds, landscape photographers who need front-to-back sharpness, and macro photographers dealing with extremely shallow depth of field. Both beginners learning about aperture and experienced photographers planning complex shots will find it helpful.

How often should I use this calculator?

Use this calculator when planning shots that require precise focus control, such as product photography, group portraits, or landscape images with foreground elements. Many photographers use it when transitioning to a new lens or camera system. For routine photography, you may develop an intuitive sense of depth of field and use the calculator mainly for challenging situations.

Does this calculator work for all lens types?

This calculator works well for standard prime and zoom lenses at typical focus distances. It may be less accurate for specialty lenses like tilt-shift lenses, mirror lenses, or lenses with significant focus breathing. For macro photography at 1:1 magnification or greater, specialized depth of field formulas provide more accurate results.

What if my subject distance is past the hyperfocal distance?

When your subject distance equals or exceeds the hyperfocal distance, the far focus distance becomes effectively infinite. This means everything from the near focus distance to infinity will appear acceptably sharp. Landscape photographers often focus at or near the hyperfocal distance to maximize depth of field for scenes with both near and distant elements.

Is the Depth of Field Calculator free to use?

Yes, this calculator is completely free to use with no sign-up required. It works on any device with a web browser.

References

  • Ray, Sidney F. (2002). Applied Photographic Optics: Lenses and Optical Systems for Photography. Focal Press.
  • Kingslake, Rudolf. (1992). Optics in Photography. SPIE Optical Engineering Press.
  • Canon Professional Network. Depth of Field Calculator and Technical Guide.
  • Berkowitz, Harold T. (1948). "An Added Factor in the Depth of Field Formula." Journal of the Society of Motion Picture Engineers.

Calculation logic verified using publicly available standards.

View our Accuracy & Reliability Framework →