Wednesday, November 18, 2026 Editions
Latest
Trending
Orbit Knowledge

Myth Check: The First Computer Bug Was a Real Moth, but the Word Bug Is Far Older

The moth in the Harvard Mark II was real, and it is still taped in the logbook at the Smithsonian. What is false is the claim that the moth gave us the word bug. Engineers had used it for faults since at least 1878.

Read inENESNEHIFR
Myth Check: The First Computer Bug Was a Real Moth, but the Word Bug Is Far Older

Key points

  • On September 9, 1947, a computer at Harvard stopped working because of an insect.
  • The Mark II was an electromechanical machine built for the United States Navy to calculate ballistics tables.
  • The joke in the logbook only works because bug already meant a fault.

On September 9, 1947, a computer at Harvard stopped working because of an insect. Operators of the Mark II calculator traced the fault to Relay 70 in Panel F and found a moth beaten to death between the relay's contacts. They taped the moth into the logbook and wrote beside it: First actual case of bug being found. The moth was real. The famous claim built on it, that this is where the word bug comes from, is not.

The Mark II was an electromechanical machine built for the United States Navy to calculate ballistics tables. It had no screen and no software in the modern sense. Its calculations ran through thousands of relays, switches that open and close physically. A two-inch moth wedged in a relay was not a metaphor. It was a hardware failure with wings. The logbook entry was made at 15:45, and the page, moth included, is now held by the Smithsonian's National Museum of American History.

The word was already old

The joke in the logbook only works because bug already meant a fault. The operators wrote first actual case because they had finally found a literal insect behind a word they used every day for defects. Engineers had used bug that way for decades. Thomas Edison used it in an 1878 letter to describe the small faults and difficulties that show up in an invention. By 1947 the term needed no inventing. The moth did not coin the word bug. The moth was a pun that got preserved in tape.

What Grace Hopper did and did not do

The story is usually told with Grace Hopper, the Navy officer and computing pioneer who worked on the Mark II, cast as the person who found the moth. The record is narrower. The Smithsonian notes that the logbook was probably not Hopper's, and Hopper herself was careful to admit that she was not in the room when the bug was retrieved. Her real role came afterward. She retold the story for the rest of her career, in lectures and interviews, and her telling is why a taped insect in a Navy logbook became the most famous specimen in computing. She did not find the bug or coin the term. She made it immortal, which may be the larger achievement.

So the myth check lands in two parts. The event is true in every checkable detail: the date, the relay, the moth, the sentence in the logbook, the museum that keeps it. The origin story is false: bug as an engineering word is at least 69 years older than the moth. The next time a program fails, the honest sentence is the one the operators wrote. Bugs were already bugs. In 1947, for once, one of them was actual.

Sources