The comprehensive tech guide to pinhole photography

Dec 6, 2023

Matt Bechberger

Dunja Djudjic is a multi-talented artist based in Novi Sad, Serbia. With 15 years of experience as a photographer, she specializes in capturing the beauty of nature, travel, and fine art. In addition to her photography, Dunja also expresses her creativity through writing, embroidery, and jewelry making.

The comprehensive tech guide to pinhole photography

Dec 6, 2023

Matt Bechberger

Dunja Djudjic is a multi-talented artist based in Novi Sad, Serbia. With 15 years of experience as a photographer, she specializes in capturing the beauty of nature, travel, and fine art. In addition to her photography, Dunja also expresses her creativity through writing, embroidery, and jewelry making.

Join the Discussion

Share on:

pinhole photography cover image

If you enjoy taking film photos (and want to try pinhole photography), you know the satisfaction you get from a film photo that you just don’t feel when you use digital. Just imagine seeing the first photo you get out of a camera you designed and built yourself!

The process of designing and building a camera may seem daunting, but with a bit of patience, the help of this guide, and some further reading, you’ll be able to do it. You can use this information to figure out what you want to build, gather some simple materials and tools, and build it!

I want it to be clear that building a pinhole camera relies on your abilities, available materials, and your desired outcome. As a result, this guide is less of a step-by-step and more of a lesson on how pinhole cameras work, the physics and math involved, and some practical knowledge I gained while researching and building my own cameras for pinhole photography.

Pinhole Photography Basics

A pinhole camera is the simplest possible camera. Light rays reflect off objects in all directions, and the lens on a camera re-aligns them so that they meet at the same spot on the film when the lens is correctly focused. Instead of a complex arrangement of glass lenses, the pinhole camera uses the simplest optics: a tiny hole that blocks almost all of the light rays except for the ones already aligned correctly. A mechanically timed shutter is replaced with anything that can cover the pinhole when the camera is not taking a shot.

Pinhole camera sketch

Designing a pinhole camera is a relatively simple and straightforward process. The first thing that you need to do is to make or buy a pinhole. If you want to make your own pinhole at home, you need a thin piece of metal. A good material to use is the metal from the side of a pop can. Alternatively, you can use aluminum foil. The thinner, the better, as long as it is light-proof. Use scissors to cut out your tin and a pin and a hammer to gently poke a hole through it. Use an eraser or something soft to support the aluminum to stay flat when pressed on.

Then, use some 600-grit sandpaper to sand away the protruding metal on the opposite side. If you have a microscope or a flatbed scanner, you can inspect the pinhole roundness and quality. You can buy special carbide micro drills, but you need a high-speed drill press to use them.

If you don’t want to bother, you can buy pinholes from eBay or a few other specialty websites. Google will find an up-to-date list of locations.

Once you determine (or already know) the pinhole diameter, you can calculate the focal length of the camera. The formula is: focal length = (pinhole diameter / 0.03679)2. The focal length is the distance that the pinhole should be from the film.

Example using 0.3mm pinhole:

  • focal length = (0.3mm / 0.03679)2
  • focal length = (8.17438)2
  • focal length = 66.49mm

The next value you need to calculate is the view angle of the pinhole. This angle is the maximum angle that a ray of light can make through the pinhole. The controlling factors of this value are the hole’s diameter and the material’s thickness. I know, this all seems like a lot of math and extreme precision, but bear with me. All of this will help you get your pinhole photography to perfection.

The view angle is solved using right-angle trigonometry. The simplified formula is:

view angle = tan-1( (d/2)/(t/2) ) x 2


  • view angle = tan-1 ( (0.3/2)/(0.0762/2)) x 2
  • = tan-1 (3.937) * 2
  • = 75.74 * 2
  • = 151.5o

This angle of view information is crucial to determining if the pinhole, at its focal distance, will cover the film appropriately. Too little coverage and the result will be a circular image with black corners and edges. The diagonal of the film frame needs to fit inside the diameter of the coverage. The formula to determine the image diameter is:

image diameter (mm) = 2 x focal length x tan ((View angle)/2)


  • image diameter (mm) = 2 x 66.49 x tan (151.5/2)
  • = 132.98 x tan (75.75)
  • = 132.98 x 3.937
  • = 523.61 mm

In this example for calculating image diameter, the diameter has come out very large, meaning that combined with a curved film plane, it will allow for a 6cm tall by 17cm wide image to be taken on 120 film. This will produce a very panoramic and extremely wide view.

Building the pinhole camera

(Click for bigger view)

Once the math of the camera design is complete, the physical design and building can begin. The film and pinhole are placed parallel to each other, and the distance between them should be equal to the focal length. Utilizing a curved film plane allows the entire length of the film to be exactly the correct and consistent distance from the pinhole to ensure an even exposure for the best pinhole photography results.

You can make the camera from a pre-existing box or build one from scratch. You can use any material, even something silly like oranges, a potato, or LEGO bricks – as long as it doesn’t allow light leaks. I’d start with a wooden box though. You can use a metal rod with one end filed flat and a guitar knob to create a film advance handle. You need two: one to loosen the supply spool and one to tighten the take-up spool.

A shutter mechanism can be as simple as a piece of tape stuck over the pinhole attached to a pivoting piece of wood. You can also build a more complex spring-actuated sliding shutter with a shutter release cable thread. I built one which could be actuated by shutter release cable, and a spring holds it shut.

There needs to be a hole in the back of the box to read the film frame numbers off of it. Keep in mind that you should paint the inside of your pinhole camera black to absorb any stray light.


