Logic Gate
Calculate Logic Gate instantly with the exact formula and a worked example.
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 a, b and 1=and,2=or,3=xor,4=nand,5=nor — each field above is adjustable with a slider.
- Output is calculated automatically as you type.
- Check the worked example below to see the formula applied to real numbers.
- Copy the result or bookmark this calculator.
Related calculators
FAQ
How is Logic Gate calculated?
The Logic Gate calculator computes Output from a, b, 1=and,2=or,3=xor,4=nand,5=nor. Enter your values above and the exact formula is applied instantly; a worked example with real numbers is shown below.
Is the Logic Gate calculator free?
Yes. It is completely free, needs no signup, runs entirely in your browser, and sends no data to any server.
More calculators in this category
Explore related free tools