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
GCSE Computer Science revision resources

Share this article

James Woodhouse

Reviewer: James Woodhouse

Expertise: Computer Science & English Subject Lead

James graduated from the University of Sunderland with a degree in ICT and Computing education. He has over 14 years of experience both teaching and leading in Computer Science, specialising in teaching GCSE and A-level. James has held various leadership roles, including Head of Computer Science and coordinator positions for Key Stage 3 and Key Stage 4. James has a keen interest in networking security and technologies aimed at preventing security breaches.

The examiner written revision resources that improve your grades 2x.

Join now