Report

Help us improve this tool

Logic Gate Calculator

Evaluate AND, OR, NOT, NAND, NOR, XOR, and XNOR logic gates with truth table output.

O M T

Logic Gate Calculator

Digital logic gates combine binary inputs (0 or 1) to produce an output. This tool evaluates AND, OR, NOT, NAND, NOR, XOR, and XNOR gates and shows the full truth table for quick learning and circuit checks.

Common Gate Definitions

  • AND: output 1 only when both inputs are 1
  • OR: output 1 when either input is 1
  • NOT: inverts a single input
  • NAND / NOR: inverted AND / OR outputs
  • XOR: output 1 when inputs differ
  • XNOR: output 1 when inputs are equal

Related tools: Even Parity Calculator and Hamming Code Calculator.

Frequently Asked Questions

What do 0 and 1 mean?

0 usually means low voltage (logic low) and 1 means high voltage (logic high) in digital circuits.

Why does NOT use only one input?

NOT is a unary gate. It inverts one bit: NOT(0)=1 and NOT(1)=0.

What is the difference between XOR and XNOR?

XOR outputs 1 when inputs differ. XNOR outputs 1 when inputs are the same.

How many rows are in a two-input truth table?

Four rows cover all combinations: (0,0), (0,1), (1,0), and (1,1).