Pinhole calculator

This calculator gives the optimal hole diameter for a pinhole camera, its aperture and the exposure time, including reciprocity correction. Enter the distance between the hole and the paper, then the light at the time: the results appear as you type, with the detail of each calculation.

Pinhole diameter and aperture

In millimetres, from the pinhole to the surface of the paper.

In nanometres. 550 nm, yellow-green, is the usual value.

Diameter used for the aperture

Optional. Entering a value switches to “My pinhole”.

Optimal pinhole diameter

–

Aperture (f-number)

–

The Sténoflex, designed and made in France, takes its pictures on 9 × 9 cm sheets. Pinhole camera kit with mini-lab

Other diameter formulas

All take the form d = k × √(f × λ). Only the constant k changes.

Diameter and aperture for each constant, at the focal length entered
Constant and source Diameter Aperture
k = 1.41 (√2)Petzval, 1857 – –
k = 1.56Young, Applied Optics, 1971 – –
k = 1.9Rayleigh, Philosophical Magazine, 1891. Used here – –
k = 2Rayleigh, Nature, 1891 – –

Exposure time

Ilford gives an ISO equivalent of 3 to 6 for its Multigrade RC paper. Depending on the paper and the developer, published tests range from about ISO 3 to 12.

Light measurement

Values for ISO 100, from the ANSI PH2.7-1986 exposure guide.

Exponents published by Ilford for its films. For photographic paper, start from p = 1 and adjust after a test.

Metered time, before correction

–

Recommended exposure time

–

A starting point. Make a test exposure, develop it, then adjust the exposure time.

Sténoflex reference points

The “Recommended exposure times” card supplied with the Sténoflex gives three reference points.

  • 20 s Sun
  • 30 s Hazy sun
  • 40 s Clouds

These times apply to the Sténoflex and the paper in the kit. They are starting points, to be tested and then adjusted to the light.

How it is calculated

Each result is based on a published formula. Expand a section to see the calculation and its sources.

The optimal pinhole diameter

A pinhole that is too large gives a blurred image, because each point of the scene draws a spot the size of the hole on the paper. A pinhole that is too small blurs it too, because of diffraction. The optimal diameter balances these two kinds of blur.

The most widely cited formula is Lord Rayleigh's (1891): d = 1.9 × √(f × λ). The focal length f and the wavelength λ are expressed in millimetres, and 550 nm equals 0.00055 mm. The other formulas change only the constant, from 1.41 in Petzval (1857) to 2 in another paper by Rayleigh. Between 1.9 and 2, the difference in diameter is only 5%.

Optimal diameter by focal length (Rayleigh, 550 nm)
Focal lengthDiameterAperture
25 mm0.22 mmf/112
35 mm0.26 mmf/133
50 mm0.32 mmf/159
75 mm0.39 mmf/194
100 mm0.45 mmf/224
150 mm0.55 mmf/275
200 mm0.63 mmf/317

To make and measure the pinhole, see the guide to pinhole diameter.

The aperture

The f-number is the focal length divided by the pinhole diameter. With Rayleigh's formula, a focal length of 25 mm gives f/112 and a focal length of 150 mm gives f/275. At f/159, about 50 times less light comes in than at f/22, the smallest aperture on many lenses.

The exposure time

The calculation starts from an exposure value (EV), given for ISO 100. For a material with sensitivity S and an aperture N: t = N² ÷ (2EV × S ÷ 100).

A reading taken at another aperture or another ISO converts as follows: t = metered t × (N ÷ metered N)² × (metered ISO ÷ material ISO). The light presets follow the ANSI PH2.7-1986 exposure guide: EV 15 in full sun, 14 in hazy sun, 13 under bright cloud, 12 under heavy overcast or in the shade.

Example with a focal length of 50 mm and a 0.32 mm pinhole (f/159), paper at ISO 6 and full sun (EV 15): t = 159² ÷ (215 × 6 ÷ 100), or about 13 seconds before correction. The step-by-step method is explained in the article on pinhole camera exposure time.

Reciprocity correction

In low light, film or paper becomes less efficient: doubling the time no longer doubles the exposure received. This is reciprocity failure, or the Schwarzschild effect. Ilford corrects it with Tc = Tmp, where Tm is the metered time, Tc the corrected time and p an exponent specific to each film, from 1.25 to 1.43 across its range. With p = 1.31 (HP5 Plus), 10 metered seconds become 20 seconds. An exposure of one second or less needs no correction.

Ilford publishes these exponents for its films, not for photographic paper. With paper, start without correction and lengthen the exposure if your low-light tests come out underexposed.

Sources

  • Lord Rayleigh, “On pin-hole photography”, Philosophical Magazine, 5th series, vol. 31, 1891, pp. 87-99 (doi:10.1080/14786449108620080).
  • Lord Rayleigh, “Some applications of photography”, Nature, vol. 44, 1891, pp. 249-254 (doi:10.1038/044249e0).
  • Joseph Petzval, Bericht über dioptrische Untersuchungen, Imperial Academy of Sciences, Vienna, 1857.
  • Matt Young, “Pinhole optics”, Applied Optics, vol. 10, no. 12, 1971, pp. 2763-2767 (doi:10.1364/AO.10.002763).
  • HARMAN technology (Ilford), Film reciprocity failure compensation, technical data sheet, December 2023.
  • HARMAN technology (Ilford), Multigrade RC papers, technical data sheet.
  • ANSI PH2.7-1986 exposure guide, values reproduced in the Wikipedia article Exposure value.

Frequently asked questions

Which focal length should you choose for a pinhole camera?

Choose the focal length according to the field of view you want. It is the distance between the hole and the paper: the shorter it is relative to the paper size, the wider the field the image takes in. A longer focal length tightens the framing, needs a larger hole and closes down the aperture, which lengthens the exposure.

Can you work out the focal length from the hole diameter?

Yes, by reversing Rayleigh's formula: f = (d ÷ 1.9)² ÷ λ. With a 0.3 mm hole and a wavelength of 0.00055 mm, the ideal focal length is about 45 mm.

Does the calculated time apply to the whole image?

No, it applies to the centre. The edges of a pinhole image receive less light, all the more so when the angle of view is wide: a wide-angle pinhole camera gives darker corners, a vignetting typical of the process.

Does the calculator work for a homemade pinhole camera?

Yes. Measure the distance between the hole and the light-sensitive surface, then the diameter of the hole: the calculation is the same for a box, a can or a shop-bought camera.