Logic Gate Circuit Simulator
Flip the input switches on a logic circuit and watch each wire, gate and output lamp change. The truth table marks the row for the inputs you set.
AND Gate. Output is 1 only when both inputs are 1.
A = 0, B = 0 gives Output = 0.
Input switches
Circuit
Truth Table
| A | B | Output |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Reference Guide
AND and OR Gates
AND outputs 1 only when all inputs are 1. OR outputs 1 when at least one input is 1.
NOT, NAND and NOR
NOT inverts its input. NAND and NOR are the complements of AND and OR. NAND gates alone can build any other gate.
Truth Tables
A truth table lists every combination of inputs and the output for each one. For n inputs there are rows.
Digital Circuits
Logic gates are the building blocks of digital computers. Adders, multiplexers and latches are all built from simple gates.
Related Content
Related Tools
Binary, Decimal & Hex Converter
Convert between binary, decimal, hexadecimal, and octal. Bit-level visualization, ASCII lookup, and step-by-step conversion methods.
Truth Table Generator
Enter Boolean expressions with AND, OR, NOT, XOR, and IMPLIES to generate complete truth tables. Detects tautologies and contradictions.
Sorting Algorithm Visualizer
Watch bubble, selection, insertion, merge, and quick sort in action with color-coded bars for comparisons, swaps, and sorted elements.
Big-O Complexity Visualizer
Compare O(1), O(log n), O(n), O(n log n), O(n^2), O(n^3), and O(2^n) on an interactive graph. See operation counts at any input size.
Related Labs
Boolean Algebra & Logic Gates Lab
Build and evaluate Boolean expressions, generate truth tables, simplify with Quine-McCluskey, and visualize logic gate circuits. Explore De Morgan's theorem and SOP/POS forms
Number Systems & Data Representation Lab
Convert between binary, octal, decimal, and hex with step-by-step breakdowns. Explore two's complement signed integers, bitwise operations, and IEEE 754 floating-point representation
Selection & Iteration Lab
Trace through if/else, for, while, and nested loops step by step. Evaluate Boolean expressions with short-circuit logic. Explore common patterns like accumulator, FizzBuzz, and multiplication tables
Selection & Iteration Code Tracing Lab
Step through Java code line by line with variable trace tables. Practice if/else selection, for loops, while loops, nested loops, and AP CSA-style code tracing with predict mode