Home▸Articles▸Optics & Light

Camera Obscura to Thin Lens: Pinhole Blur, F-Number, Depth of Field and Circle of Confusion

From ancient optical devices to modern cameras, the principles behind pinholes and thin lenses are fundamental to understanding how light forms images.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

Pinhole Camera Basics

A pinhole camera is a simple optical device that uses the principle of a small aperture to form an image. Light rays passing through the tiny hole create an inverted image on the opposite side, with the size and sharpness of the image depending on the distance between the pinhole and the screen.

The pinhole acts as a natural lens, but without any refractive elements, it forms a diffraction-limited image that is inherently out of focus due to the wave nature of light.

Transition to Thin Lens

As we move from a pinhole to a thin lens, the behavior of light changes. A thin lens focuses parallel rays into a point, creating an image that is in focus at specific distances.

The f-number (focal ratio) of a lens determines how much light it allows through and affects depth of field. A lower f-number means more light but shallower depth of field.

live demo · related simulation● LIVE

Depth of Field and Circle of Confusion

Depth of field is the range of distances within which objects appear to be in focus. It depends on the lens’s focal length, aperture size (f-number), and focusing distance.

The circle of confusion is a measure of how much a point object appears as a disc due to the limitations of the lens system. Smaller circles mean higher resolution.

Practical Applications

Understanding these principles helps in photography, where adjusting f-number and focusing distance can dramatically change the appearance of an image.

In microscopy and astronomy, precise control over depth of field is crucial for capturing detailed images of small objects or distant celestial bodies.

Frequently asked questions

What is the difference between a pinhole camera and a thin lens camera?

A pinhole camera forms an image using diffraction, while a thin lens uses refraction. Pinholes create a naturally out-of-focus but sharp image, whereas lenses can focus light to form in-focus images with adjustable depth of field.

How does the f-number affect the depth of field?

A lower f-number (larger aperture) results in a shallower depth of field, meaning only objects at specific distances are in sharp focus. A higher f-number (smaller aperture) increases the depth of field, making more of the image appear in focus.

What is hyperfocal distance and why does it matter?

Hyperfocal distance is the focusing distance that maximizes the sharpness of an image by ensuring that everything from half this distance to infinity appears acceptably sharp. It helps photographers choose a focus point for maximum depth of field.

How does diffraction limit affect image quality?

Diffraction limits the resolution and contrast of images, especially at high f-numbers. It causes light waves to spread out as they pass through small apertures, reducing the sharpness of fine details in the final image.

Try it live

Everything above runs in your browser — open Camera Obscura to Thin Lens: Pinhole Blur, F-Number, Depth of Field and Circle of Confusion and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Camera Obscura to Thin Lens: Pinhole Blur, F-Number, Depth of Field and Circle of Confusion simulation

What did you find?

Add reproduction steps (optional)