Why Are They Called Bugs? From Ghosts to Software

The word “bug” originally had nothing to do with insects. It started as a word for ghosts and monsters, then slowly crawled its way into describing the six-legged creatures we swat at today. Along the way, it picked up even more meanings, from mechanical glitches to computer errors to hidden microphones. Each of those meanings traces back, directly or indirectly, to the same strange linguistic root.

Bugs Were Ghosts Before They Were Insects

In Middle English, the word “bugge” meant a hobgoblin, a bogeyman, or a scarecrow. A passage from a 14th-century Bible translation uses it to describe a figure set up in a gourd patch to frighten birds: essentially a raggedy scarecrow that “keepeth nothing.” The word carried a sense of dread, something lurking and unsettling. It’s the same root that gave us “bugbear” and “bogey.”

It wasn’t until the 1600s that “bug” shed its supernatural meaning and started referring to actual creepy crawlies. The connection makes intuitive sense. Small creatures that appear in the dark, hide in beds, and provoke an instinctive shudder aren’t far removed from the things that go bump in the night. The word essentially transferred from imaginary terrors to real ones.

What Counts as a “True Bug” in Science

Entomologists use “bug” in a much narrower way than the rest of us. In scientific terms, true bugs belong to a specific group defined by two key features: piercing and sucking mouthparts shaped into a beak-like structure, and front wings that are partly thickened and partly membranous. Bed bugs, stink bugs, assassin bugs, and water striders all qualify. These insects feed by puncturing a surface (plant tissue, animal skin) and drawing out liquid, whether that’s plant sap or blood.

A ladybug is not actually a bug by this definition. It’s a beetle. A butterfly isn’t a bug either. Neither are ants, flies, or mosquitoes. In everyday English, though, “bug” became a catch-all for virtually anything small that crawls, and that looser usage is now so deeply established that even scientists don’t bother correcting it outside of formal writing.

How “Bug” Jumped to Machines

Thomas Edison appears to be the person who turned “bug” into a word for technical problems. He first ran into persistent, hard-to-find malfunctions in 1873 while developing a system to send four separate telegraph messages over a single wire. By 1876, the word “bug” was showing up in his notebooks to describe these issues.

Edison clearly enjoyed the metaphor. In an 1878 letter to the president of Western Union, he joked that the bug he’d found in his telephone equipment was “of the genus ‘callbellum,'” playfully giving the glitch a fake Latin species name as if it were an actual insect. Later that year, writing to an associate, he described the broader experience of inventing: after the initial idea, “this thing gives out and then that,” and these little faults and difficulties, called “bugs,” require months of watching and labor before success or failure is reached.

The metaphor stuck because it captured something real about how malfunctions behave. Like insects, they’re small, they hide, they’re hard to find, and they multiply when you’re not looking.

The Famous Moth in the Computer

The most repeated story in computing history involves a literal bug. In 1947, engineers working on the Mark II computer at Harvard University found a moth stuck in one of the machine’s components. They taped the moth into their logbook and wrote next to it: “first actual case of bug being found.” The logbook is now held by the Smithsonian Institution.

The joke only works because “bug” was already an established term for technical glitches, thanks to Edison and the engineering culture that followed him. The engineers weren’t coining a new word. They were making a pun. The moth was the first time a “bug” in a machine turned out to be an actual bug. That distinction often gets lost in retellings, which tend to credit this moment as the origin of the computing term. It was really the origin of the best joke in debugging history.

Why “Bug” Keeps Spreading to New Meanings

The word’s journey from ghosts to insects to glitches follows a pattern. At each stage, “bug” describes something small, hidden, and annoying, something that disrupts normal life and is hard to get rid of. That core feeling is why the word proved so adaptable. A stomach bug is an invisible pathogen making you miserable. Bugging someone means being a persistent irritant. A bugged room has a tiny hidden device you can’t see.

English is full of words that drifted far from their origins, but few have traveled as widely as “bug.” A single word now covers medieval demons, bed-dwelling parasites, stink bugs on a window screen, software errors, stomach illnesses, and covert surveillance. The thread connecting all of them is the same uneasy feeling the Middle English “bugge” described six centuries ago: something small and unseen is causing trouble, and you’d really like it to stop.