💡 Logic Gate Calculator
Pick a logic gate and set its binary inputs to instantly see the resulting output.
What Logic Gates Do
Logic gates are the basic building blocks of digital circuits and computer processors. Each gate takes one or two binary (0 or 1) inputs and produces a single binary output based on a fixed rule.
The Gate Rules
AND outputs 1 only if both inputs are 1. OR outputs 1 if either input is 1. XOR outputs 1 only when the inputs differ. NAND, NOR, and XNOR are simply the inverted versions of AND, OR, and XOR. NOT takes a single input and flips it.
Combining these simple gates in different arrangements is how all digital logic — from calculators to CPUs — is built. This tool is provided for computer science and electronics education.
Last reviewed August 2026