The True Story of the First Computer Bug: When a Real Moth Crashed a Computer

The True Story of the First Computer Bug: When a Real Moth Crashed a Computer

Every day, millions of software engineers and computer users around the globe use the words "bug" and "debugging" to describe technical glitches and their fixes. But did you know that the modern technological origin of this term involved an actual moth trapped inside an electromechanical supercomputer back in 1947?

The Fateful Incident of September 9, 1947 at Harvard

During the summer of 1947, a research team led by computing visionary Grace Hopper was operating the colossal Harvard Mark II Aiken Relay Calculator. The machine, which filled an entire room with miles of wiring and thousands of mechanical relays, unexpectedly started producing calculation errors and halting routine jobs.

Finding the Moth in Relay 70

After painstaking diagnostic inspections across hundreds of relay panels, the technicians pinpointed the culprit: a real insect—a moth—trapped between the contact points of Relay #70 in Panel F. Drawn in by the warmth of the equipment, the moth had physically interrupted the electrical circuit.

The insect was gently removed with tweezers and taped into the team's official daily logbook with the dry, historic notation written by Grace Hopper: "First actual case of bug being found." That historic logbook page is permanently preserved today in the Smithsonian National Museum of American History in Washington, D.C.

Engineering Lore and Everyday Tech Terms

While the 1947 moth incident is the most famous event, the word "bug" to describe mechanical quirks had been used informally as early as the 19th century by engineers like Thomas Edison. However, Grace Hopper's discovery cemented the term forever in the universal vernacular of computer science.

Other Surprising Tech Origin Stories

  • Software Patch: In the era of punch cards and paper tape, developers corrected code mistakes by physically sticking paper patches over wrongly punched holes.
  • Spam: Named after a legendary 1970 Monty Python comedy sketch where the canned meat "SPAM" was repeated endlessly until it drowned out all other meaningful conversation.
  • Cookie: Inspired by fortune cookies—short, self-contained data packets passed between web clients and servers carrying embedded state.

Build Bug-Free, High-Performance Software

At JunquiNet, we engineer clean, enterprise-grade web solutions and systems designed for flawless reliability.

Discover Our Services