calculator.onl
Categories50

Depth of field calculator

Keep the camera still and close the aperture. What comes into focus?

A worked example

Depth of field 0.6006 m · Near limit 2.7295 m
mm
Actual lens focal length in millimetres, not the 35 mm equivalent.

Enter the f-number: for f/2.8, enter 2.8.

m
Distance from the lens front principal plane in metres; it must exceed focal length / 1000.

mm
Maximum accepted blur diameter on the sensor in millimetres. Choose it for the intended print size and viewing distance.

Updates as you type

Use a dot or comma for decimals. No thousands separators.

YOUR RESULT

Depth of field

0.6006 m

Calculated from your inputs

Near limit2.7295 m
Far limit3.3301 m
Hyperfocal distance29.8119 m
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

The focus point stays put while the near and far limits move away from it. For a related calculation, try Lens field of view calculator.

What to enter

InputWhat it meansExample value
Focal lengthActual lens focal length in millimetres, not the 35 mm equivalent.50 mm
Aperture numberEnter the f-number: for f/2.8, enter 2.8.2.8
Focus distanceDistance from the lens front principal plane in metres; it must exceed focal length / 1000.3 m
Circle of confusionMaximum accepted blur diameter on the sensor in millimetres. Choose it for the intended print size and viewing distance.0.03 mm

How the calculation works

  1. Enter focal length and aperture.
  2. Set focus distance and acceptable blur.
  3. Compare focus limits and hyperfocal distance.
The formulah = f²/(N × c); H = h + f; near = h × s/(h + s − f); far = h × s/(h − s + f), if s < H; DOF = far − near

A worked example

Depth of field · ƒ/2.8 ≈ 0.6 m → ƒ/8 ≈ 1.85 m

Example you can load

What to enter
Result for this example · Depth of field0.6006 m

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

Ideal thin-lens geometry; no diffraction, aberrations or focus breathing. Acceptable sharpness depends on the chosen blur circle and viewing conditions.

Reference ·

Frequently asked questions

Where are distances measured?

Distance from the lens front principal plane in metres; it must exceed focal length / 1000.

Which blur circle should I choose?

Maximum accepted blur diameter on the sensor in millimetres. Choose it for the intended print size and viewing distance.

Is sharpness guaranteed?

Ideal thin-lens geometry; no diffraction, aberrations or focus breathing. Acceptable sharpness depends on the chosen blur circle and viewing conditions.