The short answer
A bug is an underlying flaw, usually a mistake in a program’s code or design, that causes it to behave incorrectly. A glitch is a malfunction you notice, usually brief or temporary, and often without an obvious cause.
Put simply, a bug is the cause and a glitch is often the symptom. A bug in the code might show up as a glitch on screen, such as a flicker, a freeze or a character falling through the floor in a game. But not every glitch comes from a bug, since a power surge, a weak network signal or a hardware fault can cause one too.
In casual conversation, people use the words almost interchangeably, and that’s fine. The distinction matters mostly in technical settings like software testing.
What is a bug?
In software, a bug is an error, flaw or fault that makes a program produce an incorrect or unexpected result. It usually traces back to something a person did, such as writing faulty logic, misunderstanding a requirement or overlooking an unusual situation.
Bugs tend to have a few features:
- They have a definite cause, even if it takes a while to find.
- They’re often reproducible. Following the same steps under the same conditions tends to trigger the same problem.
- They can be fixed by changing the code, design or configuration.
- They can be any size, from a typo on a screen to a crash that loses data.
Bugs come in many forms, including logic errors, performance problems and security holes. Our guide on what are the different types of software bugs goes through the main categories.
What is a glitch?
A glitch is a sudden, usually short-lived malfunction. The word describes what you experience, not necessarily why it happened. Typical glitches include:
- A screen that flickers or briefly shows garbled graphics
- Audio that skips or crackles
- An app that freezes for a moment, then recovers
- A video call that drops for a few seconds
- A game character briefly clipping through a wall
Glitches are often:
- Temporary, going away on their own or after a restart
- Hard to reproduce, appearing once and then not again
- Unexplained at first, since the user can’t see what caused them
- Caused by software or hardware, including loose connections, overheating or electrical interference
Bug vs. glitch at a glance
| Bug | Glitch | |
|---|---|---|
| What it refers to | An underlying flaw | A visible or noticeable malfunction |
| Typical cause | Error in code, design or configuration | A bug, hardware fault, signal problem or unknown cause |
| Duration | Persists until fixed | Often brief or temporary |
| Reproducibility | Often reproducible | Often hard to reproduce |
| Who usually uses the word | Developers and testers | Users, gamers and the general public |
| Fix | Change the code or design | May resolve on its own; if it keeps happening, find the cause |
Keep in mind that these are general patterns, not strict definitions. There’s no official standard separating the two words, and people use them in overlapping ways.
How the two are connected
The simplest way to think about it:
- Every bug is a potential source of glitches, but some bugs cause problems that aren’t glitchy at all, such as a report that’s always calculated wrong.
- Many glitches are caused by bugs, but some come from hardware, networks or the environment.
- An intermittent bug can feel like a glitch. Timing problems, such as race conditions, may only cause trouble occasionally, so users experience them as random glitches until someone tracks down the cause.
If you keep seeing the same glitch, it’s worth reporting. A good report, with notes on when and how often it happens, helps a developer figure out whether there’s a bug behind it. Our guide on how to write a bug report in software testing explains what to include.
How the words are used in video games
Gaming communities use both words, often with a slightly different flavor:
- “Glitch” often describes odd, visible behavior in a game: walking through walls, objects floating in the air or characters stretching strangely. Players sometimes use glitches on purpose, for example to skip parts of a level in speedrunning.
- “Bug” is more often used for problems that need fixing, such as crashes, broken quests or save files that won’t load, and it’s the word developers typically use in patch notes.
In practice, most game glitches are caused by bugs in the game’s code or physics. The difference is mostly in tone: “glitch” can sound playful or harmless, while “bug” sounds like a problem.
Where the words came from
Bug
Using “bug” for a technical fault goes back at least to the 1800s. Thomas Edison used the word in the late 1870s to describe faults and difficulties in his inventions. A well-known 1947 logbook entry from engineers working on the Harvard Mark II computer shows a moth taped to the page with the note “first actual case of bug being found.” That logbook is held by the Smithsonian’s National Museum of American History. The joke works because “bug” already meant a fault at the time; the moth didn’t create the term, but the story helped make it famous in computing.
The word is also, of course, a name for insects. Our broader guide to what is bug and its types covers both meanings.
Glitch
The origin of “glitch” is less certain. Major dictionaries generally date it to the mid-20th century, and some trace it to radio and electronics slang. One suggested source is a Yiddish word meaning a slippery place, though this hasn’t been confirmed. The word became better known after it was used in the early U.S. space program; astronaut John Glenn described it as astronaut slang in his 1962 book Into Orbit.
Which word should you use?
A simple rule of thumb:
- Use “bug” when you mean a specific, underlying flaw that needs fixing, especially when talking to developers or filing a report.
- Use “glitch” when you’re describing a brief, odd malfunction you noticed, especially if you don’t know the cause.
If you’re unsure, describing what actually happened, such as “the screen froze for about two seconds after I tapped Send,” is more useful than either word on its own.