Ibn al-Haytham's dark room (the camera obscura experiments)

البيت المظلم عند ابن الهيثم (تجارب الحجرة المظلمة والثقب)

A method of testing set out by Ibn al-Haytham in the Kitab al-Manazir: light from the sun, the moon, a star or a candle enters a dark room through a small hole and appears on the opposite wall along a straight line that can be cut with an opaque body or measured with a ruler. With it he proved that light travels in straight lines, and that the lights of several candles meet in one hole and then part again on the wall, each opposite its own candle, without mixing. TDV calls this experiment the basis of today's photographic camera.

Depth

At a glance

Era
The Buyid, Fatimid and Seljuk Era
Region
Egypt & Nile · Levant & Iraq
A tall manuscript page of Arabic naskh script in black ink inside a ruled gold-and-red frame on cream paper. In the middle is a geometric figure in red-brown ink: a horizontal line with other lines meeting at a point on it, labelled with letters, a diagram of the bending of light. Near the bottom of the page one word is written in red ink.
Image: a page of the manuscript of Kamal al-Din al-Farisi's Tanqih al-Manazir. Danieliness, own work (2010), CC BY-SA 3.0, via Wikimedia Commons: https://commons.wikimedia.org/wiki/File:Tanqih_al-Manazir.JPG

Quick facts

Domain
Optics and physics
Kind
Method
First attested
between 1037 and 1038 CE · 429 AH (derived)
Era
Abbasid age
Where
Cairo
Described in
Kitab al-Manazir (The Book of Optics)
Attribution
Improvement

Who made it

The claim and its basis

Ibn al-Haytham turned the dark room with a small hole into an orderly testing device: he let in the light of the sun, the moon, the stars and candles, cut the light's path with an opaque body, measured it with a ruler, and covered one candle after another, proving by experiment that light travels in straight lines and that lights do not mix in the air.

Ibn al-Haytham does not claim to have been the first to see light enter a dark room through a hole. He says the thing shows itself plainly to anyone who examines the light that comes into houses through holes, cracks and doors, so he begins from a familiar sight. What is new is that he made the sight into an ordered test. He follows the light through air thick with dust or smoke and sees it run straight; he sets an opaque body in its path and finds the light falls on the body and vanishes from the place beyond; he measures its course with a ruler and finds it perfectly straight; he repeats this with starlight on a moonless night and with firelight; and he sets several candles before one hole and covers them one by one. The editor describes his approach as a study built on experiment and mathematics rather than a philosophical essay on the nature of light, and TDV says it was he who devised the dark-room experiment to prove that light travels in straight lines. It is therefore recorded here as an improvement, not an invention from nothing.

Sources: Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) · İBNÜ'l-HEYSEM — TDV İslâm Ansiklopedisi (Hüseyin Gazi Topdemir) · Wikimedia Commons (file pages, CC BY-SA and CC BY licences)

Before it

  • Light entering houses through holes, cracks and doors
  • Greek optics, Euclid and Ptolemy, and the theories of vision of Aristotle and Galen

Built on it

  • Ibn al-Haytham's own Treatise on the Form of the Eclipse (Maqala fi surat al-kusuf)
  • Kamal al-Din al-Farisi's Tanqih al-Manazir (The Revision of the Optics)
  • The Latin translation of the Manazir and Risner's Opticae thesaurus (Basel 1572)
  • Optics in Europe: Witelo, Pecham, Roger Bacon, Kepler, Snell, Fermat and Descartes

How it works

what Ibn al-Haytham's dark room was built on and what was built on it

Summary

In the first book of his Kitab al-Manazir (Book of Optics), Ibn al-Haytham lets the light of the sun, the moon, the stars and a fire into a dark room through a small hole, and studies it on the opposite wall. He follows the light through dusty air, cuts its path with an opaque body, lays a ruler along it, and finds it perfectly straight 1. Later in the same book he sets several candles before one hole into a dark place: on the wall appear as many spots of light as there are candles, each opposite its own candle along a straight line through the hole, and when one candle is covered only its spot goes out 2. From this he concluded that light travels in straight lines and that lights crossing the same opening do not mix. TDV calls the dark-room experiment, devised to prove that light travels in straight lines, the basis of today's photographic camera 3. The museum records it as an improvement: Ibn al-Haytham did not discover that light passes through a hole, but he turned that familiar sight into an ordered, repeatable test.

What it is

The dark room (in Arabic al-bayt al-muzlim, in Latin camera obscura) is a closed, unlit room or place with one small opening to the light outside. Whatever bright thing stands outside, the sun, the moon, a star or a candle, sends its light through the opening, and the light falls on the wall or on a body facing the opening inside.

