The Pinhole Camera: Optics and Image Formation (#98)
Share
Experiment at a Glance
Recommended Age: 10–16
Estimated Cost: Under $5
Difficulty Level: Advanced
Time Required: 1 hour
Ever wondered how cameras actually work? Before fancy lenses and digital sensors, there was the pinhole camera, a simple cardboard box that captures upside-down images using nothing but a tiny hole and some basic physics. Today, you're building one from scratch, and trust me, watching that first inverted image appear on your screen feels like witnessing actual magic.
This isn't just a fun craft project. You're recreating one of the oldest forms of photography and learning the fundamental principles that make every camera, from your smartphone to professional cinema equipment, actually function. Let's dive in.
What Exactly Is a Pinhole Camera?
A pinhole camera is the simplest possible camera. No lens. No complicated mechanics. Just a light-tight box with a tiny hole on one side and a viewing or recording surface on the other. Light bounces off objects in the world, passes through that microscopic opening, and projects an inverted image on the opposite wall.
The technical term for this device is a "camera obscura," which literally means "dark chamber" in Latin. Artists in the Renaissance used room-sized versions to trace perspective-perfect paintings. Today, you're building a pocket-sized version using materials you probably have lying around your house.

The Science Behind the Flip
Here's where it gets interesting. Light travels in straight lines. When sunlight hits a tree outside your window, every point on that tree reflects light in all directions. Your pinhole acts as a filter, it only allows one narrow ray from each point to pass through.
The ray from the top of the tree travels downward through the hole and hits the bottom of your viewing screen. The ray from the bottom of the tree travels upward through the hole and hits the top of the screen. The result? A perfect upside-down image.
This follows the similar triangles principle from geometry. If your object has a height Y and sits at distance Z from the pinhole, and your pinhole is distance f (focal length) from the image surface, then your image height y calculates as: y = fY/Z. Translation: closer objects appear larger, distant objects appear smaller, and everything maintains perfect proportional relationships.
No batteries. No electronics. Just pure geometric optics doing its thing.
What You'll Need
Gather these materials before starting:
- Cardboard box (shoebox-sized works perfectly; oatmeal containers work too)
- Parchment paper or wax paper (translucent, not transparent)
- Heavy-duty aluminum foil
- Black electrical tape or duct tape
- Sewing needle or thumbtack
- Scissors or craft knife
- Ruler
- Dark towel or fabric (optional, for viewing)
Total cost? Under five bucks if you're buying everything. Most people already have this stuff in a drawer somewhere.

Step-by-Step: Building Your Camera
Step 1: Prepare Your Box
Choose a box that's reasonably light-tight. Shoeboxes work great, but any cardboard container will do. If your box has a lid, even better, you'll modify it in a moment.
Inspect all edges and corners. Light leaks will fog your image, so seal any gaps or holes with black tape. The interior should be as dark as possible. If your cardboard is light-colored inside, consider lining it with black paper or painting it with black tempera paint.
Step 2: Create the Viewing Screen
On one end of your box (the end opposite where you'll put your pinhole), cut a rectangular window about 3 inches by 4 inches. Don't cut the entire end off, leave at least a half-inch border all around.
Take your parchment paper and cut a piece slightly larger than your window. Tape it securely over the opening from the inside, pulling it relatively taut. This translucent screen is where your image will appear. Make sure it's smooth without major wrinkles, those will distort your image.
Step 3: Make the Pinhole
This is the most critical step. Cut a small square (about 1 inch by 1 inch) in the center of the opposite end of your box, directly across from your viewing screen. Cover this square completely with aluminum foil, taping it firmly so it's stretched flat without wrinkles.
Now for the actual pinhole. Using your sewing needle or thumbtack, pierce a single tiny hole in the center of the foil. And I mean tiny. The smaller and rounder your hole, the sharper your image will be. Wiggle the needle gently in a circular motion to smooth the edges, then remove it.
Hold the foil up to the light and inspect your pinhole. It should look like a clean, round dot, not a jagged tear. If it's messy, cover it with another layer of foil and try again.
Step 4: Create a Shutter
Cut a small square of black cardboard or thick paper. Tape it above your pinhole so it acts as a flip-down shutter. When you're not actively viewing, this flap covers the hole and prevents unwanted light from entering your camera.
Step 5: Seal Everything
Go over every edge, seam, and corner with black tape. Light is sneaky, it'll find any crack or gap. Your box should be completely light-tight except for the pinhole and the viewing screen.
How to Use Your Pinhole Camera
Take your camera outside on a bright, sunny day. Aim the pinhole end at a well-lit subject, a tree, building, person, or landscape works great. You need strong light for this to work well; cloudy days or dim indoor lighting won't provide enough brightness.
Cup your hands around the viewing screen or drape a dark towel over your head and the screen (like old-timey photographers). This blocks ambient light and lets you see the projected image clearly. You should see an upside-down, full-color image of whatever your pinhole is pointed at.
Move the camera around. Aim it at different subjects. Notice how the image changes when you get closer or farther away. The physics happening right in front of you is identical to what's happening inside every camera lens ever invented.

The Sharpness-Brightness Tradeoff
Here's the challenge every pinhole camera faces: aperture size determines image quality, but it's a balancing act.
A smaller pinhole produces sharper images because each point on your subject maps to a tinier spot on the screen. Light rays remain more parallel, reducing blur and increasing detail. But there's a cost, less light passes through that microscopic opening, making your image dimmer.
A larger pinhole allows more light to enter, brightening your image significantly. However, now you're allowing wider cones of light through the aperture, and those cones overlap on your viewing screen. This creates "circles of confusion", visible halos and blur, especially around bright objects against dark backgrounds.
This is why modern cameras use lenses. A lens bends and focuses all light rays from a single point on your subject back to a single point on the sensor. You get both bright AND sharp images simultaneously. Your pinhole camera forces you to choose.
Want to experiment? Make two more pinholes (on separate pieces of foil) with different diameters. Swap them out and compare how image brightness and sharpness change. You'll see this tradeoff in action.
Troubleshooting Common Issues
"I don't see any image at all."
Check for light leaks. Even small gaps will wash out your image. Also make sure you're aiming at a brightly lit subject and blocking ambient light from your viewing screen.
"My image is really blurry."
Your pinhole might be too large or have rough edges. Try making a new one, smaller and cleaner. Also ensure your parchment paper screen is smooth and taut.
"The image is too dim to see clearly."
Bright sunlight is essential. If it's cloudy, wait for a sunny day. You can also try making your pinhole slightly larger (though this will reduce sharpness).
"Everything looks washed out."
You have light leaks. Seal every seam and edge with black tape. Test by taking your camera into a completely dark room, no light should be visible inside except through the pinhole.
Frequently Asked Questions
Why is the image upside down?
Light travels in straight lines. The ray from the top of your subject travels downward through the pinhole and hits the bottom of your screen. The ray from the bottom travels upward and hits the top. No lenses to flip it back, so you get an inverted image.
Can I take actual photographs with this?
Absolutely! Replace the parchment paper with photographic film or photo paper in a darkroom setting. You'll need much longer exposure times, sometimes several minutes in bright sunlight, but pinhole photography is a legitimate art form with dedicated practitioners worldwide.
Does the shape of the pinhole matter?
Yes. A perfectly round pinhole produces the sharpest image. Irregular or torn holes create distorted, blurry projections. This is why using a needle to create a smooth circular hole is important.
What's the ideal pinhole size?
For a shoebox-sized camera, somewhere between 0.2mm and 0.5mm works well. Too small and you enter the realm of diffraction (light waves interfering with each other), which actually reduces sharpness. Too large and you lose focus. Experimentation is key.
Can I use this to look at the sun?
YES: but ONLY if you're projecting the sun onto your viewing screen. NEVER look directly at the sun through any opening. A pinhole camera is actually one of the safest ways to observe solar eclipses.
Why This Experiment Matters
We're nearing the end of our 100-experiment journey, and this project ties together so many principles we've explored: light behavior, geometric optics, wave properties, and the engineering challenges of image capture.
Every camera you've ever used: from disposable film cameras to cutting-edge digital sensors: is fundamentally doing what your cardboard box does right now. Modern cameras just add lenses to focus light, shutters to control exposure time, and sensors to record the image. But the core concept? Identical.
You've built the ancestor of every photograph ever taken. That's worth an hour of your time and five dollars of materials.
Now go aim it at something beautiful and watch physics paint pictures in a cardboard box.
References:
Research on pinhole camera optics, image formation principles, and similar triangles calculations from optical physics resources.