This single-file solution provides a high-performance, responsive, and aesthetically premium Pinhole Camera Aperture and Diameter Calculator. It uses standard physical formulas (Rayleigh's criterion) to calculate optimal pinhole sizes based on focal length. ```html Free Pinhole Camera Aperture and Diameter Calculator

Free Pinhole Camera Aperture and Diameter Calculator

Precision optical calculations for DIY film photography. Calculate the optimal pinhole size for your next experimental camera build.

Optimal Diameter 0.31 mm
Aperture (f-stop) f/159

Why this diameter?

We use Rayleigh's criterion to find the point where diffraction (blurring from the hole being too small) and blur (from the hole being too large) are balanced. This provides the sharpest theoretical image.

Standard Focal Length Reference

Focal Length (mm) Ideal Pinhole (mm) Aperture (f-stop)