Skip to main content

LOGIC GATES

Every logic gate you can build with Minecraft redstone. Truth tables, step-by-step instructions, and compact variants.

A logic gate turns one or two inputs into a single output, and every redstone machine bigger than a lamp on a lever is built out of them. This page has all 7: NOT, AND, OR, NOR, NAND, XOR and XNOR.

1 of the 7 takes a single input and the rest take two, which is why most of the truth tables below have four rows. 6 of them have an exact opposite in this list, so adding one redstone torch to the output turns one gate into another. Together the 7 pages carry 35 build steps.

The table compares them at a glance: how many inputs, how many rows come out on, which gate is its mirror image, and how many torches the cheapest design named on that page uses.

All 7 Minecraft redstone logic gates built side by side
Every one of the 7 gates on this page, built in survival Minecraft.

All 7 redstone logic gates compared

Every gate with its number of inputs, how many rows of its truth table output on, which gate is its exact opposite, how many build steps it takes and how many torches the cheapest design uses.

Every gate with its number of inputs, how many rows of its truth table output on, which gate is its exact opposite, how many build steps it takes and how many torches the cheapest design uses.
GateInputsRows onOpposite gateBuild stepsTorches
NOT Gate (Inverter) built in Minecraft redstoneNOT Gate (Inverter)11 of 2none in this list51
AND Gate built in Minecraft redstoneAND Gate21 of 4NAND Gate53
OR Gate built in Minecraft redstoneOR Gate23 of 4NOR Gate5varies
NOR Gate built in Minecraft redstoneNOR Gate21 of 4OR Gate5varies
NAND Gate built in Minecraft redstoneNAND Gate23 of 4AND Gate52
XOR Gate (Exclusive OR) built in Minecraft redstoneXOR Gate (Exclusive OR)22 of 4XNOR Gate (Exclusive NOR)65
XNOR Gate (Exclusive NOR) built in Minecraft redstoneXNOR Gate (Exclusive NOR)22 of 4XOR Gate (Exclusive OR)46

Questions about redstone logic gates

How many logic gates can you build with redstone?

Seven cover everything you need: NOT, AND, OR, NOR, NAND, XOR and XNOR. Any larger circuit, from a door to a calculator, is a combination of those 7.

Which redstone logic gate is the cheapest to build?

The NOT Gate (Inverter) needs the fewest redstone torches, 1 in the design named on its page, against 6 for the XNOR Gate (Exclusive NOR). Torches are the real cost of a gate, because dust and blocks you already have.

Which logic gates are the exact opposite of each other?

AND Gate and NAND Gate; NOR Gate and OR Gate; XNOR Gate (Exclusive NOR) and XOR Gate (Exclusive OR). Every row of the table flips, so one redstone torch on the output turns either into the other. That also means you never have to memorise both.

Which two logic gates are easiest to mix up?

The pairs that differ on a single row: AND Gate and the XNOR Gate (Exclusive NOR); OR Gate and the XOR Gate (Exclusive OR); NOR Gate and the XNOR Gate (Exclusive NOR); NAND Gate and the XOR Gate (Exclusive OR). One wrong torch and you have built the other one, and the output looks right in three of the four states.

Which redstone gate takes the most steps to build?

The XOR Gate (Exclusive OR), at 6 steps on its page. The fewest steps are listed for the XNOR Gate (Exclusive NOR), which takes 4, though that one leans on a gate you have already built.

Book icon

Do redstone logic gates work the same on Bedrock?

The truth tables do, because they are logic and not blocks. The timings and the quasi-connectivity tricks do not: quasi-connectivity is Java Edition only, and it is explained on its own page. Build a gate out of torches and dust and it behaves the same in both editions.

All 7 Minecraft redstone logic gates
Redstone Logic Gates as it looks in Minecraft: 7 gates, each with its full truth table and build steps.