A camera obscura is a dark room or box with a small hole in one wall. Light from the scene outside passes through the hole and paints a full colour, moving, upside down image on the opposite wall. To make one, black out every source of light in a room or box, make a hole about 10 to 20 mm across in the window covering, wait for your eyes to adjust, and look at the wall facing the hole.
How a small hole makes a picture
Every point in a sunlit scene sends light out in all directions, so a bare white wall in the open receives light from everywhere at once and shows only even brightness.
Put an opaque wall with a small hole between the scene and the screen and something changes. Light travels in straight lines, so from any one point in the scene, only a thin bundle of rays can pass through the hole, and that bundle can only land in one small patch on the screen. A point at the top of a tree outside can only reach the screen by travelling downward through the hole, so it lands low. A point at the base of the tree travels upward through the hole and lands high. Every point in the scene gets its own patch, and together those patches form an image.
This is the whole idea behind every camera ever made. A lens, a sensor, a shutter and a viewfinder are all refinements of a dark space with a controlled opening. If you understand the camera obscura, you already understand why a camera has focal length, why the opening is described as an f-stop, and why the image on a sensor starts out upside down.
Why the image is upside down
Rays from the top of the scene cross rays from the bottom at the hole, so the picture is turned through half a turn. What you see depends on which side of the screen you view it from:
- In a room, facing the wall opposite the hole: the image is upside down, but left and right sit where they were when you looked out of the window.
- In a box viewer, looking at a translucent screen from behind while facing the scene: the image is upside down and also reversed left to right.
Both are the same geometry. Only your viewpoint changes.
How big the image is
Image size follows from similar triangles. The image height equals the object height times the distance from hole to screen, divided by the distance from hole to object.
- A tree 10 m tall, 50 m from the hole, projected on a wall 4 m from the hole: 10 × 4 ÷ 50 = 0.8 m tall on the wall.
- The same tree in a shoebox with the screen 0.3 m from the hole: 10 × 0.3 ÷ 50 = 0.06 m, or 6 cm.
The distance from hole to screen does the same job as focal length on a camera. A longer distance makes a bigger image of the same scene and shows a narrower slice of it, which is exactly how angle of view narrows as focal length grows.
Hole size: the trade between sharpness and brightness
The hole decides almost everything about the picture. Two effects pull in opposite directions.
- A hole that is too large lets each scene point spread into a patch about as wide as the hole itself. A 20 mm hole gives patches roughly 20 mm across on the wall, so fine detail blurs together. The image is bright but soft.
- A hole that is too small makes each patch smaller, until light begins to spread as it squeezes through the narrow opening. This spreading is diffraction, the same effect explained in diffraction in photography. Past a certain point, shrinking the hole makes the image dimmer and softer at once.
Between those two lies a sharpest hole size for a given distance to the screen. A widely used rule of thumb is that the best diameter is about 1.9 times the square root of the screen distance times the wavelength of light. Using 0.00055 mm for the middle of the visible spectrum:
| Hole to screen | Sharpest hole | Resulting f-number |
|---|---|---|
| 150 mm (small box) | about 0.55 mm | about f/270 |
| 300 mm (shoebox length) | about 0.77 mm | about f/390 |
| 1 m (large crate) | about 1.4 mm | about f/710 |
| 4 m (bedroom) | about 2.8 mm | about f/1,400 |
The f-number is simply the screen distance divided by the hole diameter, the same definition used for a lens. That is why these numbers are so large: at f/1,400 a room is very dim, and most people can barely see the image even after their eyes adjust.
So for a room you deliberately use a bigger hole than the sharpest one. Brightness depends on the area of the hole, which grows with the square of its diameter.
- A 10 mm hole 4 m from the wall works at f/400. Detail is soft but the image is easy to see.
- A 20 mm hole works at f/200 and is four times as bright, a gain of two stops, at the cost of twice the blur.
- Start with about 10 mm. If the room is still too dark, open to 15 or 20 mm. If it is bright enough, try 6 mm and see how much sharper it gets.
For a small box you can afford to stay close to the sharpest size, because you will usually photograph or view it in bright sun and the screen is close to your eye. For actually exposing film or paper inside a box, see pinhole photography, which covers that side of the subject.
How to turn a room into a camera obscura
The best room faces a bright, sunlit view with something interesting at a distance: a street, trees, buildings, water. A north facing window in the northern hemisphere, looking at a sunlit scene, keeps direct sun off the hole while the view itself is brightly lit. The room should be small enough that the opposite wall is a few metres from the window, and that wall should be pale and plain.
- Cover every window completely. Black plastic sheeting, thick cardboard, foam board or several layers of blackout fabric all work. Tape every edge to the frame with opaque tape. Any gap the width of a pencil line will wash out the image.
- Seal the door. Roll a towel against the gap at the bottom and tape over light leaking round the frame. Turn off or cover every glowing standby light.
- Cut the hole. In the middle of the window covering, cut a square about 50 mm across. Tape a piece of aluminium foil over it and make a clean round hole in the foil about 10 mm across. Foil lets you change the hole size in seconds by swapping pieces.
- Wait. Close the door and let your eyes adjust for at least five minutes, ideally ten to fifteen. The image will seem to appear out of nothing as your night vision builds.
- Find the image. It will be on the wall opposite the hole, across the ceiling and floor, and over any furniture. Hold up a large sheet of white card and move it nearer to and further from the hole. Closer makes a smaller, brighter image; further makes a bigger, dimmer one.
- Adjust. If the room is too dark, enlarge the hole or find light leaks you missed. If detail is too soft, try a smaller hole.
How to make a box camera obscura
A box viewer takes ten minutes and shows the effect in daylight without blacking out a room.
- Take a shoebox or any long cardboard box. Cut a square window about 3 cm across in the centre of one end.
- Tape foil over that window and push a pin or needle through the foil to make a hole a little under 1 mm across.
- Cut away most of the opposite end and tape tracing paper or baking paper across the opening. This is the screen.
- Seal every seam of the box with tape so only the pinhole lets in light.
- Point the pinhole at a bright scene and look at the screen. Throw a dark coat or cloth over your head and the back of the box to keep stray light off the screen. Your eye needs to be in shadow for the image to show.
Adding a lens
A simple lens, such as a magnifying glass, solves the brightness problem. Instead of letting through only a narrow bundle of rays from each point, a lens collects a wide cone of rays and bends them back together to a single point on the screen. The result is far brighter and sharper than any pinhole, but only at one distance. That distance is roughly the lens’s focal length for faraway subjects, and a little longer for close ones.
- A magnifier with a 200 mm focal length and a 50 mm diameter works at 200 ÷ 50 = f/4.
- The sharpest pinhole for the same 200 mm distance is about 0.63 mm, or roughly f/320.
- The lens therefore gives about (320 ÷ 4)² = 6,400 times as much light, more than twelve stops.
The price is focus. Move the screen a few centimetres and the lens image blurs, while a pinhole image is equally sharp (or equally soft) at any distance. This is the trade at the heart of photography: a pinhole has endless depth of field and very little light, a lens has plenty of light and a limited zone of sharpness. Every camera since has lived somewhere between those two, and the history of lenses is largely the story of making that trade less painful.
Photographing the projection
A room camera obscura makes one of the stranger photographs you can take: the outside world laid across a bed, a wardrobe and the ceiling, all upside down. Because the projected image is so dim, it needs a long exposure.
- Use a tripod. Exposures will run from many seconds to several minutes. See how to use a tripod for keeping the camera steady.
- Use manual exposure. The meter is easily confused by a dark room with a faint image. Shoot in bulb mode once exposures go past 30 seconds.
- Starting point. With a 10 to 20 mm hole and a sunlit view, try f/8 at ISO 400 for 30 seconds. Look at the histogram and double or halve the time until the brightest parts of the projection sit just short of the right edge.
- Focus. Autofocus often fails in the dark. Switch to manual focus, use live view magnified on a bright part of the projection, and focus on the wall, not on the scene.
- Trigger without touching. Use a remote or the self-timer so pressing the button does not shake the camera.
- White balance. Walls tint the image. Shoot raw and set white balance afterwards from something you know should be neutral.
You can rotate the finished photograph to put the projected scene the right way up, which turns the room upside down instead. Both versions are worth making. For the wider craft of exposures this long, see long exposure photography.
Where the camera obscura came from
People noticed the effect long before anyone could record it. Light through a gap between leaves throws round images of the sun on the ground, and a hole in a tent or shutter projects the street outside. By the Renaissance, artists used portable camera obscura boxes, some with lenses and mirrors, as drawing aids for tracing scenes in correct perspective.
What was missing was a way to make the image stay. The experiments that finally fixed it chemically are covered in the evolution of photography from daguerreotypes to digital. The word camera itself comes from this history: camera obscura is Latin for dark room.
Common mistakes with a camera obscura
- Not waiting long enough. People switch the lights off, see nothing after thirty seconds and give up. Your eyes need at least five minutes in the dark, and the image keeps improving for fifteen.
- Light leaks. A thin line of light round a door or blind adds a wash of grey that kills contrast. Find leaks by sitting in the dark and looking slowly round the room.
- A hole that is too small for a room. A pin sized hole in a bedroom window is correct for sharpness and far too dim to see. In a room, start at about 10 mm.
- A dull view. A dark courtyard or a shaded wall makes a faint image no matter what you do. The scene must be brightly lit, ideally in sun.
- Sun on the hole. Direct sun falling on the window covering creates glare and can make the hole flare. A window facing away from the sun, looking at a sunlit scene, works best.
- Expecting the camera’s meter to cope. Metering the dim room gives wildly varying results. Set exposure by hand and judge from the histogram.
- Looking at the sun through the hole. Never look at the sun directly or through any hole, lens or box. Only look at the projected image on the screen.
Try this: a 10 minute box camera obscura
Make the shoebox viewer described above, with a pin sized hole in foil and a tracing paper screen. Take it outside on a bright day and point it at a scene with a clear vertical, such as a lamppost, a tree or a building edge.
- With a cloth over your head, photograph the screen with your phone held close to the paper. Note which way up the lamppost appears and which side of the frame it falls on.
- Now widen the hole to about 3 mm with a pencil tip and photograph the screen again from the same position.
- Finally, cover the 3 mm hole with fresh foil and make a hole about half the size of the first one, and photograph once more.
Judge the three results side by side. The 3 mm hole should give the brightest and softest image. The first pin hole should be noticeably sharper and dimmer. The smallest hole may be dimmer still and no sharper, or even softer, which is diffraction showing up. The image should be upside down and reversed left to right, because you were looking at the screen from behind. If the image is grey and washed out in every version, light is getting in round the edges or round your cloth.
Camera obscura FAQ
Is a camera obscura safe for viewing a solar eclipse?
Yes, a pinhole projection is one of the safest ways to watch an eclipse, as long as you look at the projected image and never at the sun itself. The sun’s image is small, about 1/108 of the distance from hole to screen, so about 9 mm across at 1 m. For photographing an eclipse directly, follow the filter advice in how to photograph a solar eclipse.
Why is the image in colour if there is no film?
The camera obscura does not record anything; it only sorts light. Every colour in the scene travels through the hole and lands on the screen, so you see the real colours of the world, dimmed. Recording them takes a light sensitive surface, which is what film and the image sensor in a camera provide.
Can I see a camera obscura image in daytime with the room lights on?
No. Room light hitting the screen is far brighter than the projected image and swamps it completely. The room must be as dark as you can make it, which is why the original name means dark room.
Is my phone camera a camera obscura?
In principle, yes. A phone camera is a sealed dark box with a small opening, a lens to brighten and sharpen the image, and a sensor in place of the screen. The lens forms an upside down image on the sensor, and software turns it the right way up before you see it.
Wondering how to record a pinhole image on film or paper instead of just viewing it? Read pinhole photography.
Curious why tiny openings soften a lens image too? See diffraction in photography.
Want to know what the f-number actually measures? Start with the f-stop.
How does a sensor turn the projected light into a file? Read how image sensors work.
Looking for more projects to try with children? See photography for kids.