DIGITAL ELECTRONICS

D Flip-Flop Divide-by-Two Circuit

A D flip-flop can become a divide-by-two circuit when its complemented output is connected back to D. Each active clock edge then captures the opposite of the present Q state, causing Q to toggle. The result is an output with half the input clock frequency and a near-even duty cycle when the source clock is regular. This pattern is a building block for binary counters and clock-divider chains. The diagram shows the feedback explicitly so the relationship between Q-bar, D and the divided Q output is easy to trace.

UPDATED 2026-09-24
EXAMPLED Flip-Flop Divide-by-Two Circuit
Make this diagram your own.

Open it in the AI editor with a prompt pre-filled — keep what works, change what doesn't.

CASE ANALYSIS

Scenario

A clock divider made from one storage element.

Key decisions

  • Q-bar feedback: Feeding the inverse output to D makes Q toggle on each clock edge.
  • Clock input: The input clock is the source frequency.
  • Q output: Q is the divided frequency output.

When to reuse this

Use this when a digital design needs one half-rate clock or toggle stage.

FAQ

Frequently asked questions

Why does Q divide the clock by two?01
Q toggles once for every clock edge, so a full output cycle takes two input clock cycles.
What connection makes the divider work?02
The complemented output Q-bar is fed back to the D input.
Can dividers be cascaded?03
Yes, cascading toggle stages produces further binary divisions.
Open this example in the editor →

Tweak it with chat, export PNG/SVG, or fork it for your own use case.