Logic Gate

Calculate Logic Gate instantly with the exact formula and a worked example. Free online calculator — no signup, works on mobile.

Logic Gate

A
B
1=AND,2=OR,3=XOR,4=NAND,5=NOR
Output
1
Calculate Logic Gate instantly with the exact formula and a worked example. Free online calculator — no signup, works on mobile.

More about: Logic Gate

What it calculates

The “Logic Gate” calculator computes Output from 3 parameters: a, b, 1=and,2=or,3=xor,4=nand,5=nor.

A core calculation for studying, engineering tasks, and checking solutions.

Example calculation

With parameters A = 1, B = 1, 1=AND,2=OR,3=XOR,4=NAND,5=NOR = 1 the result is 1.

How to use

  1. Enter the parameter values — every field above is adjustable with a slider.
  2. The result and related metrics are calculated automatically as you type.
  3. Use the additional metrics shown (if any) where needed.
  4. Copy the result or bookmark the page.

Related calculators