Calculators·Optics & depth of field

Depth of field aperture calculator.

Calculate the optimal aperture for your desired depth of field – with scientifically grounded formulas that work for every sensor format.

Ideal for portrait, landscape and product photography when you want to control depth in a deliberate way.

  • Free
  • All sensors
  • Scientific formula
  • Diffraction notes

Aperture Calculator for Depth of Field

Calculate the optimal aperture for a desired depth of field

Input Parameters

Minimum distance: 0.20m at 50mm

Calculation Results

Important Notes:

  • Smaller f-numbers = larger aperture opening = shallower depth of field
  • Larger f-numbers = smaller aperture opening = greater depth of field
  • At very small apertures (f/16+), diffraction blur can occur
  • The circle of confusion depends on sensor size
  • Practical results may differ from calculated values
Fundamentals

Aperture and its effect on depth of field.

Two things at once: aperture controls the amount of light reaching the sensor while simultaneously deciding how deep your zone of sharpness extends. Understand that, and you can plan images much more deliberately.

Fundamentals

What aperture does.

Aperture controls how much light passes through the lens onto the sensor. At the same time, it has a major influence on the depth of field in your shots.

The f-number expresses the ratio of focal length to aperture diameter – and depending on the aperture you choose, the look of the image changes noticeably:

  • f/1.4 – wide opening, very shallow depth of field
  • f/2.8 – medium opening, moderate depth of field
  • f/5.6 – small opening, deep depth of field
  • f/11 – very small opening, maximum depth of field
In practice

What this calculator is built for.

The calculator helps you in particular with these genres:

  • Portrait photography with controlled background blur
  • Landscape photography – sharp from foreground to background
  • Product photography – entire product sharp end to end
  • Group photography – everyone within the sharp zone
  • Architecture photography – the entire building sharp

f/5.6 – f/8: sweet spot of most lenses. Maximum sharpness with moderate depth of field.
f/11 – f/16: maximum depth of field, but watch out for diffraction blur.

The science behind it

The formula the calculator uses.

No rule of thumb, but a clean optical derivation. Here you can see exactly which variables go into the equation and under what conditions it holds.

Aperture = f² × (√(s² + DoF²) − s) ÷ (DoF × CoC × (s − f))
Variables
  • f = focal length in mm
  • s = subject distance in mm
  • DoF = desired depth of field in mm
  • CoC = circle of confusion in mm
Conditions
  • Distance ≥ 4 × focal length
  • Subject distance > focal length
  • All values > 0
Pro tips

Four pointers for optimal aperture use.

These points come up in my coaching sessions again and again – they prevent image-quality losses that pure maths can't surface.

Mind the diffraction limit
Every lens has a diffraction limit. On full frame it's typically f/8–f/11, on APS-C f/5.6–f/8. Smaller apertures can soften the image despite the greater depth of field.
Depth of field is relative
Perceived depth of field depends on viewing size. Images for the web tolerate less depth of field than large prints.
Focus on the subject
In portraits you focus on the eyes. In landscapes you use the hyperfocal distance for maximum depth.
Adjust shutter speed
Smaller apertures call for longer shutter speeds. Use a tripod or raise the ISO – otherwise you trade sharpness for camera shake.
FAQ

Answers to common questions.

From tool to skill

Solid photography knowledge.

Calculators give you the number. On the blog and in 1:1 coaching I turn theory into results you can see in your images.

Fotograf, Martin Fernando Mera Kleinheinz · Franz-Bork-Straße 21, 30163 Hannover · 0179 4085397