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
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
- Enter the parameter values — every field above is adjustable with a slider.
- The result and related metrics are calculated automatically as you type.
- Use the additional metrics shown (if any) where needed.
- Copy the result or bookmark the page.