Updated: 05/02/2021 by Computer Hope

A bug is a general term used to describe any unexpected problem with hardware or software. For example, Grace Hopper logged and taped a moth bug in a log book that caused issues with the Mark II. The bug, which is shown below, was discovered in one of its components. Grace Hopper's moth is often considered the first use of the term bug. However, there are other earlier accounts of the term bug used to describe a problem with electrical circuits and hardware.


How is a bug fixed?

As complex as computers, hardware, and computer software is today, there is no such thing as bug-free software or hardware. When bugs are discovered, software bugs are fixed by running software patches, and resolvable hardware bugs are fixed with firmware updates and drivers. In the case of more serious hardware bugs, the resolution may be to replace the hardware device.

The time it takes to resolve a bug depends on its complexity, how many developers, and how much time they have. If you believe you've found a bug in a program or device, reporting the bug to the manufacturer is the best way of getting the bug resolved.

What is the difference between an error and a bug?

An error is a message shown to the user of a program to let them know something went wrong. A bug is a problem in the code that caused the error. See our error page for a full explanation and examples of computer errors.

Why doesn't a company fix the bug I'm encountering

To fix any software or hardware bug requires the company to hire a programmer capable of locating and correcting the code causing the bug. The following list is reasons why a company may not fix a bug or delay its fix.

  • The bug only affects a small percentage of people and is a low priority bug.
  • The bug cannot be replicated or located.
  • The fix for the bug will be released in a future version of the product.
  • The product was by one person or a small team that doesn't have the resources needed to fix.
  • The fix for the bug is too complicated or would need too many resources to fix it.
  • The product is EOL (end of life) or no longer supported.
  • The company is no longer in business.

What is buggy?

The term "buggy" is used to describe any software or service with several bugs.

Is a bug a virus?

No. A computer virus is software designed to be annoying or destructive. However, a bug is only a mistake in the code. For further information about viruses see our virus term page.

Bug bounty, Bugfairy, Bug tracking, Computer slang, Debug, Error, Exploit, Flaw, Glitch, Patch, Problem, Programming terms, Vulnerability, Y2K