In the Manazir the dark room is not a toy or a picture-making device but an instrument of proof. Ibn al-Haytham uses it to show two things: that light from any luminous body travels along straight lines 4, and that the lights of different bodies pass through the same opening without blending, then part again on the far side 2. The editor of the Arabic text describes the whole book as a study of the properties of light in its three states, travelling straight, reflected and bent, built on experiment, which Ibn al-Haytham called i'tibar, together with mathematical methods 5. The dark room is where that method can be watched at work.

The world before it

Light coming into a room through a gap is an everyday sight, and Ibn al-Haytham says so himself: the straightness of light shows plainly to anyone who examines the light that comes into houses through holes, cracks and doors 6.

What earlier scholars lacked, in the editor's account, was a study of light that put experiment first. For the Greeks optics was a branch of mathematics; Ibn al-Haytham described it instead as a science compounded of the natural and the mathematical sciences 7. On how we see, he faced three schools: the mathematicians such as Euclid and Ptolemy, the natural philosophers following Aristotle, and the physicians following Galen. His own theory differed from all three 8. TDV adds that he overturned the old view that rays go out from the eye to the object 3.

The story

Ibn al-Haytham, known in medieval Europe as Alhazen, was born around 354 AH (about 965 CE) and came from Basra 3. There, under the Buyids, he worked in a government office with the title of vizier, then left it. TDV reports that the Fatimid caliph al-Hakim heard that he claimed he could regulate the Nile's flood and invited him to Egypt. Ibn al-Haytham travelled south to the region of Aswan, studied the site, saw that the plan could not be carried out, apologised and was given a post. He only found peace after al-Hakim's death in 411/1021 3.

He spent most of his life in Egypt. Ibn Abi Usaybi'a, quoted by the editor, says he lived in Cairo at the mosque of al-Azhar, and that each year he copied Euclid's Elements and Ptolemy's Almagest, sold the copies and lived on their price 9. TDV describes him as an ascetic who lived by copying books; it places him in Baghdad in 418/1027, notes that Sa'id al-Andalusi has him still in Egypt in 430, and gives 432/1040 as his probable year of death 3.

The Manazir carries no date of writing. Ibn Abi Usaybi'a preserves three lists of Ibn al-Haytham's works; the third, which runs to the end of 429 AH (1037–1038 CE), holds 92 titles and names the Manazir among them 10. The editor believes Ibn al-Haytham may have drawn up this list himself, near the end of his life 11. In it the Manazir comes before his short works on shadows, on the marks on the face of the moon, on light, on the burning sphere and on the form of the eclipse, so the editor takes these to be later 12.

The maker(s)

Abu Ali al-Hasan ibn al-Hasan ibn al-Haytham is named so at the head of the first book of the Manazir, which opens with the basmala 13. TDV counts him among the contemporaries of Qadi Abd al-Jabbar, al-Baqillani, Ibn Miskawayh, Ibn Sina and al-Biruni. Besides his works in mathematics, astronomy and optics, it lists treatises in which he answered Ibn al-Rawandi, answered Abu Bakr al-Razi's criticism of prophethood, and took issue with the Mu'tazila on the divine attributes and on the threat of punishment 3. The faith entry in his record rests on these works and on his own opening of the Manazir.

The editor of the Arabic text counts the Manazir the most important book on optics written between Ptolemy in the second century CE and Kepler and Descartes in the early seventeenth, and the most valuable work the Arab scientists produced in physics 5. Zahir al-Din al-Bayhaqi, TDV notes, called him the second Ptolemy 3.

How it works

Ibn al-Haytham sets out several versions of the test, each meant to be repeated by the reader.

Sunlight and a cutting body. When sunlight enters a dark room through a hole, and the air of the room is clouded with dust or smoke, the light can be seen stretching in a straight line from the hole to the spot where it falls on the floor or wall 6. Set an opaque body anywhere on that line and the light falls on the body and vanishes from the spot beyond; remove the body and the spot returns. Lay a straight ruler along the line between the hole and the spot and the light keeps to the ruler's edge: its path is perfectly straight 14. The same, he says, holds for the light of the moon 14.

Starlight and firelight. On a night without a moon, if a bright star faces a hole into a dark room, its light appears on the wall opposite the hole, on the straight line from the star through the hole, and is cut off in the same way by an opaque body 15.

The eclipse and the cone of light. During a partial eclipse of the sun, light still comes through the hole from the whole of the visible part of the sun. Light passing through a hole always spreads out in a cone, wider the farther it goes, and this is plain when the hole is fine 16.

