The Lens Diffraction Calculator determines the aperture at which diffraction begins to visibly soften an image, based on the camera sensor's pixel pitch and the wavelength of light. Diffraction is a wave optical phenomenon that occurs when light passes through a small aperture — the edges of the aperture cause light waves to bend and interfere, creating a spreading pattern called the Airy disk. As the aperture is stopped down (higher f-number), the Airy disk grows larger relative to the sensor's pixels. When the Airy disk diameter exceeds the size of a single pixel (or more precisely, the Rayleigh criterion), diffraction limits image resolution below the sensor's theoretical maximum. This is why simply stopping down to f/22 or f/32 for maximum depth of field actually degrades sharpness for high-resolution sensors — the resolution gain from increased DOF is offset by diffraction softness. The diffraction-limited aperture depends critically on pixel pitch: smaller pixels (high-megapixel sensors) hit the diffraction limit at wider apertures than larger pixels (lower-megapixel sensors). A 45 MP full-frame sensor with ~4.4μm pixels starts losing resolution to diffraction at approximately f/7.1, while a 12 MP sensor with ~8.5μm pixels remains diffraction-sharp until f/14 or beyond. Professional photographers must balance depth of field needs against diffraction limits when selecting aperture, often using focus stacking at the optimal aperture to achieve deep DOF without diffraction penalties.
Airy Disk Diameter (μm) = 2.44 × λ × f-number Diffraction-Limited Aperture ≈ pixel_pitch (μm) / (2.44 × λ) Where λ = wavelength of light ≈ 0.00055 mm (550nm, green light) Simplified: f_diffraction ≈ pixel_pitch (μm) × 1.22 / 0.00055mm × 0.001 Or: f_diffraction ≈ pixel_pitch (μm) / 0.00134 Airy Disk = 1.35 × f-number (in μm, at 550nm)
- 1Step 1: Find your sensor's pixel pitch. Pixel Pitch (μm) = Sensor Width (mm) / Horizontal Pixel Count × 1000. For a 36mm wide sensor with 6000 pixels: 36/6000 × 1000 = 6.0 μm.
- 2Step 2: Calculate the diffraction-limited aperture: f_diff = pixel_pitch / (2.44 × 0.00055mm) × 0.001 ≈ pixel_pitch / 1.343.
- 3Step 3: At any given f-number, calculate Airy disk size: d_airy (μm) = 2.44 × 0.00055 × f-number × 1000 = 1.342 × f-number.
- 4Step 4: Compare Airy disk to pixel pitch. When d_airy ≥ pixel_pitch, diffraction is limiting resolution.
- 5Step 5: Choose an aperture 1–2 stops wider than the diffraction limit for optimal sharpness with acceptable DOF.
- 6Step 6: For critical sharpness at small apertures needed for DOF, use focus stacking at the optimal aperture.
Pixel pitch = 35.7/9504 × 1000 = 3.76 μm. f_diff = 3.76/1.342 = f/2.8. Above f/2.8, diffraction begins reducing effective resolution. This ultra-high-res sensor shows diffraction effects very early.
35.9/6048 × 1000 = 5.94 μm. f_diff = 5.94/1.342 = f/4.4. The 24 MP sensor tolerates stopped-down apertures better than the 61 MP Sony — f/8 is still quite usable.
22.3/6960 × 1000 = 3.2 μm. f_diff = 3.2/1.342 = f/2.4. APS-C cameras with high pixel densities are particularly susceptible to diffraction — avoid f/8+ for maximum resolution.
Despite its enormous sensor, the high pixel density of this 150 MP back means it hits diffraction at f/2.8 — similar to the Sony A7R V. The large sensor helps with DOF and perspective, but not diffraction tolerance.
Professionals in math and calculus use Lens Diffraction Calc as part of their standard analytical workflow to verify calculations, reduce arithmetic errors, and produce consistent results that can be documented, audited, and shared with colleagues, clients, or regulatory bodies for compliance purposes.
University professors and instructors incorporate Lens Diffraction Calc into course materials, homework assignments, and exam preparation resources, allowing students to check manual calculations, build intuition about input-output relationships, and focus on conceptual understanding rather than arithmetic.
Consultants and advisors use Lens Diffraction Calc to quickly model different scenarios during client meetings, enabling real-time exploration of what-if questions that would otherwise require returning to the office for detailed spreadsheet-based analysis and reporting.
Individual users rely on Lens Diffraction Calc for personal planning decisions — comparing options, verifying quotes received from service providers, checking third-party calculations, and building confidence that the numbers behind an important decision have been computed correctly and consistently.
Extreme input values
In practice, this edge case requires careful consideration because standard assumptions may not hold. When encountering this scenario in lens diffraction calculator calculations, practitioners should verify boundary conditions, check for division-by-zero risks, and consider whether the model's assumptions remain valid under these extreme conditions.
Assumption violations
In practice, this edge case requires careful consideration because standard assumptions may not hold. When encountering this scenario in lens diffraction calculator calculations, practitioners should verify boundary conditions, check for division-by-zero risks, and consider whether the model's assumptions remain valid under these extreme conditions.
Rounding and precision effects
In practice, this edge case requires careful consideration because standard assumptions may not hold. When encountering this scenario in lens diffraction calculator calculations, practitioners should verify boundary conditions, check for division-by-zero risks, and consider whether the model's assumptions remain valid under these extreme conditions.
| Camera | Megapixels | Pixel Pitch (μm) | Diffraction Limit (f-stop) |
|---|---|---|---|
| Full-frame 12 MP (e.g., Nikon D700) | 12 | 8.45 | f/6.3 |
| Full-frame 24 MP (e.g., Sony A7 III) | 24 | 5.94 | f/4.4 |
| Full-frame 36 MP (e.g., Nikon D800) | 36 | 4.87 | f/3.6 |
| Full-frame 45 MP (e.g., Canon R5) | 45 | 4.39 | f/3.3 |
| Full-frame 61 MP (e.g., Sony A7R V) | 61 | 3.76 | f/2.8 |
| APS-C 26 MP (e.g., Sony A6700) | 26 | 3.93 | f/2.9 |
| MFT 20 MP (e.g., Olympus OM-1) | 20 | 3.33 | f/2.5 |
| Medium Format 150 MP (Phase One IQ4) | 150 | 3.78 | f/2.8 |
Does diffraction make images unacceptably blurry, or is it subtle?
Diffraction is typically subtle — noticeable in pixel-level examination of prints or crops but often invisible at normal viewing distances. At 1–2 stops past the diffraction limit, most viewers won't notice softness in a 20×30 inch print at normal viewing distance. However, for critical technical applications (architectural photography, product photography for advertising, large format printing), staying within the diffraction limit is important for maximum sharpness.
What aperture gives the sharpest image overall?
The sharpest aperture (called the 'sweet spot') is typically 2–3 stops below maximum aperture (wide open), where aberrations (coma, spherical, chromatic) are well-controlled, but before diffraction becomes significant. For most modern lenses, this is f/5.6–f/8 on full-frame cameras. Specifically, the sharpest aperture is approximately the geometric mean between wide-open and the diffraction limit.
Why do older cameras seem to tolerate smaller apertures without diffraction problems?
Older, lower-resolution cameras have larger pixels — a 12 MP full-frame camera has ~8.5μm pixels vs. ~4.4μm for a 61 MP sensor. The diffraction-limited aperture is proportional to pixel pitch, so the 12 MP camera doesn't show diffraction softness until f/11 or beyond, while the 61 MP camera shows it from f/4 onward. This is a fundamental tradeoff between resolution and diffraction tolerance.
How does diffraction affect video vs. stills?
Video typically downsamples from the full sensor resolution to the output resolution (4K = 8.3 MP). This effective downsampling means the output pixel pitch is equivalent to a much lower resolution, shifting the diffraction limit to smaller apertures. A 4K video downsampled from a 24 MP sensor behaves like a ~3 MP sensor for diffraction purposes, tolerating much smaller apertures before visible softening.
Is focus stacking a good solution for diffraction avoidance?
Yes — focus stacking (capturing multiple frames at different focus distances and blending them in software) allows shooting at the optimal aperture (f/5.6–f/8) for every frame, then combining them for deep depth of field without diffraction. Software like Helicon Focus, Zerene Stacker, and Photoshop's Auto-Blend Layers mode automate this process. It requires a static subject and tripod but yields superior results to simply stopping down to f/16 or f/22.
Does sensor anti-aliasing filter affect diffraction calculations?
Many cameras include an optical low-pass (anti-aliasing) filter in front of the sensor to prevent moiré patterns. This filter slightly softens the image — and in effect, makes the camera behave as if it has slightly larger pixels for resolution purposes. Cameras without AA filters (Nikon D800E, Sony A7R, many mirrorless cameras) achieve slightly higher resolution but are more susceptible to moiré, and the diffraction limit as calculated is more immediately noticeable.
At what f-number does diffraction become obvious in typical photo printing?
For a standard 30×20 cm (12×8 inch) print viewed at 30 cm, diffraction becomes noticeable when the Airy disk exceeds approximately 0.1mm at the print scale. Working backwards from print magnification, for a 24 MP full-frame camera (2:1 print enlargement at most for this size), diffraction becomes print-visible around f/11–f/16. For pixel-peeping on screen at 100%, diffraction is visible 2–4 stops earlier.
Pro Tip
Test your specific camera and lens combination by shooting a resolution chart or brick wall at every full-stop aperture from wide open to minimum. Examine images at 100% magnification on screen. The aperture with the highest apparent sharpness and contrast is your lens's sweet spot — make note of it for reference in future shoots.
Did you know?
The Hubble Space Telescope's primary mirror was ground to within 10 nanometers of its target curvature — but was ground to the wrong prescription due to a calibration error. Even with this defect, the telescope could still detect stars smaller than its theoretical diffraction limit because diffraction spread the starlight in a mathematically predictable pattern that image processing algorithms could partially deconvolve.