What Is a Bug

What are the different types of software bugs?

Software bugs include functional, logic, syntax, performance, security, compatibility and concurrency bugs. Learn what each type means, with simple examples.

On this page
  1. The short answer
  2. Bugs grouped by what goes wrong
  3. Bugs grouped by when they appear
  4. Bugs grouped by severity
  5. Why classifying bugs is useful

The short answer

Software bugs are usually grouped by what goes wrong. The most common types are:

  • Functional bugs: a feature doesn’t work as intended.
  • Logic bugs: the program runs but makes the wrong decisions or gives wrong answers.
  • Syntax errors: code breaks the rules of the programming language.
  • Runtime errors: the program fails while it’s running, often by crashing.
  • Calculation bugs: math, rounding or formulas are wrong.
  • Performance bugs: the software is slow, freezes or uses too many resources.
  • Security bugs: flaws that could expose data or allow unauthorized access.
  • Compatibility bugs: the software fails on certain devices, browsers or systems.
  • Usability and interface bugs: layout, design or workflow problems that get in the way.
  • Concurrency bugs: problems caused by several things happening at once.

Bugs can also be grouped by when they show up (such as regression bugs) and by severity (from critical to minor). There’s no single official list; different teams and textbooks use slightly different names, and one bug can fit several categories. The sections below explain each type with simple examples.

Bugs grouped by what goes wrong

Functional bugs

A functional bug means part of the software doesn’t do what its requirements say it should. Examples include a “Save” button that doesn’t save, a search box that returns nothing for valid queries, or a password reset email that never arrives. This is the broadest category, and many other types overlap with it.

Logic bugs

A logic bug happens when code runs without crashing but follows the wrong reasoning. The program does exactly what it was told; the instructions were just wrong. A shopping cart that applies a discount twice, or a scheduling app that treats noon as midnight, are typical examples. Logic bugs can be hard to spot because nothing obviously breaks.

Syntax errors

A syntax error is code that breaks the grammar of the programming language, such as a missing bracket, a misspelled keyword or a missing quotation mark. In compiled languages, these are usually caught before the program can run. In interpreted languages, they may stop a script as soon as it reaches the faulty line. They’re generally easy to fix once found.

Runtime errors

Runtime errors happen while the program is running. Common examples are trying to use data that doesn’t exist (often called a null reference), dividing by zero, or trying to open a file that isn’t there. They often cause crashes or error messages and may only occur with certain inputs.

Calculation and data bugs

These involve wrong numbers or wrong data. Causes include incorrect formulas, rounding problems, converting between units or data types incorrectly, or saving data in the wrong format. In financial or scientific software, even a small calculation bug can have serious effects, so these areas are usually tested carefully.

Boundary and off-by-one errors

Many bugs hide at the edges of allowed values. An off-by-one error happens when a loop or range runs one step too many or too few, such as a list that skips its last item. Boundary bugs also show up when software handles the minimum, maximum or empty values badly, for example a form that rejects a 100-character name when the limit is supposed to be 100.

Performance bugs

Performance bugs make software slower or heavier than it should be. Signs include long loading times, a frozen interface, excessive battery drain or heavy server load. They often only appear with large amounts of data or many users at once, so they can slip past basic testing.

Memory leaks

A memory leak happens when a program keeps reserving memory but doesn’t release it when it’s done. Over time, the program uses more and more memory, slows down and may eventually crash. Leaks are a common reason apps get sluggish after running for a long time and recover after a restart.

Concurrency bugs

Concurrency bugs occur when several processes or threads run at the same time and interfere with each other. A race condition, for example, happens when the result depends on which operation finishes first, such as two people booking the last seat on a flight at the same moment and both getting a confirmation. A deadlock happens when two processes each wait for the other, so neither can continue. These bugs are notoriously hard to reproduce because they depend on timing.

Security bugs

Security bugs, often called vulnerabilities, are flaws that could let someone do something they shouldn’t, such as view other users’ data, bypass a login or run their own code on a system. Common examples include weak input checking, broken access controls and mishandled passwords. These are usually treated as high priority even when the bug itself seems small.

Compatibility bugs

A compatibility bug means the software works in one environment but not another. A website might display correctly in one browser but break in another, or an app might crash on an older phone or a new operating system update. Teams often test across a range of devices and versions to catch these.

Usability and interface bugs

These are problems with how the software looks or feels to use. Examples include text that overlaps or gets cut off, buttons too small to tap, confusing error messages, or a workflow that takes far more steps than necessary. Some teams separate cosmetic bugs (purely visual issues) from usability bugs (issues that make the product harder to use).

Integration bugs

Integration bugs appear when separate parts of a system, or separate systems, don’t work together correctly. Each part may work fine on its own, but data is passed in the wrong format, an external service responds differently than expected, or an update to one component breaks another.

Localization bugs

Software used in several countries or languages can have bugs specific to a region, such as untranslated text, dates or currencies shown in the wrong format, or layouts that break with longer words or right-to-left scripts.

Bugs grouped by when they appear

Regression bugs

A regression bug is a problem in something that used to work, introduced by a later change. For example, fixing the checkout page might accidentally break the login page. Teams use regression testing, often automated, to rerun older tests after each change and catch these early.

Intermittent bugs

Some bugs only happen occasionally, and the same steps may work fine most of the time. These are sometimes called intermittent or flaky bugs. Timing issues, network conditions and concurrency problems are common causes. Because they’re hard to reproduce, they’re often described with words like “glitch”; our article on what is a bug vs glitch looks at how those terms differ.

Bugs grouped by severity

Many teams also classify bugs by how much harm they cause. Labels vary, but a common scale looks like this:

Severity What it means Example
Critical System crash, data loss, security breach or a core feature fully blocked App crashes every time a user tries to pay
High (major) Important feature broken, possibly with a workaround Search fails, but users can still browse categories
Medium Noticeable problem with limited impact A filter ignores one option
Low (minor) Cosmetic or very small issue A typo or misaligned icon

Severity is usually paired with priority, which reflects how soon the bug should be fixed. If you’re reporting an issue, our guide on how to write a bug report in software testing explains how to set both.

Why classifying bugs is useful

Putting bugs into categories isn’t just paperwork. It helps teams:

  • Route issues to the right people, such as sending security bugs to a security specialist
  • Prioritize work by focusing on the most damaging problems first
  • Spot patterns, such as a rise in compatibility bugs after a new device launch
  • Improve testing by adding checks for the kinds of bugs that keep recurring

The exact names matter less than using them consistently within a team. For a wider look at the word itself, including its use for insects, see our guide to what is bug and its types.

The complete guide to what is a bug

What Is a Bug and What Are Its Types?
Read the guide

Keep exploring

Guides from other topics

All topics →