Logic Gate Calculator
Evaluate AND, OR, XOR, NAND, NOR, XNOR and NOT for binary inputs.
Formula
AND=AB; OR=A+B−AB; XOR=A+B−2AB; NOT A=1−A.
AND ≈ (1)×(0) · OR ≈ (1)+(0)-(1)×(0) · XOR ≈ (1)+(0)-2×(1)×(0) · NAND ≈ 1-(1)×(0) · NOR ≈ 1-(1)-(0)+(1)×(0) · XNOR ≈ 1-(1)-(0)+2×(1)×(0) · NOT A ≈ 1-(1)
How to use
- Enter A as 0 or 1.
- Enter B as 0 or 1.
- Read each gate output.
Examples
- A=1, B=0 gives AND=0, OR=1, XOR=1.
Frequently asked questions
What do 0 and 1 mean?
False and true, or ideal logic low and high.
Which input does NOT use?
NOT A inverts A only; the other outputs use both inputs.
Does it simulate a circuit?
No. It evaluates ideal gates, without delay, voltage or circuit wiring.
Sources
Updated: