Depth of Field Calculator

Lucas Grant avatar

Created by: Lucas Grant

Last updated:

Calculate thin-lens near and far acceptable-sharpness limits from focal length, aperture, focus distance, and an explicit circle of confusion.

Depth of Field Calculator

Photography

Estimate near and far acceptable-blur limits with an explicit circle of confusion.

Depth-of-field limits are acceptable-blur conventions, not sharpness cliffs. Inspect the final crop and output size.
mm
f/
m
mm

What is a Depth of Field Calculator?

A Depth of Field Calculator estimates the nearest and farthest distances that meet one chosen acceptable-blur criterion for a focal length, aperture, and focus distance.

Photography settings describe several different physical and perceptual relationships. Exposure arithmetic controls recorded light under a stated model. Focus geometry describes acceptable blur for one chosen criterion. Motion estimates compare a projected displacement with an allowed sensor-plane blur. None of these calculations can see the actual scene, lens sample, camera processing, photographer technique, or final presentation.

Near and far limits are not cliffs where detail suddenly becomes sharp or unsharp. They are geometric thresholds tied to the entered circle of confusion, which itself depends on enlargement, viewing distance, acuity, and creative expectations. This tool therefore keeps every important assumption visible and provides scenarios rather than hiding uncertainty behind a single authoritative-looking number. Values such as circle of confusion, stabilization performance, filter density, and bellows factor should come from a current product source or a repeatable test whenever the result matters.

Use the result to prepare a first frame, compare alternatives, or understand which input dominates. Then verify with the camera histogram, magnified review, a calibrated meter where appropriate, and a test at the intended print or display size. Recording the successful real setting is more valuable than treating a general default as permanent truth.

How the Depth of Field Calculator Works

The calculator first computes hyperfocal distance from focal length squared divided by f-number and circle of confusion, plus focal length. It then applies the standard near and far thin-lens equations at the entered focus distance.

When the far denominator reaches zero or becomes negative, the modeled far limit is displayed as infinity. Total and rear depth are also infinite in that mathematical branch, while the near limit remains finite.

The formula uses nominal focal length and aperture and is least representative at macro distances, with internal-focus lenses, focus breathing, strong pupil magnification, tilt, or demanding pixel-level inspection.

Model and formulas

H = f² ÷ (N × c) + f

Dnear = H × s ÷ (H + s − f)

Dfar = H × s ÷ (H − s + f), when denominator > 0

Worked Examples

50 mm at f/8

With a 50 mm lens, f/8, a 5 m focus distance, and a 0.03 mm circle of confusion, the calculator returns a near limit below 5 m and a far limit beyond 5 m. The interval is continuous acceptable blur, not equal sharpness throughout.

Tighter output criterion

Reducing the circle of confusion for a larger or more closely viewed output moves the near limit farther away and the far limit nearer. The same capture therefore has less acceptable depth under the stricter presentation assumption.

Focus beyond hyperfocal

Once focus distance reaches the formula’s infinity branch, far depth is reported as infinity. Focusing farther does not make everything equally sharp and can move the near acceptable limit away from the camera.

Practical Applications

  • Planning landscape foreground and background relationships.
  • Comparing apertures while keeping focal length and focus distance fixed.
  • Teaching why circle of confusion changes reported depth of field.
  • Checking whether a group occupies the modeled acceptable range.
  • Comparing near and rear depth around a chosen focus plane.
  • Identifying when focus stacking or tilt may deserve separate evaluation.

The strongest workflow is comparative: change one input, observe the model response, make the frame, and log whether the assumption matched the intended result. That method turns a calculator into a repeatable testing aid instead of a substitute for field judgment.

Tips for Better Results

Measure focus distance from the camera’s sensor-plane mark when practical, and confirm whether a lens or camera display reports a rounded estimate.

Evaluate the image at its final crop, size, sharpening, and viewing distance. Stop down only after considering diffraction, shutter time, ISO, wind, subject movement, and the lens’s tested behavior.

Frequently Asked Questions

What does this depth of field calculator calculate?

It applies a documented photographic model to the settings you enter and exposes the assumptions behind the result. It uses thin-lens geometry and an entered circle of confusion to estimate near and far acceptable-blur limits. The arithmetic is useful for planning and comparison, but it cannot inspect lens transmission, camera processing, focus calibration, subject movement, support technique, or final viewing conditions.

Are the default values correct for my camera and lens?

Defaults are worked examples that make the form usable on first load. Replace sensor dimensions, circle of confusion, stabilization, filter strength, focal length, aperture, file specifications, and other product-dependent values with the exact manual, label, metadata, or test result for your equipment. Named format families can contain different dimensions.

Why can two mathematically equivalent settings look different?

Equal calculated exposure does not mean equal pictures. Aperture changes depth of field and diffraction; shutter time changes motion rendering; ISO can change noise, highlight headroom, and camera processing. Filters can introduce color shifts or reflections. Treat equivalence as one controlled relationship while reviewing every visual consequence separately.

Does the result guarantee a sharp photograph?

No. Sharpness depends on focus accuracy, subject and camera movement, stabilization behavior, lens performance, diffraction, atmospheric effects, sampling, processing, output size, viewing distance, and the viewer. Depth-of-field limits are acceptable-blur conventions rather than physical walls. Make test frames and inspect them at the intended output size.

How should I verify the calculated setting?

Use the camera histogram and highlight warnings for exposure, magnified playback or tethered review for focus and motion, and the exact filter or lens documentation for marked specifications. Bracket when the scene is not repeatable. Record actual results so later estimates use measurements from the same camera, lens, support, subject, and output workflow.

Why does the calculator ask for a circle of confusion or pixel pitch?

Those values make the acceptable-blur assumption visible. A traditional circle of confusion is tied to an assumed enlargement and viewing condition, while pixel pitch supports a sensor-plane blur comparison. Neither value independently defines perceived sharpness. A demanding large print or close crop may justify a tighter criterion than a small screen image.

Sources and References

  1. ISO 2720:1974, Photography — General purpose photographic exposure meters (light source and reflected light type), ISO catalogue: https://www.iso.org/standard/34821.html.
  2. ISO 12232:2019, Photography — Digital still cameras — Determination of exposure index, ISO speed ratings, standard output sensitivity, and recommended exposure index, ISO catalogue.
  3. CIPA, Standards and Guidelines for digital cameras and imaging products: https://www.cipa.jp/e/std/std-sec.html.
  4. NIST, SI Units — Length and Time: https://www.nist.gov/pml/owm/si-units-length and https://www.nist.gov/pml/owm/si-units-time.
  5. Kingslake, Rudolf, Optics in Photography, SPIE Press — thin-lens and photographic imaging relationships.

Important limitation

Depth-of-field output is an acceptable-blur approximation. It does not measure lens resolution, autofocus accuracy, diffraction, motion, field curvature, focus breathing, tilt, output sharpening, or the viewer.

Depth of Field Calculator - Near and Far Focus Limits | Complete Calculators | Complete Calculators