← All articles
Tech history

The First Computer Bug Was a Real Bug

On September 9, 1947, a crushed moth stopped a Harvard computer. The story is real, though it did not invent the word bug.

November 20, 2026 · 4 min read · NodOpera

Picture a huge computer full of clicking relays that suddenly stops working. The technicians check everything and find something nobody expected: a dead moth.

A moth in the relay

It happened on September 9, 1947, at Harvard University in Cambridge, Massachusetts, in the United States. The machine was the Harvard Mark II, and it was run by a team of engineers and operators.

According to the Computer History Museum, a moth got caught between the contacts of a relay. A relay is a part that opens and closes an electrical circuit, like a switch. The insect jammed the relay and the machine failed. The exact spot was relay #70, Panel F.

This was not a programming error. It was a physical bug stuck inside a piece of metal, and that was enough to stop everything.

The note that became famous

The team taped the moth into the logbook, the notebook where the machine's activity was recorded. Beside it they wrote: “First actual case of bug being found.”

According to Atlas Obscura, the entry roughly reads: 15:45, Relay #70, Panel F, moth in relay.

Later, programmer Grace Hopper, who was on the Mark II team, gave many public lectures and helped make the story famous. Still, according to Computing History, she probably did not write that logbook entry herself. It is a good example of how a story grows each time it is retold.

The word bug was already around

Here is the twist many people miss. The word “bug” for a fault was already in use long before 1947. Computing History cites an 1878 letter in which Thomas Edison used it.

So Grace Hopper did not invent the word bug or the terms for fixing faults. What the moth gave us was a picture everyone remembers.

Where the moth is today

The logbook page is kept at the Smithsonian's National Museum of American History. If you plan a visit, check first whether it is on display, because it is not always out for the public to see.

The lesson still holds. We use computers, phones and networks every day, and one tiny fault can stop something big. It might be a bug, a virus or a forgotten update. The scale changes, but the idea stays the same.

What you can do today

You do not need to be a technician to protect your devices. These tips come from Mexican cybersecurity authorities:

  • Keep your phone and apps updated. The Policía Cibernética de Chihuahua recommends installing the latest versions of iOS and WhatsApp.
  • Turn on automatic updates so you do not have to rely on memory.
  • Turn on two-step verification and use long, different passwords for each account. The CDMX Policía Cibernética recommends this in a recent alert about malicious stickers and files.
  • Download apps only from official stores and check who the developer is.
  • Do not open suspicious stickers or files sent to you in chat, even if they look like they come from someone you know.
  • Check which devices are linked to your accounts and remove any you do not recognize.
  • Confirm any money request by phone, even when it comes from someone you know.
  • Back up your phone regularly, so a single failure does not take your photos with it.

Before you tap “remind me later” on a pending update, think of the moth: a tiny fault can stop a huge machine. Updating is the cheapest way to shut the door on today's bugs.

At NodOpera we explain technology clearly and offer free tools at nodopera.com, including a calculator to estimate what a system outage could cost you.

Try it freeWhat would a system outage cost you?Try the calculator → NextIP or analog cameras: choosing video surveillance for your business

Shall we talk about your case?

We reply within one business day. We serve businesses across Mexico, remotely and on-site.

WhatsApp +52 33 2248 8131Book a call[email protected]