The candles. In the sixth chapter of the first book he takes several candles (suruj) placed at different points facing a single hole that opens into a dark place, with a wall or an opaque body inside opposite the hole. On that wall appear separate lights, as many as the candles, each on the straight line that runs from its candle through the hole. Cover one candle and only the light opposite it vanishes; uncover it and the light comes back 17. He gives a practical way to do it: in a room at night, with a door of two leaves opened only slightly, set candles outside; then narrow the opening to a small hole, and the result is the same 2. Since all the lights meet at the hole and then part again after it, he concludes that lights do not mix in the air or in other transparent bodies 18.

A consequence follows from the geometry: because each spot lies on the straight line from its candle through the hole, a candle standing to the right of the hole throws its spot to the left of the wall, and one standing higher throws it lower. This is the principle of every pinhole camera.

The spread

For a time the Manazir seems to have dropped out of circulation in the eastern Islamic lands. The editor tells how Qutb al-Din al-Shirazi remembered seeing it in a library in Fars when he was young, and later had a copy brought from far away; the story itself shows that the book was then hard to find 19. His student Kamal al-Din al-Farisi then wrote the Tanqih al-Manazir (The Revision of the Optics) 20.

In Europe the book arrived through a Latin translation whose translator, date and place are unknown. The editor thinks it was probably made in Spain in the late twelfth or early thirteenth century; the first European author known to cite it is Jordanus de Nemore, active around 1220–1230 21. About twenty Latin manuscripts survive, and an Italian translation was made from the Latin in the fourteenth century 22. One detail matters here: the Latin version lacks the first three chapters of the first book 23. So the dark-room passage of chapter 3, with the dust, the ruler and the starlight, did not reach Latin readers, while the candles experiment of chapter 6 did.

