One of the First Computer Bugs Was an Actual Bug
You might think computer "bugs" are just annoying software problems, but the term has a fascinating origin story. On September 9, 1947, engineers at Harvard University found an actual moth trapped inside their Mark II computer. The insect had wedged itself between relay contacts, causing the system to malfunction. This real bug led to one of computing's most famous terms – and there's much more to uncover about this pivotal moment in tech history.
The Origins of "Bug" in Engineering

While many people associate the term "bug" with computer problems today, its engineering roots stretch back to the 1870s. You might be surprised to learn that Thomas Edison used this engineering terminology in an 1878 letter about his inventions, referring to "little faults and difficulties" he encountered. Edison even created a bug trap as a solution for unexpected telegraph issues.
The historical significance of "bug" in engineering became clear well before computers existed. The term evolved from Middle English "bugge," which originally meant "monster." During World War II, military personnel commonly referred to equipment problems as mechanical bugs.
By the 1900s, engineers commonly used it to describe technical problems in their work. You'll find early examples across various industries – from pinball machines to aircraft engines.
The word "debug" also emerged in engineering contexts, with the Oxford English Dictionary noting its use with aircraft engines by 1945.
The Harvard Mark II Moth Discovery
A famous moth made computer history on September 9, 1947, when Harvard's technical team found it trapped between relay contacts in the massive Mark II computer.
The incident occurred at 3:45 PM in Panel F, Relay 70 of the room-sized machine that weighed 25 tons and filled 4,000 square feet.
Engineers had been using the term bugs in machines long before this discovery, dating back to the 1800s.
You'll find it interesting that moth behavior played a key role – these insects were naturally drawn to the warmth of the early computers.
The relay technology used in the Mark II made it particularly vulnerable to this type of interference.
The team carefully removed the moth and taped it into their logbook, noting it as the "first actual case of bug being found."
While often attributed to Grace Hopper, the handwriting doesn't match hers in the famous logbook entry.
This discovery helped popularize the term "debugging" that you still hear in computing today.
Grace Hopper and the Computing Team

The remarkable moth discovery led directly to one of computing's most influential pioneers – Grace Hopper. As part of the Bureau of Ships Computation Project at Harvard, Hopper's leadership helped shape early computer development.
You'll find her innovative collaboration techniques throughout the team's groundbreaking work on the Mark I computer. While working with Howard Aiken, she wrote a thorough 500-page manual for operating the Mark I. She demonstrated exceptional mathematical ability from her earliest academic years.
Her team focused on computing rocket trajectories and creating range tables for anti-aircraft guns during World War II. After leaving Vassar College in 1943, she joined the Navy WAVES program to serve her country. Hopper's approach to teamwork made complex computing more accessible to everyone involved.
As one of the first three computer programmers, she fostered an environment where innovation thrived. Her collaborative spirit led to major developments like the A-0 compiler and COBOL programming language.
The Historic Logbook Entry
On September 9, 1947, at precisely 3:45 PM, scientists made a remarkable discovery inside the Harvard Mark II computer.
While investigating a malfunction in relay #70 Panel F, they found an actual moth trapped inside the machine. The logbook details show how carefully they documented this unusual finding. Engineers had been using the term mechanical failures long before this incident.
You'll find the bug documentation particularly fascinating. The team taped the real moth onto the logbook page and wrote, "First actual case of bug being found." Though often attributed to Grace Hopper, the log book entry was likely written by another team member.
They couldn't help but add a touch of humor by emphasizing the literal meaning of a computer "bug." The evidence still exists today – you can see the preserved moth and the original entry at the Smithsonian Institution, where it serves as a tangible piece of computing history.
Impact on Technical Language

Discovering that real moth sparked a lasting transformation in how we talk about computer problems.
You'll find that the incident helped establish "bug" as standard bug terminology across the computing world, especially after Grace Hopper shared the story in her lectures.
The term actually dates back to early 1800s Edison who first used it to describe technical problems.
The incident occurred in September 1947 when a moth disrupted operations of the Harvard Mark II Calculator.
As computers evolved, so did the software lexicon.
You'll notice how "bug" shifted from meaning just physical defects to describing all kinds of software issues.
New terms emerged to help developers be more specific – from "glitches" and "memory leaks" to "race conditions."
You've probably heard the popular phrase "It's not a bug, it's a feature," which shows how deeply this vocabulary has shaped tech culture.
Even debugging tools adopted the insect theme, with names like "Spider debugger" becoming common in development environments.
Common Myths and Historical Facts
Popular myths about computer bugs often trace back to a famous 1947 incident involving a moth.
While Grace Hopper's team did find a moth in the Harvard Mark II computer, the term "bug" already existed in engineering history and computer terminology. The log entry occurred precisely at 3:45 PM that September day.
Here's what you mightn't know about bugs in computing:
- Engineers used "bug" to describe technical problems since the 1870s, with Thomas Edison using it in an 1878 letter.
- By 1924, telephone industry workers commonly used "bug" for technical issues.
- The term "debugging" appeared in aircraft maintenance before computers, around 1945.
- The moth incident wasn't the origin of "bug" – it just helped popularize an existing term.
The moth story makes for a great anecdote, but it's really just a clever play on a word that engineers had used for decades. The team carefully preserved this moment by taping the moth into the computer's logbook, creating a unique historical record.
