Fact Finder - Technology and Inventions
Discovery of the First Computer Bug
You probably know that a moth caused the first computer bug, but there's more to the story. The moth lodged in Relay #70 of the Harvard Mark II in 1947, and the engineers who documented it were actually cracking a pun — "bug" was already engineering slang for malfunctions. Grace Hopper didn't even write that famous logbook entry. If these surprising details have caught your attention, there's plenty more waiting for you below.
Key Takeaways
- The first computer bug was an actual moth found lodged in Relay #70, Panel F of the Harvard Mark II computer in 1947.
- The moth caused a short circuit that halted the entire room-sized computer, and engineers taped it into their logbook as documentation.
- Grace Hopper did not write the famous logbook entry; handwriting analysis suggests Bill Burke or Robert Campbell as possible authors.
- The term "bug" predates computing, used by Thomas Edison in 1878 and adopted in mainstream engineering by the mid-1800s.
- The logbook entry humorously noted finding an "actual" bug, a clever pun since engineers already used "bug" as slang for defects.
The Day a Moth Shut Down a Computer: and Made History
On September 9, 1947, at 15:45 hours, engineers working on Harvard University's Mark II computer discovered something unusual: a moth trapped between the points of Relay #70, Panel F, had shut the machine down. The team taped the insect directly into the logbook, noting it as the "first actual case of bug being found."
You mightn't realize the surprising impact this moment had — engineers already used "bug" as slang for technical problems, making their notation a clever nod to finding a literal one. That single logbook entry, now preserved at the Smithsonian Institution's National Museum of American History, cemented the lasting legacy of the term "bug" within computing culture, transforming a piece of everyday engineering slang into the universal language of programmers worldwide. In fact, Thomas Edison had already used the word "bug" to describe a technical fault in a letter written as far back as 1878, long before computers even existed.
It is worth noting that the moth found in the Mark II was technically not a bug at all — belonging to the insect order Lepidoptera, not Hemiptera, which is the only group that entomologists formally classify as true bugs.
The Moth, the Relay, and What the Engineers Actually Found
When the engineers finally traced the Harvard Mark II's sudden failure on September 9, 1947, they found something almost absurd: a moth wedged between the contact points of Relay #70, Panel F.
You'd think a five-ton machine would be immune to something so small, but the machine's vulnerability was real. The relay's exposed contact points gave the moth just enough space to lodge itself and cause a short circuit that halted everything.
This wasn't a freak accident either. The Mark II's warm internal components regularly attracted insects, making insect intrusion challenges a genuine operational concern. A single moth had fundamentally defeated an entire room-sized computer. The engineers removed it, taped it into the logbook, and got back to work.
The incident contributed to a cultural shift in computing, pushing engineers toward more systematic approaches to testing and quality assurance. This moment helped spark debugging culture, fostering collaboration and a meticulous attention to detail that would define the tech industry for decades to come. The logbook with the taped moth was preserved and is today part of the Smithsonian collection, serving as a historical artifact documenting the origins of the term "bug."
"Bug" Was Already an Engineering Term Before 1947
The moth taped into that logbook didn't invent a word—engineers had been using "bug" to describe mechanical defects for decades before Grace Hopper's team ever powered up the Harvard Mark II. Thomas Edison used it in an 1878 letter describing a telephone apparatus malfunction, predating the Harvard incident by nearly 70 years.
The cultural history of "bug" term actually stretches further, rooted in Middle English bugge, meaning a frightening creature. That metaphor naturally migrated toward small, disruptive mechanical nuisances. Early mainstream engineering adoption was well underway by the mid-1800s, and by 1931, a pinball manufacturer was already advertising "NO BUGS IN THIS GAME!"—proof that the public recognized the term without needing an explanation. The moth just gave an old word a memorable story. The term has since become so universally understood that today people of all ages, from children to grandparents, use "bug" instinctively when referring to a software defect.
Interestingly, the term's crossover into computing culture was already taking shape before the Harvard Mark II incident, as a 1944 Isaac Asimov short story contains the first recorded use of "bug" in direct relation to a computer.
Who Really Wrote That Famous Computer Bug Logbook Entry?
Grace Hopper didn't write that famous logbook entry—and the Smithsonian's own National Museum of American History acknowledges it. The questionable logbook authorship has puzzled historians for decades, with handwriting analysis confirming the annotation doesn't match Hopper's known writing samples.
So who actually wrote it? The disputed discovery details point toward Bill Burke, a Mark II operator. Both Gene Gleirsner and Ralph Niemann recall Burke as the person who found the moth and taped it into the logbook. Meanwhile, physicist Robert Campbell maintained detailed logbook records for the team, making him another possible candidate.
What you're really seeing with Hopper's connection isn't discovery—it's publicity. She made the incident famous through decades of public lectures, which ultimately overshadowed whoever actually made the original notation. Hopper was already an early programmer of the Harvard Mark I, giving her the credibility and platform to make the story stick in public memory. It's worth noting that the claim Hopper invented the term "bug" is false computer folklore, as the word was already used to describe operational problems in machinery long before computers existed.
The Pun Hidden Inside "First Actual Case of a Bug Being Found"
Hidden inside that logbook entry is a clever pun that most people miss entirely. When the operators wrote "first actual case of a bug being found," they emphasized "actual" deliberately. The team already knew "bug" as standard engineering slang for technical defects, so discovering a literal moth causing a malfunction was genuinely funny to them.
That emphasis on "actual" represents concealed engineering humor at its finest. They weren't announcing new terminology — they were joking that this time the bug was real and physical rather than abstract. You can picture Bill Burke and the team smirking while taping that moth directly onto the page. The incident occurred at Harvard's Mark II computer, where the moth was found stuck in one of the machine's components.
The technical pun's enduring legacy persists because that single clever phrase transformed familiar engineering slang into an unforgettable moment that defined computing culture forever. Grace Hopper was present during the incident and later made this story famous, ensuring the pun would be appreciated by generations of programmers to come.
Grace Hopper's True Role in the First Computer Bug Story
Although Grace Hopper's name is most closely tied to the first computer bug story, the actual discovery was a team effort. Multiple crew members worked together to locate and remove the moth from Relay #70 Panel F of the Harvard Mark II computer. The logbook that documented the find may not have even been Hopper's own.
Where Hopper's contribution to popularization truly shines is in how she and her team spread the terminology. Her team's collaborative approach to documenting the incident humorously and precisely helped cement "bug" and "debugging" into computing's permanent vocabulary. The term already existed in engineering circles, but their careful, witty documentation brought it into mainstream computing language. You can credit Hopper less for the discovery itself and more for making the story stick. Before her work on the Mark II, Hopper had graduated first in class from Naval Reserve Midshipmen's School, demonstrating the disciplined excellence she would carry into her computing career.
The original moth and logbook page are preserved at the Smithsonian's Museum of American History in Washington, D.C., offering visitors a tangible connection to this pivotal moment in computing history.
Where the Original Computer Bug Moth Is Preserved Today
Few artifacts in computing history are as tangible and well-traveled as the original computer bug. If you want to see it today, head to the Smithsonian Institution's National Museum of American History in Washington, D.C. The moth, still taped to the logbook entry dated September 9, 1947, sits within the museum's permanent computing history collection.
The museum's preservation efforts have kept both the specimen and its handwritten caption—"first actual case of bug being found"—remarkably intact since the logbook's 1988 discovery at the Naval Surface Warfare Center in Dahlgren, Virginia. Regarding the specimen's authentication details, the Smithsonian openly acknowledges that the logbook "was probably not Hopper's," adding important historical context. You can view the artifact as either a researcher or a general visitor.
The moth was originally found trapped between points at Relay #70, Panel F of the Mark II Aiken Relay Calculator, making its discovery site a precisely documented moment in computing history.
How the 1947 Incident Cemented "Debug" in Computing Vocabulary
When engineers taped that dead moth into the Harvard Mark II's logbook on September 9, 1947, they weren't coining a new term—they were reinforcing one. "Bug" had already circulated through electrical and mechanical engineering for decades. The logbook's wording—"first actual case of a bug being found"—confirms they were cracking a joke, not making a discovery.
The incident did accomplish was give abstract technical language a vivid, physical story. Grace Hopper's public lectures amplified that story, accelerating the broader industry embracement of "bug" and "debug" as standard computing vocabulary. You can trace the lasting computing culture impact directly to how memorable that taped moth made the terminology. Without that tangible image, the words might've remained obscure jargon rather than universal programmer language. Thomas Edison used the term "bug" in letters as far back as 1878, referring to it as a little fault in his electrical work.