Boolean algebra, named after mathematician George Boole, is the bedrock of all digital circuitry. It deals with variables that can only have two states: True (1) or False (0). When we consider two input variables, A and B, there are only four possible combinations of inputs: (0, 0), (0, 1), (1, 0), and (1, 1).
Since each of these four input combinations can result in either a 0 or a 1 as an output, the total number of unique Boolean functions possible is .
This article explores these 16 fundamental logical operations, categorized by their complexity and importance in digital design.
To understand the functions, we must first define the input possibilities.
| A | B |
|---|---|
| 0 | 0 |
| 0 | 1 |
| 1 | 0 |
| 1 | 1 |
The 16 functions can be grouped into several categories based on their output patterns, from the simplest constants to the most complex exclusive gates. Let represent the function’s output.
These functions ignore the inputs entirely and always produce the same output.
| Function Name | Expression | A=0, B=0 | A=0, B=1 | A=1, B=0 | A=1, B=1 | Description |
|---|---|---|---|---|---|---|
| Zero (FALSE) | 0 | 0 | 0 | 0 | Always outputs 0. | |
| One (TRUE) | 1 | 1 | 1 | 1 | Always outputs 1. |
These functions depend on only one of the inputs, either directly or inverted.
| Function Name | Expression | A=0, B=0 | A=0, B=1 | A=1, B=0 | A=1, B=1 | Description |
|---|---|---|---|---|---|---|
| Transfer A | 0 | 0 | 1 | 1 | Output is simply A. | |
| Transfer B | 0 | 1 | 0 | 1 | Output is simply B. | |
| NOT A | 1 | 1 | 0 | 0 | Output is the inverse of A. | |
| NOT B | 1 | 0 | 1 | 0 | Output is the inverse of B. |
These are the primary logic gates used universally in digital systems.
| Function Name | Expression | A=0, B=0 | A=0, B=1 | A=1, B=0 | A=1, B=1 | Common Gate |
|---|---|---|---|---|---|---|
| AND | 0 | 0 | 0 | 1 | A 1 only if A AND B are 1. | |
| OR | 0 | 1 | 1 | 1 | A 1 if A OR B (or both) is 1. | |
| NAND | 1 | 1 | 1 | 0 | The NOT-AND of A and B. (Universal Gate) | |
| NOR | 1 | 0 | 0 | 0 | The NOT-OR of A and B. (Universal Gate) |
These functions are critical for arithmetic circuits (like adders) and comparing inputs.
| Function Name | Expression | A=0, B=0 | A=0, B=1 | A=1, B=0 | A=1, B=1 | Description |
|---|---|---|---|---|---|---|
| XOR (Exclusive-OR) | 0 | 1 | 1 | 0 | A 1 if A and B are different. | |
| XNOR (Equivalence) | 1 | 0 | 0 | 1 | A 1 if A and B are the same. |
These functions are less common in general digital logic but play a role in advanced logic design and certain formal systems.
| Function Name | Expression | A=0, B=0 | A=0, B=1 | A=1, B=0 | A=1, B=1 | Description |
|---|---|---|---|---|---|---|
| A Implies B (Material Implication) | 1 | 1 | 0 | 1 | False only if A is 1 and B is 0. | |
| B Implies A | 1 | 0 | 1 | 1 | False only if B is 1 and A is 0. | |
| A NOT-Implies B | 0 | 0 | 1 | 0 | True only if A is 1 and B is 0. | |
| B NOT-Implies A | 0 | 1 | 0 | 0 | True only if A is 0 and B is 1. |
The most fascinating aspect of these 16 functions is that two are individually capable to construct all the others: the NAND gate and the NOR gate.
Because of this property, NAND and NOR gates are known as Universal Gates. A computer can be built entirely using only one type of gate, significantly simplifying the manufacturing process of integrated circuits.
This table consolidates all 16 functions based on the output for the four input combinations.
| F# | (0,0) | (0,1) | (1,0) | (1,1) | Function Name | Expression | Common Gate |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | Zero | (Constant) | ||
| 1 | 0 | 0 | 0 | NOR | NOR | ||
| 0 | 1 | 0 | 0 | B NOT-Implies A | |||
| 0 | 0 | 1 | 1 | Transfer A | |||
| 0 | 0 | 1 | 0 | A NOT-Implies B | |||
| 0 | 1 | 0 | 1 | Transfer B | |||
| 0 | 1 | 1 | 0 | XOR | XOR | ||
| 1 | 1 | 1 | 0 | NAND | NAND | ||
| 0 | 0 | 0 | 1 | AND | AND | ||
| 1 | 0 | 0 | 1 | XNOR | XNOR | ||
| 1 | 0 | 1 | 0 | NOT B | NOT | ||
| 1 | 0 | 1 | 1 | B Implies A | |||
| 1 | 1 | 0 | 0 | NOT A | NOT | ||
| 1 | 1 | 0 | 1 | A Implies B | |||
| 0 | 1 | 1 | 1 | OR | OR | ||
| 1 | 1 | 1 | 1 | One | (Constant) |
These 16 logical functions, derived from two simple binary inputs, form the complete vocabulary for all computational processes, demonstrating the incredible complexity that can be built from the simplest of foundations.
Get the curated offline edition of Kaue's Way of Lifeβa practical field guide to optimizing π Health, π° Wealth, β€οΈ Love, and π§ Meaning.
Get notified when I publish new essays, book summaries, and practical guides on living well. No spamβunsubscribe anytime.
Have a question, perspective, or suggestion? Share your thoughts below.
Updated on 2025 Nov 27.
DISCLAIMER: The content on this site is for informational and educational purposes only and does not constitute medical, psychological, financial, investment, tax, or legal advice. The ideas, curation, and opinions presented here are my own and do not represent those of my employer. Book, lecture, and article summaries are independent educational commentary and remain the intellectual property of their respective authors. AI tools may be used to assist with editing, formatting, and synthesis; while every effort is made to ensure accuracy, errors may occur. PRIVACY: This site uses third-party services for cookieless analytics (Google Analytics), optional newsletter subscriptions (Mailchimp), comments (Disqus), live chat (Tawk.to), and embedded media (YouTube), which may process visitor IP addresses and cookies in accordance with their respective privacy policies.