Skip to content

Logic Gate Calculator

Math
0.0(0)

Simulates the output of basic logic gates (AND, OR, NOT, XOR, NAND, NOR) based on input values.

How To Use

How to use this calculator

Start with your values, or try a preset.

Step 1

Enter Input A and Input B in the units shown.

Step 2

Read XOR Gate Output, NOT Gate Output (B), NOT Gate Output (A), OR Gate Output, AND Gate Output, NOR Gate Output, and NAND Gate Output in the results panel. Results update as you change the inputs.

Step 3

Choose a preset to load an example, then adjust the values for your situation.

Worked Examples

Example calculations

See the inputs and their calculated results.

AND: 1, 1

Input A: 1 (True); Input B: 1 (True)

XOR Gate Output: 0; NOT Gate Output (B): 0; NOT Gate Output (A): 0; OR Gate Output: 1; AND Gate Output: 1; NOR Gate Output: 0; NAND Gate Output: 0

OR: 1, 0

Input A: 1 (True); Input B: 0 (False)

XOR Gate Output: 1; NOT Gate Output (B): 1; NOT Gate Output (A): 0; OR Gate Output: 1; AND Gate Output: 0; NOR Gate Output: 0; NAND Gate Output: 1

NOT: A = 0

Input A: 0 (False); Input B: 0 (False)

XOR Gate Output: 0; NOT Gate Output (B): 1; NOT Gate Output (A): 1; OR Gate Output: 0; AND Gate Output: 0; NOR Gate Output: 1; NAND Gate Output: 1

Explore the topic

Explore More Math & Statistics Calculators

Use calculators for algebra, geometry, trigonometry, probability, statistics, averages, z-scores, tests, and graphing tasks.

Explore tools
People Also Calculate

Related Calculators

Continue with another tool on a related topic.