A moth taped to a logbook page in 1947 became one of the most repeated origin stories in computing, and the physical evidence still exists. During testing of the Harvard Mark II at a Navy facility, technicians found the insect jammed inside a relay, halting the massive electromechanical computer. They removed the moth, fixed it to the log with adhesive tape, and wrote a note that has been quoted for decades. The episode did not coin the word “bug” for a technical fault, but it gave the term a concrete, shareable image that spread through postwar computing culture and never faded.
Why the 1947 moth still shapes how engineers talk about failure
The word “bug” had been used to describe mechanical defects long before any programmable computer existed. Thomas Edison used it in the 1870s to describe small faults in his inventions. Telephone engineers and radio operators adopted the same shorthand well into the twentieth century. By the time the Harvard Mark II team encountered their moth, the vocabulary was already in circulation among people who built and repaired complex machines.
What the 1947 incident changed was the word’s staying power inside the new discipline of electronic and electromechanical computing. A dead moth stuck to a page, paired with a dry, humorous annotation, gave technicians something tangible to point to when explaining failures to officers and administrators who had no training in relay logic. The artifact turned an old slang term into a piece of institutional lore that traveled from Navy labs to university departments to commercial software shops over the following decades. Every programmer who says “bug” today is, in a small way, echoing that relay room.
The story’s persistence also reflects how engineers make sense of failure. Complex systems rarely fail in a single, dramatic way; they drift into trouble through small misalignments, overlooked assumptions, and rare coincidences. The moth offered a vivid, almost comic example of that principle: an ordinary insect, in the wrong place at the wrong moment, could bring a room-sized machine to a stop. Retelling the anecdote lets people working on software and hardware acknowledge that even the most carefully designed systems remain vulnerable to the unexpected.
Over time, the moth has become a shorthand for a particular engineering attitude. It suggests that failure is inevitable, that the cause may be mundane rather than mysterious, and that careful documentation is part of the work. The taped insect is not just a curiosity; it is a record of troubleshooting, a reminder that someone took the time to find the cause, fix the problem, and leave a trace for others to learn from.
What the logbook and Smithsonian records actually show
The primary physical evidence is a single page from the Harvard Mark II operating log. The page holds the moth itself, pressed flat and secured with tape. Next to it, in handwriting, appears the phrase beginning “fi,” which has been widely read as “first actual case of bug being found.” The National Museum of American History holds this logbook as a cataloged object and confirms that the incident occurred in 1947 during work on the Harvard Mark II and that a moth was found stuck in a component of the machine.
The Smithsonian record is the strongest contemporaneous documentation available. It establishes three core facts: the year, the machine, and the physical insect. No other primary document from 1947, such as Navy operational reports or personal correspondence from team members, has surfaced in the public record to add names of specific individuals present at the moment of discovery or to pin down the exact date and time. The object record’s authority comes from its proximity to the original artifact and from curatorial practices that emphasize careful description over speculation.
Scholarly work has tried to fill those gaps. Peggy Aldrich Kidwell authored an article titled “Stalking the Elusive Computer Bug,” published in IEEE Annals of the History of Computing. The Smithsonian Libraries entry lists this article, and the museum’s own object record cites it as supporting literature. Kidwell’s research focused on separating the documented facts of the moth incident from the mythology that grew around it, particularly the widespread but loosely sourced claim that Grace Hopper personally found the insect and invented the term “bug” on the spot.
The logbook annotation itself is telling. The phrase “first actual case of bug being found” uses the word “bug” as though readers would already know what it meant. The writers were not introducing new jargon. They were making a joke: for once, the “bug” was a literal bug. That self-aware humor only works if the term was already standard vocabulary among the people writing in the log. This internal evidence supports the broader historical record showing that “bug” predated computing by many decades and was part of an existing engineering slang that migrated naturally into the digital era.
Because the original page is preserved, historians can point to the exact configuration of tape, insect, and handwriting as a snapshot of working practice in a 1940s computer lab. The log is not a polished report; it is a working document, created in the middle of troubleshooting. That context matters when interpreting the note’s tone and intention. It reads less like a formal declaration and more like an in-joke shared among colleagues who were used to long hours spent coaxing experimental machines into reliable operation.
Grace Hopper’s role and the gaps that remain
Grace Hopper is the name most frequently attached to the moth story in popular retellings. She served as a Navy officer and worked on early Harvard computers, and she told the story in lectures and interviews for years. Her accounts helped spread the anecdote far beyond the small community of early computer engineers. But the logbook itself does not name her or anyone else as the person who found the moth. Kidwell’s research, cited by the Smithsonian, specifically aimed to disentangle the verified record from later embellishments, including questions about Hopper’s direct involvement in the discovery.
Several questions remain open. No primary Navy or Harvard operational log confirming the exact date, time, and personnel present during the relay incident has been published. Direct statements from Hopper or other team members written in 1947, rather than recalled years later, have not appeared in the accessible archival record. The full verbatim text of the logbook page beyond the single quoted phrase has not been widely transcribed or subjected to formal handwriting analysis that would identify the author of the note.
These gaps matter because the story is often told with a confidence that exceeds what the evidence supports. The moth is real. The logbook is real. The machine was the Harvard Mark II, and the year was 1947. Beyond those facts, much of what circulates is reconstruction from memory, shaped by decades of retelling. Assigning precise roles to specific individuals, or treating the episode as the birth of the word “bug,” goes beyond what the surviving documents can bear.
At the same time, the persistence of the Hopper-centered version illustrates how personal narratives can fuse with technical history. Hopper’s later prominence as a computing pioneer made her a compelling focal point for the anecdote, even if the archival record does not confirm that she was the one who pulled the moth from the relay. The tension between the tidy, character-driven story and the sparse, fragmentary documentation is itself a reminder of how easily legends grow around early technology.
For historians and engineers alike, the lesson is not to discard the moth story, but to treat it with appropriate caution. It remains a powerful illustration of how language, humor, and material artifacts interact in technical communities. Yet it also shows the importance of returning to primary sources, acknowledging uncertainty, and distinguishing between what is known and what is merely appealing. The taped insect in the logbook will continue to attract attention, but its real value lies in how it encourages a more careful, documented understanding of computing’s early years.
More from Morning Overview
*This article was researched with the help of AI, with human editors creating the final content.