KiloAtlas
EN
EnglishBahasa IndonesiaTiếng Việt

Logic Gate Calculator

Evaluate AND, OR, XOR, NAND, NOR, XNOR and NOT for binary inputs.

AND

0bit
OR
1 bit
XOR
1 bit
NAND
1 bit
NOR
0 bit
XNOR
0 bit
NOT A
0 bit

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

  1. Enter A as 0 or 1.
  2. Enter B as 0 or 1.
  3. 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:

Related tools

Search conversion tools