Redstone Companion · Learn Open simulator →

Logic Gates: AND, OR, NOT

Logic gates combine on/off inputs into a decision. NOT inverts a signal, AND fires only when every input is on, and OR fires when any input is on. They are the alphabet of redstone computing.

Bedrock Edition · Updated 2026-06-01

What are logic gates?

A logic gate takes one or more on/off inputs and produces a single on/off output according to a fixed rule. String gates together and you can make a circuit “decide” things — open a door only when two levers are both on, sound an alarm if any sensor trips, and so on. Every redstone contraption, from a simple trap to a working calculator, is built from these few gates.

The three foundational gates are NOT, AND, and OR.

The NOT gate (inverter)

A NOT gate flips its input: on becomes off, off becomes on. In redstone the natural NOT gate is a redstone torch on a block — power the block and the torch goes dark; leave it unpowered and the torch glows. It's the single most important gate because AND and OR are built from inverters.

Tap the lever and watch the output do the opposite of the input.
Open full simulator →

The AND gate

An AND gate outputs on only when every input is on. With two levers, the output lights only when both are flipped; turn either off and the output dies. A common redstone AND uses two torches to invert each input, feeding a third torch so that only the all-on case lets power through.

Toggle the two levers. The output only fires when both are on at the same time.
Open full simulator →

The OR gate

An OR gate outputs on when any input is on. In redstone this is delightfully simple: just merge the input wires into one output line. If any branch carries power, the output is on. It's the easiest gate to build — often just dust joining together.

Toggle either lever. The output fires whenever at least one input is on.
Open full simulator →

Key facts

Bedrock note

Because Bedrock torches only switch off under strong power and solid blocks absorb weak power from dust, torch-based AND/NOT gates must be wired so each input strongly powers the relevant block. If a gate seems stuck, check that the driving signal isn't just weak dust touching a block. This simulator enforces the Bedrock strong/weak power rule.