Logic Gate Calculator
Evaluate the output of standard logic gates (AND, OR, NOT, NAND, NOR, XOR, XNOR) for given inputs.
Inputs
Ignored for NOT gate
Output
0
Gate Description
Output is 1 only when both inputs are 1
Step by step
Values used
Gate Type = AND; Input A = 1 (True); Input B = 0 (False)
AND
A AND B = 1 iff A=1 and B=1
XOR
A XOR B = 1 iff A≠B
Output
= 0
Gate Description
= Output is 1 only when both inputs are 1
How it works
Logic gates are the building blocks of digital circuits. Each gate performs a specific boolean operation on one or two binary inputs to produce a single binary output.
Formulas
AND
A AND B = 1 iff A=1 and B=1
- A,B
- Binary inputs (0 or 1)
XOR
A XOR B = 1 iff A≠B
- A,B
- Binary inputs
Frequently Asked Questions
What is a universal gate?
NAND and NOR are each universal — any boolean function can be built using only NAND gates or only NOR gates.
What is the difference between XOR and XNOR?
XOR outputs 1 when inputs differ. XNOR (equivalence gate) outputs 1 when inputs are the same. They are complements.