Bugs

What are Bugs?

Bugs are software flaws, also called defects, that produce wrong results, crashes, broken layouts, security holes or slowness. They can originate in requirements, design, code, configuration or interactions between systems.

Updated November 2026 · 3 min read


A bug is a flaw in software that makes it behave differently from what was intended: a wrong result, a crash, a broken layout, a security hole or a performance problem. Bugs come from mistakes in requirements, design, code, configuration or the interaction between systems. Every software product has them; what separates good teams is how quickly they find, prioritize and fix the ones that matter.

The word predates computing. Engineers used "bug" for faults in machinery in the 19th century, including Thomas Edison. A well-known computing example is a 1947 logbook entry from the Harvard Mark II team, which taped in a moth found in a relay with the note "First actual case of bug being found," a joke that only works because the term was already in use.

"Bug" and "defect" are usually used interchangeably. Testing standards such as the ISTQB glossary draw a finer line: an error is the human mistake, a defect (or bug) is the resulting flaw in the code or document, and a failure is the wrong behavior a user actually sees.

Common types of bugs

  • Functional bugs: a feature does not do what the requirements say, such as a discount applied twice.
  • UI and usability bugs: broken layouts, unreadable text, controls that do not respond.
  • Performance bugs: slow pages, memory leaks, timeouts under load.
  • Security bugs: flaws that allow unauthorized access or data exposure.
  • Compatibility bugs: problems on specific browsers, devices or operating system versions.
  • Data bugs: incorrect, lost or corrupted data, often the most damaging because they can spread before anyone notices.
  • Regressions: something that used to work breaks after a change.

Bug severity vs. priority

Teams often rate bugs on two separate scales. Severity describes how bad the impact is; priority describes how soon it should be fixed. They usually line up but not always: a typo in the company name on the login page is low severity but high priority, while a crash in a rarely used admin export may be high severity but lower priority.

SeverityTypical definitionExample
CriticalSystem down, data loss or security breach; no workaroundCustomers cannot log in
MajorA core function fails for many users; workaround is difficultInvoices export with wrong totals
MinorFunction impaired, easy workaroundSort order resets after refresh
TrivialCosmetic, no functional impactMisaligned icon

What is the bug lifecycle?

  1. Reported: by a customer, tester, monitoring alert or automated test, ideally with steps to reproduce, expected and actual results and environment details.
  2. Triaged: confirmed, deduplicated, given severity and priority, and assigned.
  3. Fixed: a developer finds the root cause and changes the code, ideally adding a test that would have caught it.
  4. Verified: someone other than the developer confirms the fix and checks for side effects.
  5. Closed and communicated: the reporter and affected customers are told.

Bugs may also be marked "won't fix," "cannot reproduce" or "works as designed." Those decisions should be recorded with a reason. Most teams manage this flow in an issue tracking system.

Worked example: A triage week

Consider a hypothetical SaaS team that receives 60 bug reports in a week. Triage finds that 18 are duplicates and 7 are feature requests or "works as designed," leaving 35 distinct bugs: 1 critical, 6 major, 16 minor and 12 trivial.

The critical bug, a failed payment retry, is fixed the same day as a hotfix. The 6 major bugs go into the current sprint. Of the 28 minor and trivial bugs, the team schedules the 8 that affect the most customers and adds the rest to the backlog with a review date. The team also tracks escaped defects (bugs found in production rather than before release): 9 of the 35 came from the last release, up from 4 the release before, which prompts a review of test coverage in the changed areas.

Common pitfalls

  • Vague bug reports. "It's broken" costs developers hours. Use a template with reproduction steps and environment.
  • An ever-growing backlog. Hundreds of old minor bugs hide the important ones. Close stale bugs that nobody will fix.
  • Fixing symptoms only. Without root cause analysis the same bug returns in another form.
  • No regression test. Every fixed bug is a chance to add a test that keeps it fixed.
  • Treating all bugs as more urgent than features. Priority should reflect customer and business impact, not the label.

Bug handling connects to quality assurance and backlog refinement. Severe production bugs are handled through incident management, and recurring bugs often point to technical debt.

Frequently asked questions

What is the difference between bug severity and priority?

Severity describes how serious a bug's impact is, from the most severe failures, such as customers being unable to log in down to trivial cosmetic issues. Priority describes how soon it should be fixed. They usually align but not always: a typo in the company name on the login page is low severity yet high priority, because so many people see it.

What is the difference between a bug, an error and a failure?

In everyday use, bug and defect mean the same thing. Testing standards such as the ISTQB glossary separate three terms: an error is the human mistake, a defect or bug is the resulting flaw in code or a document, and a failure is the incorrect behavior a user actually sees when that flaw is triggered.

How should a team triage bug reports?

Confirm each report can be reproduced, remove duplicates and separate out feature requests or behavior that works as designed. Assign severity and priority to the rest, then route them: top-severity bugs as same-day fixes, major bugs into the current sprint, and minor ones scheduled by customer impact or added to the backlog with a review date. Record reasons for won't-fix decisions.