Skip to main content
Skip to main content

What is Boolean Algebra?

Visual explanation of Boolean concepts
Understanding true and false in Boolean logic

Boolean algebra is a special kind of math that uses only two values: true (1) and false (0). It's named after George Boole, who invented it in 1854.

Think of it like answering yes/no questions or turning switches on/off. Computers use Boolean algebra to make decisions and solve problems using these simple true/false values.

Examples:

  • Is the light on? (Yes/No)
  • Is this number greater than 5? (True/False)
  • Is the door locked? (1/0)

Boolean Operators

Visual explanation of Boolean operators
Basic Boolean operators and their symbols

Boolean operators are special words that combine true/false values. The three basic operators are:

Basic Boolean Operators

AND • OR • NOT

These operators combine or change true/false values in specific ways

AND (both must be true):
"Is it sunny AND warm?" → Only true if both are true

OR (at least one true):
"Is it raining OR snowing?" → True if either is true

NOT (changes true to false and vice versa):
"Is the door NOT locked?" → Changes the value to its opposite

Boolean Operator Examples

Operator Symbol Example Result
ANDTrue ∧ FalseFalse
ORTrue ∨ FalseTrue
NOT¬¬TrueFalse

Logic Gates

Diagram showing basic logic gates
How computers use logic gates to make decisions

Logic gates are tiny electronic components that perform Boolean operations. They're the building blocks of computers! Each gate takes one or more inputs (true/false) and gives one output based on its operation.

AND Gate: Output is true only if all inputs are true
OR Gate: Output is true if any input is true
NOT Gate: Output is the opposite of the input

Computers combine millions of these tiny gates to perform all their calculations and make decisions.

Common Logic Gates

Gate Symbol Input A Input B Output
ANDAND symbol000
ANDAND symbol100
ANDAND symbol111
OROR symbol000
OROR symbol101
OROR symbol111
NOTNOT symbol0-1
NOTNOT symbol1-0

Truth Tables

Example truth table showing all possible inputs
Truth tables show all possible input/output combinations

A truth table shows all possible inputs and their corresponding outputs for a Boolean operation. It's like a multiplication table but for true/false values.

For operations with two inputs (like AND and OR), there are four possible combinations (2 × 2). For NOT (one input), there are two possibilities.

Truth tables help us understand how Boolean operations work by showing every possible case. Here's the complete truth table for basic operations:

Complete Truth Table

A B A AND B A OR B NOT A
00001
01011
10010
11110

Boolean Algebra Quiz

Test your understanding with this 5-question quiz about Boolean concepts:

1. How many possible values are there in Boolean algebra?
2. What is the output of "True AND False"?
3. Which operator would you use to check if at least one of two conditions is true?
4. What does a NOT gate do?
5. How many possible input combinations are there for a gate with two inputs?

Frequently Asked Questions

Here are answers to common questions about Boolean algebra:

Logic Trivia

Discover interesting facts about Boolean logic and computing:

Related Resources

No resources found matching the criteria.

Copyright © 2025 Workybooks. Made with ♥ in California.