Digital logic simulator
Logic Gate Simulator
Explore Boolean operations by toggling inputs and comparing the live output with its truth table.
Gate type
Output
How this gate behaves
AND produces 1 only when every input is 1. Toggle an input and compare the live output with the truth table.
\(Y=A\land B\)
Gate: ANDInputs: 2True cases: 1 of 4Current output: 0
How to use this simulator
- Select a logic gate from the dropdown menu (AND, OR, NOT, NAND, NOR, XOR, XNOR).
- Click on the input light bulbs to toggle their state between 0 (off/gray) and 1 (on/yellow).
- The output light bulb automatically updates based on the selected gate and input values.
- View the truth table below the simulator to see all possible input/output combinations for the selected gate.
- Click "Reset Inputs" to set all inputs back to 0 (off state).
- NOT gate has only one input, while all other gates have two inputs.