You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
The NOT gate is the simplest of all logic gates. It has a single input and a single output, and its job is to invert (reverse) whatever value it receives. If the input is 1, the output is 0. If the input is 0, the output is 1.
The NOT gate performs the Boolean operation of negation (also called inversion or complementation). It takes one input and produces the opposite value as its output.
Think of the NOT gate as a simple "flip" — it always gives you the opposite of what you put in.
The truth table for a NOT gate is the simplest of all logic gates because there is only one input:
| Input (A) | Output (¬A) |
|---|---|
| 0 | 1 |
| 1 | 0 |
The block view of the gate matches this truth table — a single input flowing through NOT produces the inverted output:
graph LR
A((A)) --> NOT["NOT"]
NOT --> Q((Q = NOT A))
The output column is labelled ¬A (read as "NOT A"). Some textbooks and exam papers use the notation A̅ (A with a bar over the top) instead of ¬A — both mean exactly the same thing.
The standard symbol for a NOT gate (used in both British and international standards) looks like a triangle pointing to the right with a small circle (called a bubble) at the output:
+-----\
A ----| >o---- Output (¬A)
+-----/
Key features of the NOT gate symbol:
The Boolean expression for a NOT gate is written as:
¬A or NOT A or A̅
All three notations are acceptable in GCSE exams, but ¬A is the most commonly used in AQA and OCR specifications.
If you see a Boolean expression like ¬B, it simply means "the opposite of B":
A good way to think about a NOT gate is as a light switch inverter:
This might seem backwards, but there are real-world examples of this — some security systems have a "normally closed" switch where the alarm is active (output = 1) when the switch is NOT pressed (input = 0), and the alarm deactivates (output = 0) when the switch IS pressed (input = 1).
In programming languages, the NOT operation is used to reverse a Boolean condition:
Python:
logged_in = False
if not logged_in:
print("Please log in.")
JavaScript:
let loggedIn = false;
if (!loggedIn) {
console.log("Please log in.");
}
In Python, the keyword is not. In many other languages (JavaScript, Java, C#), the symbol ! is used.
Applying NOT twice returns you to the original value:
¬(¬A) = A
| A | ¬A | ¬(¬A) |
|---|---|---|
| 0 | 1 | 0 |
| 1 | 0 | 1 |
This is called the double negation rule or the involution law. It is a useful simplification rule in Boolean algebra — if you see two NOT operations applied to the same variable, they cancel each other out.
In electronic circuits, a NOT gate is typically built from one or two transistors. When the input voltage is high (representing 1), the transistor configuration causes the output voltage to be low (representing 0), and vice versa.
NOT gates are also called inverters in electronics. They are among the most commonly used components in digital circuit design.
Common uses of NOT gates:
Exam Tip: The NOT gate is the only gate with a single input. If an exam question asks about a gate with one input, it must be a NOT gate. Remember the bubble on the symbol — this is the key identifier for inversion and also appears on NAND and NOR gate symbols.
Consider the expression ¬A ∧ B — read as "NOT A AND B". This is a classic combination tested at GCSE.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.