Macro Effective Aperture & Diffraction Calculator

Enter your magnification, lens aperture, and sensor details to compare macro exposure loss with diffraction at the pixel level. The result also reverse-solves the marked f-number that reaches your selected Airy-disk threshold.

Your numbers
Enter the aperture shown on the lens or camera, then identify below whether it is marked or already effective.
Some cameras display an effective aperture that already increases as the lens focuses closer.
Use 1 for 1:1, 0.5 for 1:2, or 2 for 2:1 reproduction.
Enter exit-pupil diameter divided by entrance-pupil diameter; use 1 when it is unknown.
Enter the active imaging width of the sensor.
Enter the active imaging height of the sensor.
Use the number of effective captured megapixels, not an interpolated output size.
Two to three pixels is a practical comparison range for diffraction and sensor sampling.

What this calculator leaves out

  • This estimate assumes 0.55-micrometer light and an ideal circular aperture; real scenes contain a range of wavelengths and real lenses have aberrations.
  • Pixel pitch is estimated from active sensor dimensions and megapixels and does not model Bayer interpolation, anti-aliasing filters, pixel gaps, or unused sensor borders.
  • Pupil magnification and internal-focus behavior can vary with focus, and TTL metering may already compensate for macro light loss; verify exposure with your camera and a test image.

By using this calculator you agree to the Terms of Use. Results are estimates, not professional advice.

Effective aperture (f-number)16

Exposure loss (stops)
2
Exposure-time multiplier
4
Estimated pixel pitch (µm)
6
Airy-disk diameter (µm)
21.47
Airy disk in pixels
3.58
Marked aperture at selected threshold
5.59
Diffraction comparison
Above the selected pixel threshold

The comparison uses a 0.55-µm wavelength and treats “near” as within 10% of the 2.5-pixel threshold.

The threshold aperture is a calculated marked f-number; compare it with the aperture range your lens actually provides.

How to use this calculator

  1. Enter the aperture shown by the lens or camera and say whether it is marked or already effective.
  2. Enter reproduction magnification, using 1 for 1:1 and 2 for 2:1.
  3. Use a pupil magnification of 1 unless you have a lens-specific value.
  4. Enter the active sensor dimensions, effective megapixels, and the pixel threshold you want to compare.

How macro effective aperture is calculated

At close range, a lens generally needs more extension to form the image. The aperture opening has not physically become smaller, but it subtends a smaller angle at the sensor, so the effective f-number rises. This calculator uses the pupil-aware form of the macro relation:

k = 1 + m / P and Ne = N × k

Here, m is reproduction magnification, P is pupil magnification, N is the marked f-number, and Ne is the effective f-number. If the camera already reports an effective aperture, the calculator keeps that value as Ne instead of applying the factor twice. The exposure factor is k², and the exposure loss is 2 × log2(k) stops.

At 1:1 with a pupil magnification of 1, k = 2. A marked f/8 therefore acts as f/16 for exposure and diffraction, needs four times the exposure, and loses two stops. Metering through the lens may already account for that loss, so this is not an instruction to add exposure compensation automatically.

How the diffraction comparison works

The tool estimates square pixel pitch from sensor area and total pixels: p = 1000 × sqrt((W × H) / (M × 1,000,000)) micrometers. It then uses a 0.55-micrometer green wavelength and the diameter of the first dark Airy ring:

d = 2.44 × 0.55 × Ne

Dividing d by p gives the Airy-disk diameter in pixels. The reverse result solves the same relation for the marked f-number: Nlimit = (q × p) / (2.44 × 0.55 × k), where q is the selected pixel threshold. “Near” means within 10% of that threshold; diffraction does not switch on at a single f-number.

What moves the result most

Magnification and pupil magnification set the macro factor. A low pupil magnification can make the effective f-number rise much faster than the familiar 1 + m rule. Smaller pixels make a fixed Airy disk cover more pixels, while stopping down or increasing magnification enlarges that disk through the effective aperture.

What this calculator leaves out

This is an optical comparison, not a sharpness score. It assumes monochromatic light, an ideal circular aperture, square pixels inferred from sensor dimensions, and a simple extension model. It does not model Bayer reconstruction, lens aberrations, focus error, motion, stacking, pixel gaps, anti-aliasing filters, internal-focus behavior, or the extra depth of field that may make a smaller aperture worthwhile.

Worked example

For a 36 × 24 mm, 24 MP sensor, the estimated pixel pitch is 6 µm. At 1:1 with pupil magnification 1, a marked f/8 has a macro factor of 2, so its effective aperture is f/16. The exposure loss is 2 stops, the exposure-time multiplier is 4, and the Airy-disk diameter is 2.44 × 0.55 × 16 = 21.47 µm, or 3.58 pixels.

With a 2.5-pixel threshold, the reverse calculation gives a marked limit of f/5.59. That is a comparison point, not a command to avoid f/8: a smaller aperture may still produce a more useful macro image when its extra depth of field outweighs the diffraction cost.

Common questions

Why does effective aperture change in macro photography?

As magnification rises, the image distance and effective focal length relationship changes, reducing the light reaching the sensor for a given marked aperture. The effective f-number describes that exposure and diffraction behavior. At 1:1, a typical lens with pupil magnification near 1 has roughly twice the marked f-number.

What do 1:1 and 2:1 magnification mean?

At 1:1, a subject detail is recorded at life size on the sensor: 1 mm on the subject spans 1 mm on the sensor. At 2:1, that detail is recorded twice life size. These are reproduction ratios at the sensor, not the size of the image on a screen or print.

How do I find a lens’s pupil magnification?

It is the exit-pupil diameter divided by the entrance-pupil diameter, and manufacturers rarely publish it across the focus range. A lens diagram, optical data, or a careful measurement can provide it. Using 1 is a reasonable first estimate, but it can be noticeably wrong for some macro lenses.

Does my camera already display effective aperture?

Some cameras and electronically coupled macro lenses change the displayed f-number as focus moves closer, while others continue to show the marked value. Check the lens manual or observe whether the displayed aperture changes at a fixed aperture setting while you focus closer. Select “Already effective” only when the displayed number already includes that change.

When does diffraction become visible in a macro photo?

Diffraction becomes progressively more relevant as the Airy disk grows relative to a pixel, but it is not a sharp boundary. Lens aberrations, subject detail, focus precision, light wavelength, image processing, and output size all affect whether the difference is visible. At macro distances, the effective aperture can make the comparison relevant sooner than the marked f-number suggests.

Put this calculator on your site

Paste the snippet below where you want the calculator to appear. It stays up to date automatically and links back here.

<iframe src="https://countfolk.com/embed/macro-effective-aperture-diffraction-calculator/" title="Macro Effective Aperture & Diffraction Calculator" width="100%" height="640" style="border:0;max-width:44rem" loading="lazy"></iframe>