A pinhole camera is the simplest device that can form a photographic image. It uses a tiny hole instead of a lens to project light onto a surface, producing an inverted picture of whatever is in front of it. The concept is so fundamental to optics that it has been studied for over 2,400 years, and you can build one from a shoebox in about ten minutes.
How a Pinhole Camera Works
Light travels in straight lines. That single fact explains everything a pinhole camera does. Every point on an object, whether it’s a tree, a face, or the sun, radiates light outward in all directions. When you place a barrier with a tiny hole between that object and a dark surface, only a narrow set of light rays from each point can pass through. Those rays continue in straight lines and land on the surface behind the hole, recreating the scene as a projected image.
Because the light rays cross as they pass through the opening, the image appears upside down and reversed left to right. This is not a flaw. It’s a direct consequence of light traveling in straight lines, a principle physicists call rectilinear propagation. A lens-based camera does the same thing internally; you just never notice because electronics or the viewfinder correct the orientation for you.
Why the Hole Size Matters
The size of the pinhole controls a tradeoff between sharpness and brightness. A smaller hole lets fewer light rays through from each point on the scene, which produces a sharper image but a dimmer one. A larger hole lets in more light, making the image brighter but blurrier, because rays from slightly different angles overlap on the surface.
There’s a physical limit to how small you can go. When the hole gets extremely tiny, light waves start bending around the edges of the opening, a phenomenon called diffraction. Below a certain diameter, diffraction actually blurs the image more than a slightly larger hole would. Lord Rayleigh worked out a formula in the 19th century for the optimal pinhole size. In practical terms, most pinhole photographers use openings between about 0.2 mm and 0.5 mm, depending on how far the pinhole sits from the film or paper inside. Going smaller than that makes things worse, not better.
A Very Old Idea
The Chinese text known as the Mozi, dating to the 4th century BC, contains one of the earliest known descriptions of a pinhole image. Around the same period, Aristotle observed that sunlight passing through gaps in tree leaves created circular spots on the ground, small images of the sun itself. In the early 11th century, the Arab physicist Ibn al-Haytham conducted the first rigorous experiments on the phenomenon, analyzing how light passing through a small aperture projects images in his treatise “On the Shape of the Eclipse.”
The term “camera obscura,” Latin for “dark room,” didn’t appear until 1604, when the astronomer Johannes Kepler used it in a published work. Early camera obscuras were literally rooms: a dark chamber with a small hole in one wall that projected the outside scene onto the opposite wall. Artists used them as drawing aids for centuries. Modern pinhole cameras are miniaturized versions of this same setup, shrunk down to the size of a coffee can or matchbox.
Exposure Times in Pinhole Photography
Without a lens to gather and focus light, pinhole cameras collect far less light than conventional cameras. That means exposures take dramatically longer. On a bright sunny day, a pinhole camera loaded with film typically needs 15 to 20 seconds. An overcast sky pushes that to about a minute. Indoors, you might wait 30 to 60 minutes for a single image, and nighttime shots can take several hours.
The recording material makes a difference too. Photographic film is more sensitive to light than photographic paper, so film exposures run shorter. Paper, which many beginners use because it’s cheaper and easier to handle in a makeshift darkroom, requires significantly longer exposure times for the same lighting conditions. Either way, pinhole photography rewards patience. Moving subjects blur or disappear entirely, while stationary objects come through with a soft, dreamlike quality that lens-based cameras don’t naturally produce.
How to Build One
The materials are almost comically simple. You need a light-tight box or tin with a snug lid, a small piece of aluminum foil, a pin, black tape, and something to record the image on (black-and-white photographic paper is the most common choice for beginners). The Eastman Museum’s well-known guide recommends painting the inside of your box flat black to prevent stray light from bouncing around and fogging the image.
Cut a small square hole in one side of the box, tape a piece of aluminum foil over it, then poke a single clean hole through the foil with a pin. The smoother and rounder the hole, the sharper your image will be. On the opposite interior wall, you’ll tape or hold your photographic paper, emulsion side facing the pinhole. Seal every seam and edge with black tape so no light leaks in. To take a photo, you simply uncover the pinhole (a flap of tape works as a shutter), wait for the appropriate exposure time, then cover it again.
Processing the paper requires a basic darkroom setup with developer, stop bath, and fixer. The result is a paper negative, with light and dark areas reversed. You can scan it digitally and invert the tones, or make a contact print by placing it face-to-face with another sheet of photo paper under glass and exposing it to light.
Viewing a Solar Eclipse Safely
One of the most practical everyday uses for the pinhole principle is watching a solar eclipse without risking eye damage. NASA recommends making a simple pinhole projector by punching a small hole in a piece of cardboard or an index card. With your back to the sun, hold the card so sunlight passes through the hole and falls onto a flat surface like a second card or the ground. You’ll see a small, clear projection of the sun’s disk, complete with any visible bite the moon is taking out of it.
The critical safety rule: never look at the sun through the pinhole. The projector works by casting the sun’s image onto a surface you look down at, not by filtering sunlight for direct viewing. The hole itself offers zero protection for your eyes.
Why Pinhole Images Look Different
Pinhole cameras have one optical property that no lens can match: essentially infinite depth of field. Because there is no lens to focus at a specific distance, everything from a few inches away to the horizon is rendered with the same degree of softness. Nothing is perfectly sharp in the way a lens can achieve, but nothing is dramatically out of focus either. This gives pinhole photographs their characteristic look, where foreground and background blend together in a way that feels slightly unreal.
The images also tend to have natural vignetting, darkening at the edges, because light reaching the corners of the film or paper travels a longer path from the pinhole than light hitting the center. Combined with the long exposures that smooth out anything in motion, these qualities make pinhole photography a distinct medium. It’s not a primitive substitute for a real camera. It’s a fundamentally different way of recording light.

