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
Calculate Logic Gate instantly with the exact formula and a worked example.

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 a, b and 1=and,2=or,3=xor,4=nand,5=nor — each field above is adjustable with a slider.
  2. Output is calculated automatically as you type.
  3. Check the worked example below to see the formula applied to real numbers.
  4. 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

R Adjusted RasshStandard Normal (Z)Chi-SquareStudent t / F-distributionOne-Way ANOVAF-Test (variance)Kolmogorov-SmirnovLogistic RegressionR² Coefficient of DeterminationStandard Error of EstimateVIF (multicollinearity)Effect Size (Cohen's d)