Compact Binary Counter

A binary counter is a redstone memory circuit that counts incoming pulses and displays the total in base-2 using redstone lamps. Each module acts as a T flip-flop that toggles its state between 0 (off) and 1 (on) every time it receives a signal, passing a carry pulse to the next digit when it rolls over. You can connect this counter to pressure plates, buttons, or daylight detectors to track players, events, or in-game days.

Memory CircuitsIntermediateJava Edition
Compact Binary Counter video tutorial

Video: Minecraft | How To Make A Binary Counter With Redstone by 57Cell (Michael Hartley)

How to build it

  1. Build the 3-Tick Pulse Limiter

    Split your input redstone line into two branches. Send one branch into a block with a redstone torch attached (a NOT gate) and run the other branch through a redstone repeater set to its maximum 4-tick delay, then merge both outputs into a single redstone line.

  2. Understand the Pulse Timing

    Because the NOT gate takes 1 tick to invert the signal and the repeater takes 4 ticks, the merged line stays powered most of the time but briefly turns off for exactly 3 redstone ticks whenever the input turns off.

  3. Set Up the Lamp and Carry Outputs

    At the output end of the module, create two paths: one leading to the next counter module and one inverted through a NOT gate (block with a redstone torch) to power the redstone lamp displaying this bit's digit.

  4. Build the Negated Side Loop

    On the lamp side of the circuit, place another block with a redstone torch at the end of the 3-tick pulse limiter line so the brief 3-tick OFF pulse becomes a 3-tick ON pulse. Merge this torch's output with the inverted lamp line using redstone dust.

  5. Complete the First Feedback Path

    Run the merged wire on top of a solid block with a redstone torch on its side, and feed that torch through a 1-tick redstone repeater back into the main output junction.

  6. Build the Repeater Side Loop

    On the opposite side of the module, instead of using NOT gates, place a 1-tick redstone repeater coming from the pulse limiter and another 1-tick repeater coming back from the main output line.

  7. Connect the Second Feedback Torch

    Merge the outputs of those two repeaters with redstone dust and run them into a block with a redstone torch on its output side. Connect that torch back into the main output line to complete the flip-flop loop.

  8. Chain Modules to Count in Binary

    Build additional identical flip-flop modules end-to-end (or duplicate the footprint using the /clone command in Creative mode) so the output of the first module feeds the input of the second, creating a multi-bit binary counter.

How it works

This binary counter is built from chained T flip-flop modules constructed purely from logic gates (redstone torches and repeaters) without any pistons:

  • 3-Tick Pulse Shaper: The input splits into a 1-tick NOT gate and a 4-tick repeater connected in parallel. Normally, at least one branch powers the wire. On the falling edge of an input pulse, the repeater keeps the line on for 3 extra ticks before dropping, creating a precise 3-tick OFF pulse.
  • Symmetrical 3-Tick Loops: The flip-flop core has two feedback loops that each contain three 1-tick components (torches and repeaters), meaning a signal takes 3 redstone ticks to travel through either loop.
  • Toggling State: One side combines inverted signals (NOR logic) while the other side combines non-inverted signals through repeaters into a final NOT gate. When the 3-tick pulse arrives, it matches the 3-tick propagation delay of the loops, cleanly flipping the latched output state from ON to OFF or OFF to ON without flickering.
  • Binary Ripple Carry: The display lamp shows the inverted output (1 when lit, 0 when dark), while the main output passes a pulse to the next bit whenever the previous bit cycles, counting 0001, 0010, 0011, 0100, and so on.

Tips & variations

  • Stop Rapid Flickering: If your flip-flop flickers wildly like a redstone clock, check the input pulse limiter repeater. If it is only set to 2 or 3 ticks, the pulse will be shorter than the 3-tick feedback loops and cause oscillation. Set the input repeater to its full delay (4 ticks) so the resulting off-pulse lasts 3 ticks.
  • Expanding with Commands: Because every bit uses the exact same module, players in Creative mode can measure the corner coordinates of one module (about 10x4x8 blocks) and use the /clone command to place multiple bits end-to-end in seconds.
  • Input Ideas: Hook the input up to a hallway pressure plate to count visitors, a redstone clock to test counting speed, or a daylight detector to count how many days have passed in your world.

Frequently asked questions

Why is my binary counter flickering instead of toggling cleanly?
The feedback loops inside the flip-flop each contain three 1-tick components (3 ticks total). If the input pulse limiter repeater is set too fast, the pulse is shorter than 3 ticks and causes the circuit to clock rapidly. Adjust the input repeater to full delay so it produces a 3-tick pulse.
How do I read the numbers on the redstone lamps?
Each lit lamp represents a 1 and each unlit lamp represents a 0 in base-2 (binary). The first module represents 1, the second represents 2, the third represents 4, and the fourth represents 8. Add the values of all lit lamps together to get the total count.
How high can a 4-bit binary counter count?
A 4-bit binary counter can count from 0 (0000) up to 15 (1111). On the 16th pulse, all four lamps reset back to 0000. You can add more modules to double the maximum count with each new bit.

Components used

More counter