Photography & Imaging
Advanced

Depth of Field (approx.)

Range of distances that appear acceptably sharp.

Formula

DoF≈2Nc s2f2DoF \approx \frac{2 N c\, s^2}{f^2}

Variables

DoFDepth of field (m)
NF-number
cCircle of confusion (mm)
sSubject distance (m)
fFocal length (mm)

Example

N=8, c=0.03, s=3 m, f=50 mm: DoF ≈ 1.7 m

How it works

This approximation estimates the total depth of field, meaning the near-to-far span that looks sharp enough in a photo. It comes from the geometry of how a lens focuses light: larger apertures (smaller N) and longer focal lengths spread blur more quickly, while stopping down or focusing farther away increases the tolerated range. The circle of confusion c is the maximum blur diameter your eye/viewing conditions will still accept as "sharp," so it sets the sharpness criterion.

When to use it

Use this when you need a quick estimate of how much of a scene will look acceptably sharp for a given lens, aperture, and focus distance. It is especially useful in portrait, macro, landscape, and product photography when planning whether you need to stop down or focus stack.

Worked example, step by step

Given: N = 11, c = 0.02 mm, s = 5 m, f = 85 mm Step 1: Square the subject distance: s^2 = 5^2 = 25 m^2 Step 2: Compute the numerator: 2Nc s^2 = 2 × 11 × 0.02 × 25 = 11 Step 3: Compute the denominator: f^2 = 85^2 = 7225 Step 4: Divide: DoF ≈ 11 / 7225 = 0.00152 m Step 5: Convert to a more practical unit: 0.00152 m × 1000 = 1.52 mm Final answer: DoF ≈ 0.0015 m, or about 1.5 mm

Common mistakes to avoid

  • Mixing units without converting consistently, especially using mm for f and c but forgetting that s is in metres
  • Treating the result as exact instead of an approximation that depends on the chosen circle of confusion
  • Using this formula for very close-focus or extreme wide-angle cases where the approximation can become less reliable

Did You Know?

Wide apertures blur the background (shallow DoF) — the look portrait photographers chase.

Share this formula

Reviewed & maintained by the FormulaWon editorial teamLast reviewed September 2026