Depth of Field Calculator

Find the near and far focus limits and total depth of field.

Depth of field 0.5996
Near limit 2.73
Far limit 3.329

Formula: Near/far limits from the hyperfocal distance

Step-by-step with your numbers:
1. Values used:
2. Focal length = 50
3. Aperture (f-number) = 2.8
4. Focus distance = 3
5. Circle of confusion = 0.03
6.
7. Depth of field = 0.5996
8. Near limit = 2.73
9. Far limit = 3.329
Did we solve your problem today?

Depth of field is the range of distances that appear acceptably sharp.

How the Math Works

The Depth of Field Calculator uses the hyperfocal distance formula to determine your camera's optimal focus range. The hyperfocal distance (H) is calculated as H = (f²)/(N×C), where f is focal length, N is f-number, and C is circle of confusion. From this, the near focus limit is H×d/(H + d) and the far focus limit is H×d/(H - d), where d is your subject distance. The total depth of field is simply the difference between these two limits, giving you the exact range of distances that appear acceptably sharp in your photograph.

Practical Applications

To use this calculator effectively, first input your lens focal length, aperture setting, and sensor type to determine the circle of confusion value. Enter your subject distance and the calculator will instantly provide the near and far focus boundaries. This allows you to precisely control your depth of field - whether you need a razor-thin focus range for isolating subjects or an extensive depth of field for landscape photography where everything from foreground to infinity must be sharp.

Day-to-Day Use

Understanding depth of field empowers you to make intentional creative decisions behind the camera. Whether you're photographing portraits, food, or family events, you can now predict exactly how much of your scene will be in focus before taking the shot. This knowledge prevents costly reshoots, eliminates guesswork about aperture settings, and helps you achieve professional-quality results in any lighting condition or shooting scenario.

Worked example

50 mm at f/2.8 focused at 3 m gives roughly 0.3 m of depth of field.

FAQ

How do I get more depth of field?

Use a smaller aperture (higher f-number), shorter focal length, or focus farther away.