1-Tick 2-Wide Stackable XOR Gate

An XOR (exclusive OR) gate outputs a high signal only when one of its two inputs is active, turning off when both inputs are either off or on together. This ultra-fast design uses comparator subtraction to achieve a 1-tick delay within a 2-wide footprint that stacks in staggered pairs. It is ideal for high-speed redstone computers, ALUs, and binary adders where minimizing delay is critical.

Logic GatesIntermediateJava Edition
1-Tick 2-Wide Stackable XOR Gate video tutorial

Video: 1 Tick XOR Gate - 2 Wide Stackable! by Properinglish19

How to build it

  1. Place the Staggered Comparators

    Set up a 2-wide framework of solid building blocks with an upper and lower path. Place two redstone comparators facing the output direction—one on the top level and one on the bottom level—and right-click both to turn their front torches on (subtract mode).

  2. Wire the Top Input

    Place your first input lever on the top path. Run redstone dust from this top input directly into the rear (main input) of the top comparator, and branch the dust downward so it also feeds into the side (secondary input) of the bottom comparator.

  3. Wire the Bottom Input

    Place your second input lever on the bottom path. Connect redstone dust from the bottom input into the rear (main input) of the bottom comparator, and branch a line upward into the side (secondary input) of the top comparator.

  4. Combine and Measure the Output

    Run redstone dust from the front of both comparators into a single shared output line. Extend the output dust slightly so that the weak leftover signal from subtraction fades out before reaching your output destination.

How it works

This circuit relies on comparator subtraction and signal strength decay rather than traditional redstone torches. Each of the two comparators represents half of the XOR logic, and both are set to subtract mode (front torch lit).

  • One Input ON (1,0 or 0,1): When only the top input is turned on, it sends a strong main signal (Input A) into the back of the top comparator and a side signal (Input B) into the bottom comparator. Because the bottom comparator has no main rear input, it outputs nothing. The top comparator has no side input subtracting from it, so it outputs a full high signal (logical 1). The exact opposite happens when only the bottom input is active.
  • Both Inputs OFF (0,0): Neither comparator receives power in the rear, resulting in an off output (logical 0).
  • Both Inputs ON (1,1): Both the top and bottom comparators receive power at their rear inputs (Input A) AND their side inputs (Input B) simultaneously. Each comparator subtracts its side input from its rear input, dropping the output down to a very weak signal strength. By taking the output a few blocks away, this low signal naturally decays to 0, distinguishing it from the high signal.

Tips & variations

  • Stacking in Pairs: To achieve the 2-wide stackable density across a multi-bit bus, the gates are stacked in staggered pairs so adjacent redstone dust lines do not accidentally connect.
  • Signal Strength Threshold: When both inputs are active, the comparators still emit a low signal strength because the side paths travel slightly farther than the rear paths. Always read your final output far enough down the line that this low signal drops to zero while the high signal still reaches.
  • Don't Forget Subtract Mode: If the gate stays on when both levers are flipped, verify that both comparators have their front indicator torch turned on.

Frequently asked questions

Why does the output line still have power right next to the comparators when both inputs are on?
Because the side input path is slightly longer than the rear input path, the comparator subtracts a slightly weaker signal from a stronger one. This leaves a low signal strength (logical 0) that disappears after traveling a couple of blocks of redstone dust.
How fast is this XOR gate?
Since each signal path only passes through a single comparator in parallel, the entire gate has a delay of just 1 redstone tick (0.1 seconds).
Is this XOR gate completely silent?
Yes. Because it uses only redstone dust and comparators without any pistons or droppers, it operates completely silently.

Components used

More xor gate