Logical error - GCSE Computer Science Definition
Reviewed by: James Woodhouse
Published
A logical error in computer programming is a mistake in a program's code that causes it to behave incorrectly or produce the wrong outcome, even though it doesn't crash the program or stop it from running. Unlike syntax errors, which are mistakes in the code's grammar, logical errors occur when the programmer writes code that doesn't do what they intended. For example, if you are supposed to add two numbers together but accidentally multiply them instead, that's a logical error. These errors can be tricky to find because the program still runs, but it doesn't do what you expect it to. Debugging, or the process of finding and fixing these errors, is an important skill for programmers to learn.
Examiner-written GCSE Computer Science revision resources that improve your grades 2x
- Written by expert teachers and examiners
- Aligned to exam specifications
- Everything you need to know, and nothing you don’t

Share this article