The NOT Operation
Learn how the NOT operation flips true to false and false to true, and how to negate sentences correctly.
Intermediate20 min18 problems
Definition
The NOT operation (also called logical negation) takes one statement and flips its truth value: true becomes false, and false becomes true.
We write NOT using these symbols:
- (mathematical notation, read "not P")
- NOT P (written out)
- !P (programming)
Truth Table for NOT:
| T | F |
| F | T |
With 1 for true and 0 for false: NOT 1 = 0 and NOT 0 = 1. A handy trick is .
The key insight: unlike AND and OR, NOT needs only one input. A statement and its negation are never both true and never both false. Exactly one of them is true!
Try it now
If is true, what is ?
Interactive Visual
Truth Table
¬P
| P | ¬P |
|---|---|
| T | |
| F |
T= TrueF= False
Interactive Sandbox
Expression Calculator
Try these:
History
No calculations yet
Practice Problems
18 problemsProblem 1 of 18
Easy
If is true, what is ?
Glossary
- NOT operation
- A logical operation with one input that turns true into false and false into true
- Negation
- The mathematical name for the NOT operation, written
- Double negation
- Applying NOT twice, which gives back the original value:
- Inverter (NOT gate)
- An electronic part that outputs 0 when the input is 1 and outputs 1 when the input is 0
- De Morgan's laws
- Two rules that show how NOT moves into a bracket and swaps AND with OR
Formula Card
NOT rule
NOT always flips the truth value
NOT with 1 and 0
NOT 1 = 0 and NOT 0 = 1, handy for checking with a calculator
Double negation
Two NOTs cancel each other out
De Morgan's laws
NOT moves into the bracket and AND and OR swap places