Macro Diffraction Calculatorv1.0.0
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.
Documentation
Effective aperture in macro photography increases as you focus closer and magnify the subject because the lens-to-sensor distance grows, spreading 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. Calculate the effective aperture, the resulting Airy disk size, and whether diffraction is limiting sharpness at your specific magnification ratio. Knowing these relationships helps you select the sharpest possible aperture for macro and close-up work, where every fraction of a stop matters between visible detail and a softened image.
- Select your camera from the Camera Preset dropdown, or enter custom Sensor Width, Sensor Height, and Megapixels values. The calculator supports fractions (3/4), mixed numbers (5 1/16), and decimals.
- Enter your Lens Aperture f-number as marked on the lens barrel. For example, enter 5.6 for f/5.6.
- Enter your Magnification Ratio as a decimal. Use 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.
- Adjust the Pupil Magnification Ratio if your lens is asymmetric. Most standard macro lenses are close to 1. Retrofocus wide-angle designs are below 1, and telephoto designs are above 1. When in doubt, leave it at 1.
- Review the Effective Aperture to see the true f-stop your sensor experiences. Check the Diffraction Status to see if the Airy disk exceeds your pixel pitch. The Light Loss tells you how many stops of exposure compensation the magnification costs.
- Open Settings to change the light wavelength, adjust the diffraction criterion, or enable the step-by-step formula display showing each calculation in detail.
- Scroll down to the Diffraction by Magnification table to compare effective aperture across a range of magnifications at your chosen f-stop, or the Diffraction by Aperture table to compare f-stops at your 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 you 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: Calculate the effective aperture to decide how many frames to stack. A wider aperture reduces diffraction but narrows depth of field, requiring more stacked frames. Compare the trade-offs to find the sweet spot for your subject.
- Product Photography: E-commerce photographers shooting small items like jewelry, watch mechanisms, or electronics components at close range can ensure 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, which is 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
The form above accepts the following inputs and produces the outputs listed below. This summary is rendered in the page so the parameters are visible to crawlers, assistive tech, and indexing agents that don't fetch the embedded tool frame.
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
- Light Wavelength (nm) (text input) · default: 550
- Diffraction Criterion · default: Strict (Airy disk = pixel pitch)
Controls
Calculate · Reset
Worked example
Effective aperture in macro photography increases as you focus closer and magnify the subject because the lens-to-sensor distance grows, spreading the same cone of light over a larger area .