The next value that can now be determined is the equivalent f-stop. The f-stop value is a relationship between the diameter of the pinhole and the distance to the film. This number is valuable for calculating the exposure time required for taking a photo in pinhole photography. The formula is:

f-stop = focal length / pinhole diameter


  • f-stop = focal length / pinhole diameter
  • f-stop = 66.49mm / 0.3mm
  • f-stop = 221

Obviously, no other camera or meter is going to allow f/221 as an option, so we need to make some calculations to find out how to do an equivalent exposure time from something that we can measure.

The f-stop values have certain cornerstone values, and the difference between these values is that the amount of light allowed through is halved each time. Essentially, the area of the circle formed by the aperture is halved each time, and thus the light. These values are as follows; 1.4, 2, 2.8, 4, 5.6, 8, 11, 16, 22, 32, 44, 64, 88, 128, 176, 256, 352. Anything past f22 is going to be unavailable on a light meter, so here’s how we are going to determine a multiplication factor for the pinhole.

Pinhole exposure is not an exact science, so you don’t need precise math. This is the kind of thing you’ll have to calculate out in the field, so doing it in your head semi-accurately is acceptable. No need to bring a calculator. So, if the pinhole is f221, lets round to f256 to make life easier. If we count backward to f16, there is a difference of 8 values. This means the amount of light through an f16 aperture is 28 times more than f256. This just so happens to be 256. This means that when we take a digital camera or light meter, set the ASA/ISO to the speed of the film in the camera, set the aperture to f16, and get a shutter speed; we multiply it by 256. For example, if we measure a value of 1 second, we will need to expose for 256 seconds to get enough light.

Reciprocity Failure

If all that calculating seemed straightforward, unfortunately, it’s more complex than that. When exposed for a short period of time, the film’s response to light is linear. Expose the film for twice as long, and the film will react twice as much to the light. However, if you begin exposing for more than a few seconds, the film stops responding linearly. It actually takes a lot more light than you would expect. This is called reciprocity failure, and it happens with all films.

Thankfully, there’s a solution. use a chart to estimate the extra time needed. There is one attached above and you can print it out and bring with you when shooting until you have enough experience to make estimates without its help. Your film’s datasheet will have a section on its reciprocity characteristics and can be found online.

Using the example of a 256-second exposure, the reciprocity factor is approximately 4x for that length of exposure, so 256 seconds turns into 1024 seconds. Four minutes to 17 minutes, what a huge difference! Of course, this is all just for “ideal” exposure. A few minutes less or more won’t hurt anything. In fact, I exposed my first test roll only 1/8th as long as I was supposed to, and it came out looking pretty good.

Obviously, with shutter speeds this long, you’ll always need to use a tripod and not touch the camera over the duration of the exposure. Keep this in mind if you’re building your own pinhole camera, so you can add tripod mounts.

exposure chart cheat sheet

The finished camera:

finished diy pinhole camera

After developing, here are the results:

Further Reading

We got your attention, didn’t we? There is a great Instructable going into depth (yes, even more than here) on some of the aspects. Matt also wrote it, so expect great explanations, high-end math, and laser cutting.

If you are seeking to build a camera without all the math behind it, check out our Pinhole photography section, there are lots of goodies there, like 23 pinhole cameras you can build at home. If it is a challenge that you are seeking, go after The Battlefield or the La Guillotine – very complex but also very rewarding.

Filed Under:

Tagged With:

Find this interesting? Share it with your friends!


About Matt Bechberger

Matt Bechberger is a photographer and a maker from Canada. You can follow his Flickr stream here and his awesome Instructables here.

We love it when our readers get in touch with us to share their stories. This article was contributed to DIYP by a member of our community. If you would like to contribute an article, please contact us here.

Join the Discussion

DIYP Comment Policy
Be nice, be on-topic, no personal information or flames.

Leave a Reply

Your email address will not be published. Required fields are marked *

8 responses to “The comprehensive tech guide to pinhole photography”

  1. Johan Lindgren Avatar
    Johan Lindgren

    Wow! You really inspired me to build one myself now – Sad enough only that pinhole-day is this sunday and not the next ;)

  2. unchalarahulchandra Avatar

    nothing explains like you

    1. TIN CAN Avatar
      TIN CAN

      Good advice, I am plotting a scale up to 14X36″ X-Ray film

      I have the film and often cut it down for tiny 11X14

      Winter work!

  3. Matthew Wagg Avatar
    Matthew Wagg

    There are loads of apps on both android and apple that cover reciprocity failure. Most have detailed charts for most film stocks too. Dunno about windows phone as I’ve only ever used android and apple.

    Thank you for the awesome guide for the rest of it though. I am gonna embark on making me a pinhole camera now.

  4. henricus Avatar

    Your first example uses 0.03679 in your calculation to obtain focal length. What does this number represent? Is it the film diagonal?

  5. Subbie Mwaisela Avatar
    Subbie Mwaisela

    What does the number 0.03679 represent?

    1. Nick Hood Avatar
      Nick Hood

      It comes from Petzeval’s formula which relates the focal length to the diameter of the hole and the wavelength of the light. This old article is incorrectly tagged as “comprehensive” but it’s clearly not that. There is more detail on the calculations involved over at Wikipedia.

  6. George McGnarly Avatar
    George McGnarly

    I remember me teacher making me make a pinhole camera before I could use my brownie. When I graduated I had two Sinars and an old deardorf. I ended up working in a commercial lab as a mural printer. My DeVere was on a train track