Depth of Field

Using a Depth of Field Calculator

A depth of field calculator turns focal length, aperture and distance into near and far limits. Learn the inputs, how to read the results, and their limits.

On this page
  1. What a depth-of-field calculator does
  2. The inputs
  3. Reading the results
  4. A worked example
  5. Using it on location
  6. The assumptions behind the numbers
  7. When to trust the calculator and when to check on screen

What a depth-of-field calculator does

A depth-of-field calculator estimates the range of distances that will look acceptably sharp in a photo. You give it your lens focal length, aperture, distance to the subject and sensor size. It returns the closest and farthest points in focus, the total depth, and often the hyperfocal distance.

It is a planning tool. It helps you choose a focus distance and an aperture before you shoot, so you are not guessing from the screen alone. It does not replace checking the image.

The inputs

Most calculators ask for these:

  • Focal length. The lens setting in millimeters. A zoom lens needs the value you are actually using.
  • Aperture. The f-number you have set, such as f/2.8 or f/8.
  • Subject distance. How far the camera is from the point you want to focus on. Measure it, or estimate it with a tape or by pacing and then checking your estimate.
  • Sensor or camera format. Full frame, APS-C or another size. Some calculators ask for the circle of confusion instead, which is a measure of acceptable blur that depends on the sensor.

Entering the wrong sensor is the most common mistake. The same lens and aperture give a different depth on a crop-sensor camera than on a full-frame body.

Reading the results

The main outputs are:

  • Near limit: the closest distance that looks acceptably sharp.
  • Far limit: the farthest distance that looks acceptably sharp. When the far limit runs beyond the range the calculation covers, some calculators show infinity instead.
  • Total depth: the distance from the near limit to the far limit.
  • Hyperfocal distance: the focus distance that gives the greatest depth at that setting.

If your nearest object is inside the near limit, it will be soft, even if the rest of the scene is sharp. If your most important subject is outside the zone, change the focus distance, the aperture or the focal length.

A worked example

Suppose you are shooting a 50mm lens at f/5.6 on a full-frame camera, with the subject 3 meters away.

With a typical full-frame circle of confusion of about 0.03mm, the calculation gives a hyperfocal distance of about 15 meters. The zone of sharpness then runs from about 2.5 meters to about 3.7 meters, a total depth of about 1.2 meters. If the subject spans 2.5 to 4 meters, the far end falls just short, so a narrower aperture would be needed.

These numbers are illustrative. Enter your own values, because the answer depends on each input.

Using it on location

Use the calculator before the shot, not as a final check. Three practical steps:

  1. Choose the lens and the aperture you plan to use.
  2. Estimate the distance to the nearest and farthest important points in the scene.
  3. Enter the distances and see whether the zone covers them. If not, adjust.

Many photographers keep a calculator on their phone. Some camera manufacturers also include depth-of-field previews or calculators in their apps. The results are only as good as the distance you enter, so measure carefully when the frame matters.

The assumptions behind the numbers

Depth-of-field calculators rely on a few assumptions that you should know about:

  • Circle of confusion. The calculator assumes a certain amount of blur is acceptable. A smaller value gives a narrower zone, and a larger value gives a wider one. The default is usually based on a print or screen of normal size.
  • Viewing distance and print size. A large print viewed closely shows softness that a small screen hides.
  • Lens sharpness. The calculator does not know how sharp your lens is at each aperture. Lenses are often softer at the widest and narrowest settings.
  • Diffraction. Very narrow apertures can soften the image, which the calculator may not account for.

These assumptions are reasonable for most uses, but they mean the answer is an estimate.

When to trust the calculator and when to check on screen

Trust the calculator for planning: choosing an aperture, deciding how far to stand from the subject, or checking whether a hyperfocal setting is realistic. Then check the result on screen at full size. Look at the nearest important object and the farthest important detail. If either is soft, adjust, even if the calculator said it should be sharp.

For a deeper look at the focus point for maximum depth, see the article on hyperfocal distance.

The complete guide to depth of field

Depth of Field Explained for Beginners
Read the guide

Keep exploring

Guides from other topics

All topics →

ISO Explained for Beginners

ISO controls how sensitive your camera is to light. Learn what the number means, how it works alongside aperture and shutter speed, and when to raise it.

ISO 3 min read