Macro Diffraction Calculator
Computes effective aperture as f × (1 + M/P), where M is magnification and P is pupil ratio, plus Airy disk diameter at the chosen wavelength (default 550 nm). The diffraction criterion selects Strict (Airy = pixel pitch), Moderate (1.5×), or Nyquist (2×); outputs include diffraction status, diffraction-limited f-number, and light loss from magnification in stops. Tables sweep diffraction across magnification levels and across lens apertures at the current magnification.
This tool sends nothing over the network. Everything you enter is processed on your device and never reaches our servers.
Documentation
Effective aperture in macro photography increases when focusing closer and magnifying the subject, because the lens-to-sensor distance grows and spreads the same cone of light over a larger area. A lens set to f/8 at 1:1 magnification behaves like f/16 in terms of diffraction and light transmission. The effective aperture, the resulting Airy disk size, and whether diffraction is limiting sharpness at a specific magnification ratio follow from that relationship. Knowing it helps in choosing the sharpest possible aperture for macro and close-up work, where every fraction of a stop matters between visible detail and a softened image.
- Camera presets or custom sensor width, height, and megapixel values set the pixel geometry the calculation depends on; fractions (3/4), mixed numbers (5 1/16), and decimals are all accepted.
- Lens aperture is entered as marked on the lens barrel, such as 5.6 for f/5.6.
- Magnification ratio is entered as a decimal: 1 for 1:1 life-size, 0.5 for half life-size, 2 for twice life-size, and 5 for 5x magnification with a microscope objective.
- Pupil magnification ratio corrects for an asymmetric lens design. Most standard macro lenses sit close to 1; retrofocus wide-angle designs fall below 1, and telephoto designs sit above 1. Leaving it at 1 is the safe default when the value is unknown.
- Results report the effective aperture, the true f-stop the sensor experiences; diffraction status, whether the Airy disk exceeds the pixel pitch; and light loss, how many stops of exposure compensation the magnification costs.
- Light wavelength and diffraction criterion are both adjustable, along with a step-by-step formula display showing each calculation in detail.
- A Diffraction by Magnification table compares effective aperture across a range of magnifications at a chosen f-stop, and a Diffraction by Aperture table compares f-stops at a chosen magnification.
Macro photographers working at high magnifications face a constant trade-off between depth of field and diffraction-limited resolution. Quantifying that trade-off for any camera and lens combination enables informed decisions about aperture selection in the field and in the studio.
- Macro Photography: Determine the sharpest aperture for 1:1 flower or insect photography. At 1:1 on a 24 MP full frame sensor, f/8 becomes an effective f/16 and may already be diffraction-limited, guiding a choice toward f/5.6 or wider for optimal detail.
- Extreme Macro: Photographers using reversed lenses, extension tubes, or microscope objectives at 3x to 10x magnification can check whether their chosen aperture produces usable resolution or whether focus stacking at a wider aperture would yield sharper results.
- Focus Stacking Planning: The effective aperture informs how many frames to stack. A wider aperture reduces diffraction but narrows depth of field, requiring more stacked frames, so comparing the trade-offs finds the sweet spot for a given subject.
- Product Photography: E-commerce photographers shooting small items like jewelry, watch mechanisms, or electronics components at close range can confirm they are not losing detail to diffraction at their working magnification.
- Scientific Imaging: Researchers using photomicroscopy or technical documentation can verify that their optical setup resolves the detail required by their imaging standards or publication requirements.
- Equipment Selection: Compare how different camera bodies perform at macro distances. A high-resolution 61 MP sensor becomes diffraction-limited at a wider aperture than a 12 MP sensor, an important factor when choosing gear for macro work.
- Bellows and Extension Tube Users: Calculate the effective aperture and light loss when using manual extension to achieve magnification, where the camera meter may not compensate automatically for the increased lens-to-sensor distance.
Inputs, outputs, and what the Macro Diffraction Calculator computes
What the Macro Diffraction Calculator asks for and what it returns, as a plain list. Defaults, units, and ranges are the ones the form loads with.
Inputs
- Camera Preset · default: Full Frame 24 MP (e.g. Sony A7 III)
- Sensor Width (mm) (text input) · default: 36
- Sensor Height (mm) (text input) · default: 24
- Megapixels (MP) (text input) · default: 24.5
- Lens Aperture (f-number) (text input) · default: 8
- Magnification Ratio (text input) · default: 1
- Pupil Magnification Ratio (P) (text input) · default: 1
- Show step-by-step formulas · default: off
- Light Wavelength (nm) (text input) · default: 550
- Diffraction Criterion · default: Strict (Airy disk = pixel pitch)
Controls
Calculate · Reset