Adding us as a Preferred Source tells Google you trust our content, so our articles show up more often in your Google Search, Discover feed, and AI Overviews.
verifiedCite
While every effort has been made to follow citation style rules, there may be some discrepancies. Please refer to the appropriate style manual or other sources if you have any questions.
Select Citation Style
Feedback
Corrections? Updates? Omissions? Let us know if you have suggestions to improve this article (requires login).
Thank you for your feedback

Our editors will review what you’ve submitted and determine whether to revise the article.

External Websites

On September 9, 1947, the Harvard Mark II, one of the earliest computers, encountered a bug. Quite literally.

People have used the term “bug” since the 19th century to describe mechanical problems. Thomas Edison wrote about a bug in the call apparatus of his telephone in a letter in 1878, and the Pall Mall Gazette ran a story in 1889 referencing Edison finding a bug in his phonograph. The term even appeared in the Supplement to the Oxford English Dictionary.

So when the Mark II began malfunctioning on that September day, the engineers working on it, including the legendary programmer and mathematician Grace Hopper, knew they were looking for a bug—they just didn’t realize it would be so literal.

Discover the fascinating events that shaped the world, straight from our editors.
By clicking “Sign Up”, you consent to the Britannica Privacy Policy and Terms of Use.
Fun Fact

The windows of the lab had no screens, and a plethora of insects came in each night, drawn by the computer’s warmth.

But finding the issue took more than sitting at a desk and running a troubleshooter, like we do today. Instead, the engineers had to walk to the physical location of the problem—somewhere in the 4,000 square feet of floor space the electromechanical computer took up.

About 3:45 that afternoon someone found the bug. It was a moth, stuck in Relay 70, Panel F. Each relay was a small mechanical switch, and anything interrupting the circuit was a major problem. Whoever found the insect taped it into their logbook, along with the note “First actual case of bug being found.” A popular story suggests that this person was Hopper, but it likely wasn’t: The book logging the moth was not written in her handwriting.

We may never know who this computing punster was, but the book and its offending insect are preserved at the Smithsonian National Museum of American History.

By the Numbers
  • 25 tons: Weight of the Mark II
  • ~13,000: Number of relays in the Mark II
  • 1,200: Decimal digits the Mark II could store
Also on This Day
  • 1776: The Second Continental Congress adopts the name “United States of America”
  • 1919: Police in Boston strike to demand the right to unionize
  • 2014: U2’s album Songs of Innocence automatically downloads to all iTunes users, sparking outrage