Skip to main content
← All Guides
Redstone · Logic · Java & Bedrock

How to Make Redstone Logic Gates

Logic gates turn redstone inputs into smart outputs. Feed the same two inputs into an ANDan OR and an XOR and each answers differently, and that is how every door, counter and computer gets built.

AB
inputs cycle 00 → 01 → 10 → 11
ANDboth on
OReither on
XORdiffer
AB|ANDORXOR
00|000
01|011
10|011
11|110
The same two inputs (A, B) feed every gate, and each one answers differently. AND needs both, OR needs either, XOR fires when they differ.

The six gates

Each one is a simple rule and a simple build.

NOT
Output is the opposite of the input.
A redstone torch on a block: power the block and the torch turns off.
OR
On if either input is on.
Just merge the two input wires into one output line.
AND
On only if both inputs are on.
Invert both inputs into a shared block, so the output lights only when neither inverter fires.
XOR
On only when the inputs differ.
The classic two-torch plus comparator design; the gate behind toggles and adders.
NAND
Off only when both inputs are on.
An AND gate followed by a NOT; handy because any circuit can be built from NANDs.
NOR
On only when both inputs are off.
An OR gate followed by a NOT; a torch on the merged line does it in one step.

Why they matter

Every redstone build, from a hidden door to a working calculator, is just these gates wired together. Master NOTOR and AND first; once you can invert and combine signals, the rest of redstone is putting those pieces in the right order.

Quick answers

What is a redstone logic gate?

A small circuit that takes one or two inputs and gives an output based on a logic rule: NOT, AND, OR, XOR and so on. Chain them together and you can build doors, counters, even computers.

How do you make a NOT gate?

Place a redstone torch on the side of a block and power that block. The torch turns off while the block is powered, so the output is always the opposite of the input.

How do you make an OR gate?

Run both input wires into the same output line. If either input is powered, the output is powered. It is the simplest gate in the game.

How do you make an AND gate?

An AND gate outputs only when both inputs are on. The common build inverts each input with a torch and combines them so the output fires only when neither torch is lit.

What is an XOR gate used for?

XOR outputs only when the inputs differ. That makes it the heart of toggle circuits and T-flip-flops, where one button flips a light or door on and off, and of redstone adders.

Which logic gate is the hardest to build?

XOR. The other gates are one or two components, but a compact XOR usually needs two redstone torches with a comparator or a pair of repeaters.
Database →
Redstone components
Look up torches, repeaters, comparators and dust.
Guide →
Use a redstone torch
The inverter that the NOT, NAND and NOR gates are built from.

Five gates, and what they cost in blocks

NOT is one torch, and everything grows from it

A redstone torch on a powered block is an inverter, and an AND gate is two inverters feeding a third. Building gates from torches is why redstone rooms are full of them, and why understanding the torch matters more than memorising diagrams.

OR is just dust meeting dust

Two lines joining is already an OR gate with no components at all, which is the cheapest gate in the game and the one people build accidentally. Problems in a circuit are often two signals that were never meant to be an OR sharing one line.

XOR is where the block count jumps

Exclusive OR needs several torches or a pair of comparators, and it is the gate that makes a compact door circuit stop being compact. If a build only needs to know that exactly one input is on, a comparator pair is usually smaller than the torch version.

Blocks and items in this guide

Redstone Torch in MinecraftRedstone TorchComparator in MinecraftComparatorRedstone in MinecraftRedstoneRepeater in MinecraftRepeater

All 4 of these are named in the guide above, starting with Redstone Torch. Look them up in the item database.

More guides on this site

Guides that go with this one

How to Build a Tower in MinecraftBuild a tall stone tower or keep that does not look like a chimney. Here are the blocks, how to stack the...How to Make a Smoker and Blast Furnace in MinecraftA smoker cooks food and a blast furnace smelts ore, each twice as fast as a furnace. Here are both recipes,...How to Make a Redstone Elevator in MinecraftA redstone elevator rides a slime-block platform up a shaft and stops at each floor. Here are the three...How to Use Copper Bulbs in MinecraftCopper bulbs are 1.21 light blocks with built-in memory: a redstone pulse toggles them on or off and they...How to Make a Bucket in MinecraftA bucket is three iron ingots and carries water, lava, milk, powder snow and fish. Here is the recipe, the...How to Make an Anvil in MinecraftAn anvil is three iron blocks and four ingots, and it repairs, renames and enchants gear for XP. Here is the...

Related tools & databases

Tool
Minecraft Tools
Calculators and generators for servers and players.
Database
Item Database
Every item with its stats, IDs, recipes and uses.
Guides
More Farms & Redstone guides
Auto farms, contraptions and every redstone component explained.