factsmate.
◆ Technology · Computing & AI

The first computer "bug" was a real moth

45 sec read

In 1947, engineers pulled an actual insect out of a Harvard computer and taped it into the logbook — "first actual case of bug being found."

Verified · Computer History Museum

On September 9, 1947, operators running the Harvard Mark II computer in Cambridge, Massachusetts traced a malfunction to a literal moth lodged between the contacts of a relay, physically blocking it from closing.

They removed the insect and taped it into the machine’s logbook, adding the wry note: “First actual case of bug being found.” That page, moth still attached, now lives in the Smithsonian’s National Museum of American History.

The word “bug” for a technical fault was already decades old — engineers had used it since the 1870s — so the team’s joke worked precisely because the term existed. The pioneering programmer Grace Hopper was present and made the story famous in later lectures, though historians say she probably didn’t write the note herself.

The episode didn’t coin “bug,” but it gave computing its most beloved origin myth — and a real specimen to prove it.

1947
year found
Mark II
the computer

Sources & references

2 references

Well-established. Corroborated by 2 independent sources.

1 Computer History Museum institution “On September 9, 1947, a team... reported a moth caught between the relay contacts of the Harvard Mark II computer... They taped the dead moth into the logbook... 'First actual case of bug being found,' one of the team members wrote in the log. Programmer Grace Hopper... was present and made the incident famous.” computerhistory.org ↗
2 JSTOR Daily reference “In 1947, engineers working on Harvard University's Mark II computer found a bug... a moth had squeezed into one of the machine's components... That log book, with moth intact, is in the collection of the Smithsonian Institution's National Museum of American History today.” daily.jstor.org ↗
✓ Last reviewed Jun 6, 2026

More like this