T FLIP-FLOP (TOGGLE)
Toggles its output state with each input pulse. Press once = ON, press again = OFF. Converts any momentary pulse (button) into a toggle switch behavior.

When to Use
Button-operated piston doors, toggle lights, any mechanism that needs on/off switching from a single button.
Materials
- ▸1 Dropper
- ▸1 Hopper
- ▸1 Redstone Comparator
- ▸1 Redstone Dust
- ▸1 Item (any)
Overview: what the T Flip-Flop (Toggle) is and does
Toggles its output state with each input pulse. Press once = ON, press again = OFF. Converts any momentary pulse (button) into a toggle switch behavior.
As a memory circuit it stores a state and holds it after the input goes away, giving redstone the equivalent of a saved bit.
In practice it is used for button-operated piston doors, toggle lights, any mechanism that needs on/off switching from a single button. The build below targets vanilla Java Edition 1.21.
How it works: the redstone mechanics
The dropper-and-hopper design moves a single item back and forth on each input pulse, and a comparator reads whether the item is currently in the dropper, flipping the output. One press is on, the next press is off, turning a momentary button into a toggle.
It is assembled from 1 Dropper, 1 Hopper, 1 Redstone Comparator, 1 Redstone Dust, and 1 Item (any), and each of those parts plays a specific timing or logic role in the circuit rather than being interchangeable filler.
Because this is a memory circuit, the thing to watch as you build is the input isolation — stray power on the wrong line can flip or corrupt the stored state.
How to build it
- 1Place a dropper facing up.
- 2Place a hopper on top of the dropper, pointing down into it.
- 3Put one item in the dropper.
- 4Run a redstone comparator out of the dropper to read its contents.
- 5Power the dropper with your toggle input (button).
- 6Each pulse moves the item: dropper → hopper → dropper, toggling the comparator output.
- 7Power it up and watch one full cycle: confirm it holds its state after you release the input before wiring it into a larger contraption.
Uses & applications
- ▸Button-operated piston doors, toggle lights, any mechanism that needs on/off switching from a single button.
- ▸Dropper-hopper T flip-flop (compact, 1-wide tileable) — a variant suited to particular space or timing needs.
- ▸Piston T flip-flop (piston pushes block between two positions) — a variant suited to particular space or timing needs.
- ▸Dual-edge T flip-flop (toggles on both press and release) — a variant suited to particular space or timing needs.
- ▸JK flip-flop (generalized version with separate J and K inputs) — a variant suited to particular space or timing needs.
Tips & common mistakes
- !Feed it a clean single pulse — a bouncy or doubled input can toggle twice and leave the output where it started.
- !Label or colour-code your Set/Reset (or Data/Enable) inputs while building; mixing them up is the usual cause of a latch that will not hold.
- !Remember that bare redstone dust loses 1 signal strength per block, so insert a repeater before any run exceeds 15 blocks inside this circuit.
T Flip-Flop (Toggle) FAQ
What is a T Flip-Flop (Toggle) used for?
A T Flip-Flop (Toggle) is used for button-operated piston doors, toggle lights, any mechanism that needs on/off switching from a single button. As a memory circuit it stores a state and holds it after the input goes away, giving redstone the equivalent of a saved bit.
What do you need to build a T Flip-Flop (Toggle)?
You need 1 Dropper, 1 Hopper, 1 Redstone Comparator, 1 Redstone Dust, and 1 Item (any). Place a dropper facing up.
How does a T Flip-Flop (Toggle) work?
The dropper-and-hopper design moves a single item back and forth on each input pulse, and a comparator reads whether the item is currently in the dropper, flipping the output. One press is on, the next press is off, turning a momentary button into a toggle.
Are there different versions of the T Flip-Flop (Toggle)?
Yes — common variants include dropper-hopper T flip-flop (compact, 1-wide tileable), piston T flip-flop (piston pushes block between two positions), dual-edge T flip-flop (toggles on both press and release), and JK flip-flop (generalized version with separate J and K inputs). Pick the one that fits your available space and timing requirements.
How do I make a button toggle a piston door on and off?
Put a T flip-flop between the button and the door. Each button press flips the flip-flop's stored state, so the first press opens the door and the next press closes it, all from a single button.