Photography & video

Depth of Field Calculator

Estimate near and far focus limits from focal length, aperture, subject distance and circle of confusion.

Units clearly labeledCheck practical equipment limits
Focus planning desk
Focus planning desk

Use a circle of confusion appropriate for your sensor and viewing conditions.

See the method

Set lens and focus distance

Runs on your device

Near and far focus limits

Your result

Let’s calculate.

Use the Calculate button to see your result.

Review the method below for assumptions and conventions.

How to use this tool

  1. Enter focal length, f-number, focus distance, circle of confusion.
  2. Select Calculate to view the result.
  3. Check the method and assumptions below before using the result.

Input reference and sample values

Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.

InputFormat and unitsSample
Focal lengthNumeric value. Unit: mm. Must be greater than zero.50
F-numberNumeric value. Must be greater than zero.8
Focus distanceNumeric value. Unit: m. Must be greater than zero.3
Circle of confusionNumeric value. Unit: mm. Must be greater than zero.0.03

Result for these sample inputs

2.34037267 m
Far limit (m)
4.17738359
Total depth (m)
1.83701092
Hyperfocal distance (m)
10.4666667

Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.

The method, explained

H=f²/(Nc)+f. With s in mm, near=Hs/[H+(s−f)], far=Hs/[H−(s−f)] when the far denominator is positive.

A WORKED EXAMPLE

Using focal length = 50 mm, f-number = 8, focus distance = 3 m, circle of confusion = 0.03 mm, the result is 2.34037267 m. Change these example inputs to match your task; use the method above to check each step.

Understanding your result

Main result is near limit. Thin-lens approximation with a chosen acceptable blur circle; perceived sharpness depends on viewing conditions and output size.

What to keep in mind

Main result is near limit. Thin-lens approximation with a chosen acceptable blur circle; perceived sharpness depends on viewing conditions and output size. An ideal geometric or exposure estimate. Lens behavior, stabilization, sensor crop and scene conditions may change practical results.

Methodology maintained by ClarityKit. How these tools are built and checked.