Example Circuits
NAND Gate
NOT (A AND B)NOR Gate
NOT (A OR B)XOR Gate
(A OR B) AND NOT (A AND B)Half Adder Sum
A XOR BMajority Function
(A AND B) OR (B AND C) OR (A AND C)De Morgan 1
NOT (A AND B)Free Boolean to Logic Circuit Converter for EEE Students
Logic Gate Simulator is a free online tool that converts any Boolean expression into a CMOS logic circuit diagram and truth table, instantly, in your browser, with no login required. It is built for EEE students, digital electronics learners, and anyone studying Boolean algebra, combinational logic, or CMOS circuit design.
Just type in your Boolean expression, for example A AND B OR NOT C, and you will instantly get the full logic circuit diagram and a complete truth table. No software to install, no account needed.
How to Use the Logic Gate Simulator
- Click CMOS Generator in the top navigation
- Type your Boolean expression (e.g.
NOT (A AND B)for a NAND gate) - Click Generate and the circuit diagram and truth table will appear instantly
- Use the CMOS Builder to drag and drop gates and build circuits from scratch
- Test your knowledge in the Quizzes section by identifying circuits from diagrams
- Read the Learn page for NAND/NOR gate theory and SOP vs POS worked examples
Supported Logic Gates
&AND Gate
Output is HIGH only when all inputs are HIGH. Boolean: A AND B
≥1OR Gate
Output is HIGH when at least one input is HIGH. Boolean: A OR B
1NOT Gate
Inverts the input signal. Boolean: NOT A. Also called an inverter.
↑NAND Gate
Short for NOT AND. Output is LOW only when all inputs are HIGH. Boolean: NOT (A AND B)
↓NOR Gate
Short for NOT OR. Output is HIGH only when all inputs are LOW. Boolean: NOT (A OR B)
=1XOR Gate
Exclusive OR. Output is HIGH when the inputs are different. Boolean: A XOR B
=XNOR Gate
Exclusive NOR. Output is HIGH when the inputs are equal. Boolean: NOT (A XOR B)
What is CMOS Circuit Design?
CMOS (Complementary Metal-Oxide-Semiconductor) is the technology used to build digital logic circuits in modern processors, microcontrollers, and FPGAs. In CMOS design, every logic gate is built from pairs of complementary MOSFET transistors: PMOS transistors form the pull-up network and NMOS transistors form the pull-down network.
CMOS circuit design is a core topic in Electrical and Electronic Engineering (EEE), computer engineering, and VLSI design courses. This tool helps you see how Boolean expressions map to physical gate-level circuits, which is an important skill for digital electronics exams and assignments.
Boolean Algebra and Truth Tables Explained
A truth table lists every possible combination of input values and the corresponding output for a Boolean expression. For n input variables, there are 2n rows. For example, a 2-variable expression (A, B) has 4 rows and a 4-variable expression has 16 rows.
Boolean algebra uses three basic operations: AND (·), OR (+), and NOT (¬). More complex functions such as Sum of Products (SOP) and Product of Sums (POS) are built from these. This simulator supports all standard Boolean operators and parentheses for complex expressions.
Frequently Asked Questions
Quick Actions
Quick Quiz
Jump straight into a quiz — pick your difficulty and start immediately.