In 1572 Friedrich Risner printed the Latin text at Basel under the title Opticae thesaurus, together with a treatise on dawn and twilight attributed to Ibn al-Haytham (in fact by Ibn Mu'adh al-Jayyani) and the ten books of Witelo's optics 24 3.

What it was built on

  • Everyday light through holes and doors. Ibn al-Haytham starts from what anyone could see in a house: light entering through holes, cracks and doors 6.
  • Greek optics and the theories of vision. He wrote against the background of Euclid and Ptolemy, of Aristotle and of Galen, and the editor stresses that his theory of vision differed from all of them 7.

What was built on it

  • His own treatise on the form of the eclipse. Maqala fi surat al-kusuf comes after the Manazir in the list of his works 12. TDV notes that Kamal al-Din al-Farisi commented on it, and that Eilhard Wiedemann studied it in German under the title Über die Camera obscura bei Ibn al Haiṯam (Erlangen 1914) 3.
  • Al-Farisi's Tanqih al-Manazir. Written at the suggestion of Qutb al-Din al-Shirazi, it began as an abridgement but grew into a work that explains, completes and objects; al-Farisi marks Ibn al-Haytham's words with qala (he said) and his own with aqulu (I say). It was printed at Hyderabad by the Da'irat al-Ma'arif al-Uthmaniyya in 1348 AH (1930 CE) in two volumes 25.
  • The Latin Manazir and Risner's edition. The anonymous Latin translation and its printed form of 1572 26.
  • Optics in Europe. Witelo wrote his own optics after reading the Latin Manazir and followed it closely in subject, figures and often wording 22. TDV names Pecham, Witelo, Roger Bacon, Kepler, Snell, Fermat and Descartes among those whose work it shaped 3.

Impact on daily life

The dark room left the study and entered daily life much later, through the camera. TDV calls Ibn al-Haytham's experiment the basis of today's photographic camera 3: a camera, from the simplest pinhole box to a modern device, is a dark chamber into which light enters through a small opening and falls on a surface opposite. The candles test shows why the picture is sharp rather than a blur: the light from each point outside reaches its own point inside, along its own straight line 2.

How it changed history

The change was one of method. Before the Manazir, that light travels in straight lines was a premise of geometrical optics; Ibn al-Haytham made it a result, shown with a hole, a dark room, a cutting body and a ruler, and repeated with sunlight, moonlight, starlight and firelight 1. The editor sees the book's lasting value in this joining of experiment to mathematics 5, and TDV says Ibn al-Haytham changed optics at its roots 3. Through al-Farisi in the Islamic world and through the Latin translation and Witelo in Europe, the Manazir remained the reference work on optics for centuries 27.

Who invented it?

No one source names a first inventor of the dark room, and Ibn al-Haytham does not claim the title: he presents light through holes as a familiar sight and turns it into a test 6. The museum therefore records him as an improver. TDV credits him with devising the dark-room experiment to prove that light travels in straight lines 3.

A separate scholarly question concerns the man himself. TDV reports that Roshdi Rashed argued that the sources join two different men named Ibn al-Haytham, and that A. I. Sabra rejected this view in 1998 3.

Today

The Arabic text of the Manazir is available in a critical edition: the first three books, which contain the dark-room and candles passages, were edited by A. I. Sabra and published in Kuwait in 1983 28. TDV links the experiment to the photographic camera 3, and every camera keeps the same plan of a dark chamber with a small opening.

Surviving examples

  • The Arabic manuscripts. The editor lists the manuscripts he used; among them, Ayasofya MS 2448 in Istanbul contains all seven books and was copied in 869 AH (1464–1465 CE) 29.
  • The Latin manuscripts. About twenty survive, at least seven of them from the thirteenth century, one of them, at the Royal Observatory in Edinburgh, dated 1269; a fourteenth-century Italian translation survives in a single manuscript in the Vatican Library 22.
  • The Tanqih. Al-Farisi's revision is in print (Hyderabad 1347–1348 AH) 3. The museum's image shows a page that Wikimedia Commons describes as from the author's own copy 30.

In culture

Latin Europe knew Ibn al-Haytham as Alhazen, and under that name the Manazir circulated in manuscript and in Risner's printed Opticae thesaurus 3. In the Islamic sources he is remembered as a scholar who lived simply on the copying of books 9, and as "the second Ptolemy" in Zahir al-Din al-Bayhaqi's phrase 3.

For young readers

About a thousand years ago a Muslim scholar named Ibn al-Haytham lived in Cairo. One night he closed the door of a room, leaving only a small gap, and set several candles outside it. On the wall inside he saw one spot of light for each candle! When he covered a candle, its spot vanished, and when he uncovered it the spot came back. That is how he showed that light travels in a straight line, and that the lights of many candles can pass through one small hole without getting mixed up. A camera works on the same idea today: it is a dark box with a small opening.

References

  • Ibn al-Haytham, Kitab al-Manazir, Books 1–3, edited by A. I. Sabra, Kuwait, 1983 (1404 AH): editor's introduction and Book 1, scan pp. 9–78 and 171–172. 31
  • Hüseyin Gazi Topdemir, "İBNÜ'l-HEYSEM", TDV Encyclopedia of Islam, vol. 21 (Istanbul 2000), pp. 82–87, online edition. 3
  • Wikimedia Commons, "Tanqih al-Manazir.JPG", Danieliness, CC BY-SA 3.0. 30

Connections

Explore the connections

Improved by
Ibn al-Haytham (Alhazen)
Described by
Kitab al-Manazir (The Book of Optics)

People and things also explored

Ibn al-Haytham (Alhazen)· Kitab al-Manazir (The Book of Optics)· Ibn al-Haytham summoned to Cairo· Kitāb al-Manāẓir composed· Basra· Cairo

Sources

  1. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , pp. 73–75
  2. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , pp. 171–172
  3. İBNÜ'l-HEYSEM — TDV İslâm Ansiklopedisi (Hüseyin Gazi Topdemir) , pp. 82–87
  4. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , pp. 73–74
  5. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 9
  6. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 73
  7. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , pp. 9–10
  8. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 10
  9. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 25
  10. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 27
  11. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 30
  12. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , pp. 28–29
  13. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 60
  14. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 74
  15. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 75
  16. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , pp. 77–78
  17. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 171
  18. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 172
  19. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 45
  20. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , pp. 44–45
  21. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , pp. 47–48
  22. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 48
  23. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , pp. 49–50
  24. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 47
  25. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , pp. 44–47
  26. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , pp. 47–50
  27. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , pp. 44–48
  28. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983)
  29. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , p. 42
  30. Wikimedia Commons (file pages, CC BY-SA and CC BY licences)
  31. Kitab al-Manazir, Books 1-3, ed. Abd al-Hamid Sabra (Kuwait 1983) , pp. 9–50
Cite this page

islam.museum contributors. “Ibn al-Haytham's dark room (the camera obscura experiments)”. islam.museum, https://islam.museum/en/invention/camera-obscura/. CC BY-SA 4.0. Last updated 2026-11-05.

Improve this page on GitHub · Report an error · Help complete it · JSON

Wing

Ideas

Beliefs, concepts, sciences and schools, explained in plain words.
Related

Ibn al-Haytham (Alhazen)

Arab mathematician and physicist whose Kitab al-Manazir is the principal optical work of the Islamic world. The editor places him in the fifth century AH.