Home▸Articles▸Optics & Light

Ibn al-Haytham's Pinhole Camera: A Journey Through Ancient Optics

A 1000-year-old invention that laid the groundwork for modern photography and our understanding of light behavior.

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

What is a Pinhole Camera?

A pinhole camera is an ancient device that captures images using only the principle of straight-line propagation of light. It consists of a small aperture (pinhole) through which light from a scene passes, projecting an inverted image on a surface opposite to the aperture.

Invented by Ibn al-Haytham in the 11th century, this device was not just a tool for capturing images but also a profound insight into how light behaves. It operates based on the principle that light travels in straight lines and can be blocked or bent at interfaces.

How Does it Work?

When an object is placed in front of a pinhole, light from each point on the object passes through the tiny aperture. The rays then spread out as they travel to the viewing screen, forming an inverted image. This happens because different parts of the object are at slightly different distances from the pinhole, leading to varying angles of incidence and thus different paths for the light.

The size of the pinhole affects the sharpness of the image: a smaller aperture results in less diffraction but also a narrower range of angles that can pass through, while a larger aperture allows more angles but causes greater diffraction, leading to a blurrier image.

live demo · related simulation● LIVE

Why It Matters

Ibn al-Haytham’s pinhole camera was pivotal in the development of optics and photography. His work provided a theoretical framework for understanding light and vision, which influenced later scientists like Newton and Descartes.

Today, the principles behind the pinhole camera are applied in various fields, from astrophotography to medical imaging, where precise control over light paths is crucial.

Real-World Applications

Pinhole cameras are still used today for artistic and scientific purposes. They can be found in solar observatories to safely capture images of the sun without damaging sensitive equipment, or in simple homemade devices that demonstrate basic optical principles.

In photography, pinholes are sometimes incorporated into cameras as a creative effect, producing unique, soft-edged images known as pinhole photographs.

Frequently asked questions

How does the size of the pinhole affect the image quality?

A smaller pinhole results in less diffraction and sharper images but limits the range of angles that can pass through, while a larger pinhole allows more angles but causes greater diffraction, leading to a blurrier image.

What is the significance of Ibn al-Haytham’s work on optics?

Ibn al-Haytham's contributions were foundational in establishing the scientific method for studying light and vision. His work laid the groundwork for modern optics, influencing later scientists and contributing to our understanding of how light behaves.

Can a pinhole camera be used to capture images of the sun?

Yes, a pinhole camera can be safely used to capture images of the sun by projecting its image onto a screen. However, it is important to use proper safety measures and filters to protect both the equipment and observers from harmful solar radiation.

How does the blur diameter change with aperture size in a pinhole camera?

The blur diameter increases as the aperture size increases because larger apertures allow more angles of incidence, leading to greater diffraction and thus a blurrier image. Conversely, smaller apertures result in less diffraction but also limit the range of angles that can pass through.

Try it live

Everything above runs in your browser — open Ibn al-Haytham's Pinhole Camera (Qamara) — 2D Ray Bench and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Ibn al-Haytham's Pinhole Camera (Qamara) — 2D Ray Bench simulation

What did you find?

Add reproduction steps (optional)