πŸ’‘ The Sixteen Faces of Logic: All Possible Boolean Functions with Two Inputs πŸ”—

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 24=162^4 = 16.

This article explores these 16 fundamental logical operations, categorized by their complexity and importance in digital design.

πŸ“‘ Table of Contents πŸ”—


πŸ”’ The Four Input Combinations πŸ”—

To understand the functions, we must first define the input possibilities.

AB
00
01
10
11

πŸš€ Categories of the 16 Functions πŸ”—

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 FF represent the function’s output.

βšͺ 1. Constant Functions (2 Functions) πŸ”—

These functions ignore the inputs entirely and always produce the same output.

Function NameExpressionA=0, B=0A=0, B=1A=1, B=0A=1, B=1Description
Zero (FALSE)F0=0F_0 = 00000Always outputs 0.
One (TRUE)F15=1F_{15} = 11111Always outputs 1.

πŸ”„ 2. Simple Transfer/Inversion Functions (4 Functions) πŸ”—

These functions depend on only one of the inputs, either directly or inverted.

Function NameExpressionA=0, B=0A=0, B=1A=1, B=0A=1, B=1Description
Transfer AF3=AF_3 = A0011Output is simply A.
Transfer BF5=BF_5 = B0101Output is simply B.
NOT AF12=AˉF_{12} = \bar{A}1100Output is the inverse of A.
NOT BF10=BˉF_{10} = \bar{B}1010Output is the inverse of B.

βš™οΈ 3. Basic Binary Operations (4 Functions) πŸ”—

These are the primary logic gates used universally in digital systems.

Function NameExpressionA=0, B=0A=0, B=1A=1, B=0A=1, B=1Common Gate
ANDF8=Aβ‹…BF_8 = A \cdot B0001A 1 only if A AND B are 1.
ORF14=A+BF_{14} = A + B0111A 1 if A OR B (or both) is 1.
NANDF7=Aβ‹…Bβ€ΎF_7 = \overline{A \cdot B}1110The NOT-AND of A and B. (Universal Gate)
NORF1=A+Bβ€ΎF_1 = \overline{A + B}1000The NOT-OR of A and B. (Universal Gate)

βš–οΈ 4. Exclusive Operations (2 Functions) πŸ”—

These functions are critical for arithmetic circuits (like adders) and comparing inputs.

Function NameExpressionA=0, B=0A=0, B=1A=1, B=0A=1, B=1Description
XOR (Exclusive-OR)F6=AβŠ•BF_6 = A \oplus B0110A 1 if A and B are different.
XNOR (Equivalence)F9=AβŠ•Bβ€ΎF_9 = \overline{A \oplus B}1001A 1 if A and B are the same.

➑️ 5. Conditional and Inverse Conditional Functions (4 Functions) πŸ”—

These functions are less common in general digital logic but play a role in advanced logic design and certain formal systems.

Function NameExpressionA=0, B=0A=0, B=1A=1, B=0A=1, B=1Description
A Implies B (Material Implication)F13=Aˉ+BF_{13} = \bar{A} + B1101False only if A is 1 and B is 0.
B Implies AF11=A+BˉF_{11} = A + \bar{B}1011False only if B is 1 and A is 0.
A NOT-Implies BF4=A⋅BˉF_4 = A \cdot \bar{B}0010True only if A is 1 and B is 0.
B NOT-Implies AF2=Aˉ⋅BF_2 = \bar{A} \cdot B0100True only if A is 0 and B is 1.

πŸ”‘ The Power of Universality πŸ”—

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.


πŸ“ Summary Table of All 16 Functions πŸ”—

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 NameExpressionCommon Gate
F0F_00000Zero00(Constant)
F1F_11000NORA+Bβ€Ύ\overline{A + B}NOR
F2F_20100B NOT-Implies AAˉ⋅B\bar{A} \cdot B
F3F_30011Transfer AAA
F4F_40010A NOT-Implies BA⋅BˉA \cdot \bar{B}
F5F_50101Transfer BBB
F6F_60110XORAβŠ•BA \oplus BXOR
F7F_71110NANDAβ‹…Bβ€Ύ\overline{A \cdot B}NAND
F8F_80001ANDAβ‹…BA \cdot BAND
F9F_91001XNORAβŠ•Bβ€Ύ\overline{A \oplus B}XNOR
F10F_{10}1010NOT BBˉ\bar{B}NOT
F11F_{11}1011B Implies AA+BˉA + \bar{B}
F12F_{12}1100NOT AAˉ\bar{A}NOT
F13F_{13}1101A Implies BAˉ+B\bar{A} + B
F14F_{14}0111ORA+BA + BOR
F15F_{15}1111One11(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.


πŸ“š Download My Free Ebook πŸ”—

Get the curated offline edition of Kaue's Way of Lifeβ€”a practical field guide to optimizing 🍏 Health, πŸ’° Wealth, ❀️ Love, and 🧘 Meaning.

Kaue's Way of Life

Kaue's Way of Life
Minimum price
Free!
Suggested price
$0.00

πŸ“¬ Join My Mailing List πŸ”—

Get notified when I publish new essays, book summaries, and practical guides on living well. No spamβ€”unsubscribe anytime.


πŸ’¬ Comments & Discussion πŸ”—

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.