An AND gate in Minecraft is a redstone circuit that outputs a signal only when both of its inputs receive power. The most common and compact way to build one is with two levers feeding redstone dust into a single block that has a torch on its side—but that design is actually a NAND gate, so you need to invert its output. This page shows you the standard AND gate layouts, how to read the signal, and what to do when your gate doesn't behave as expected.
What an AND Gate Does in Redstone
In redstone, an AND gate takes two or more inputs and produces one output. The output is ON only when every input is ON. If any input is off, the output is off. This is the same truth table as a logical AND: 0 AND 0 = 0, 0 AND 1 = 0, 1 AND 0 = 0, 1 AND 1 = 1.
You use an AND gate when you want a mechanism to activate only under two conditions at once. For example, a hidden door that opens only when both a lever and a pressure plate are active, or a trap that fires only when a player stands on a plate while a switch is thrown. The gate gives you a single output that represents “both conditions are true.”
Redstone signals in Java Edition and Bedrock Edition behave slightly differently in terms of update order and quasi-connectivity, but the AND gate designs below work in both editions with the same layout.
The Standard AND Gate Design (Two Torches)
The classic AND gate uses two redstone torches and a single block. Here is the layout, step by step:
- Place a solid block (any full block, like stone or dirt) on the ground.
- Put a redstone torch on the side of that block, facing away from where you will stand.
- Place a second solid block directly on top of the first torch (so the torch is sandwiched between two blocks).
- Put a redstone torch on the side of the top block, facing the same direction as the first torch.
- Run redstone dust from each of your two inputs (levers or buttons) to the two blocks. One input powers the bottom block, the other powers the top block.
- The output is taken from the top torch: it is ON only when both inputs are ON.
Wait—this is actually a NAND gate. The top torch turns OFF when both inputs are ON, and turns ON when either input is OFF. To get an AND gate, you need to invert that output. The simplest fix is to place a third torch on the side of a block adjacent to the top torch’s output, or use a redstone torch inverter right after the output.
So the full AND gate is: two inputs → NAND gate → inverter → output. The inverter can be a torch on a block, or a redstone torch attached to a block that the output dust feeds into.
Compact AND Gate (Two Levers and a Torch)
A more compact version uses two levers directly on a block. Place two levers on two adjacent sides of a single block. Run redstone dust from that block to a second block with a torch on its side. When both levers are ON, the first block is powered, the torch on the second block turns OFF, and the output from that torch is OFF. To get AND, place a third torch on a block adjacent to the second torch’s output to invert it again.
That gives you a 2×2×2 footprint. It’s a bit larger than a single torch, but it’s still compact enough for most builds.
How to Read a Redstone Truth Table
If you’re new to redstone, a truth table is just a list of all possible input combinations and the output for each. For a 2-input AND gate, there are four combinations:
| Input A | Input B | Output |
|---|---|---|
| OFF | OFF | OFF |
| OFF | ON | OFF |
| ON | OFF | OFF |
| ON | ON | ON |
Notice that the output is ON only in the last row. If you wire a lever directly to a redstone torch, you get a NOT gate (inverter): the torch is ON when the lever is OFF, and OFF when the lever is ON. That’s why you need two inversions to get AND from a NAND.
Using AND Gates in Real Builds
Here are three common uses that show why you’d want an AND gate:
- Two-lever door: A door that opens only when you flip both levers. Wire each lever to one input of the AND gate, and run the output to the door. This is useful for a secret entrance that requires two switches.
- Pressure plate + lever trap: A dispenser that shoots arrows only when a player stands on a pressure plate and you’ve also thrown a lever. The AND gate ensures the trap is “armed” only when you want it.
- Automatic farm gate: A gate that opens when a mob stands on a pressure plate AND a daylight sensor says it’s daytime. The AND gate combines the two conditions.
For three or more inputs, you can chain AND gates: first two inputs into one gate, then that output with the third input into a second gate. The output of the second gate is ON only when all three inputs are ON.
Common Mistakes and How to Fix Them
The most frequent error is building a NAND gate and thinking it’s an AND. If your output is ON when both inputs are OFF, you have a NAND. Add an inverter (a torch on a block) to flip it.
Another mistake is using a redstone torch that is “burned out.” A torch burns out if you toggle it too quickly (more than 8 times per second). If your gate stops responding, break the torch and replace it.
Signal strength can also cause problems. Redstone dust carries a signal strength from 1 to 15, and it drops by 1 for every block of wire. If your inputs are far apart, the signal may weaken before reaching the gate. Keep the wire runs short, or use repeaters to boost the signal.
Finally, remember that redstone torches are not instant—they have a 1-tick delay. If you need a fast gate, you might use a piston-based AND gate instead, but for most builds the torch version is fine.
Testing Your AND Gate
To test, place two levers on the inputs. Flip both levers to ON—the output should light up. Flip one lever OFF—the output should go dark. Flip the other lever OFF—still dark. Flip both ON again—output lights up. If it doesn’t behave that way, check the wiring: make sure each input is powering its own block, and that the output torch is correctly inverted.
You can also use a redstone lamp as a visual indicator. Place the lamp where the output leads, and it will glow only when the gate outputs ON.
If you’re playing on a multiplayer server, test in a single-player world first to avoid wasting resources. Redstone components are cheap, but debugging is easier when you’re not being distracted.