The first computer bug was found on 9 September 1947, which makes it 79 years old in 2026. Operators of the Harvard Mark II found a moth stuck in a relay and taped it into the logbook as the “first actual case of bug being found”. The joke worked because engineers had called faults “bugs” since at least 1878.
Thomas Edison calls little faults “bugs” in a letter13 November
194482 years ago
Grace Hopper joins the Harvard computing team
194482 years ago
Isaac Asimov uses “bug” for a robot fault in a short story
194779 years ago
A moth is found in Relay 70, Panel F of the Harvard Mark II9 September
The moth in the machine
The Harvard Mark II was a huge electromechanical calculator built for the US Navy, full of relays: small switches that clicked open and shut. On 9 September 1947 it started giving errors. The operators traced the fault to Relay 70 in Panel F, where a moth had been caught between the contacts.
They removed it and taped it into the logbook, with the note “First actual case of bug being found.” The entry is time-stamped 15:45. The page, moth and all, is now in the collection of the Smithsonian’s National Museum of American History in Washington, D.C.
Did Grace Hopper find the first bug?
Not personally, though she is often credited. The computer pioneer Grace Hopper worked on the Mark II and loved to tell the story, which is why it became famous. The logbook does not say who found the moth, and Hopper herself said in interviews that it was found by the operators.
What the team found funny was that, for once, the bug was a real insect.
“Bugs” go back to Edison
Engineers were talking about bugs long before computers. In a letter to his associate Theodore Puskas dated 13 November 1878, Thomas Edison described the small faults and difficulties that crop up in an invention: “Bugs, as such little faults and difficulties are called”.
By the 1920s and 1930s, the word was everyday slang among telephone engineers and appeared in adverts for pinball machines. Isaac Asimov used it for a robot fault in his 1944 story Catch That Rabbit, three years before the moth.
The first computer bug was found in 1947, 79 years ago.
What was the first computer bug?
A moth found in a relay of the Harvard Mark II computer on 9 September 1947. It was taped into the logbook with the note “First actual case of bug being found.”
Where is the first computer bug now?
The logbook page with the moth still taped to it is in the collection of the Smithsonian’s National Museum of American History in Washington, D.C.
Who coined the term “bug”?
Nobody knows. It was already engineering slang in the 1870s, when Thomas Edison used it in a letter of 1878.
Did Grace Hopper find the moth?
No. She worked on the Mark II and made the story famous, but the moth was found by the operators on duty.