DID YOU KNOW

The First Computer Bug Was a Real Moth

On September 9, 1947, operators of the Harvard Mark II, an early computer built for the US Navy, traced an error to a moth trapped in one of its relays and taped it into the log book with the note "First actual case of bug being found." It was a pun: engineers had called glitches bugs since at least Thomas Edison's 1878 letters. Grace Hopper made the story famous, and the log book, moth included, is now at the Smithsonian.

On September 9, 1947, operators of the Harvard Mark II, also known as the Aiken Relay Calculator, traced an error in the machine to a moth trapped in one of its relays. They removed the insect and taped it into the log book with the note "First actual case of bug being found."

The Mark II was an electromechanical computer built under Howard Aiken at Harvard University and financed by the US Navy, which used it for ballistic calculations at the Naval Proving Ground in Dahlgren, Virginia. Unlike the Mark I, which used electromechanical counters, it was built from high-speed electromagnetic relays. It was completed in 1947 and delivered to Dahlgren in March 1948.

The note was a joke as much as a discovery. Engineers had called defects bugs since at least the 1870s: in an 1878 letter to an associate, Thomas Edison wrote that "Bugs", "as such little faults and difficulties are called", show themselves after the first burst of intuition behind an invention. The operators, who reportedly included William "Bill" Burke, were probably punning on the two meanings of the word.

Grace Hopper, who worked with Aiken on the Mark II and Mark III at Harvard, popularized the story, and it became computing folklore. The log book, moth included, is now part of the collection of the Smithsonian's National Museum of American History in Washington, D.C.

  • 1947September 9, at Harvard
  • A MOTHtrapped in one of its relays
  • 1878Edison already called them bugs

Media credits

  • Bell Laboratories relay computer for U.S. Army (1946).jpg, Internet Archive Book Images, No restrictions, via Wikimedia Commons
  • Close up of a moth (calliteara) 2025.jpg, Cun Cun, CC BY-SA 4.0, via Wikimedia Commons
  • Commodore Grace M. Hopper, USN (covered).jpg, James S. Davis, Public domain, via Wikimedia Commons
  • Edison and phonograph edit2.jpg, Levin C. Handy, Public domain, via Wikimedia Commons
  • First Computer Bug, 1947.jpg, Courtesy of the Naval Surface Warfare Center, Dahlgren, VA., 1988, Public domain, via Wikimedia Commons
  • Harvard Yard im Sommer.jpg, Marco Almbauer, Public domain, via Wikimedia Commons
  • Moth and leaf.jpg, Smallworldclick, CC BY-SA 4.0, via Wikimedia Commons
  • Relay rack in Riverside interlocking tower, circa 1913.jpg, Unknown author, Public domain, via Wikimedia Commons
  • Smithsonian National Museum of American History building.jpg, DestinationFearFan, CC BY-SA 4.0, via Wikimedia Commons
  • #firstcomputerbug
  • #gracehopper
  • #harvardmarkii
  • #computerhistory
  • #debugging
  • #thomasedison
  • #didyouknow
New Shorts at 9, 12, 2, 4, 6 and 8
+ Follow Bosses & Bytes

More Trivia

DID YOU KNOWDec 4, 2026

Pac-Man's Ghosts Were Almost All Red

DID YOU KNOWNov 19, 2026

The PlayStation Started as a Nintendo Add-On

DID YOU KNOWDec 3, 2026

Pokémon Hid Mew in 300 Bytes

DID YOU KNOWNov 18, 2026

Studio Ghibli Is Named After a Desert Wind