Introduction
A digital circuit is designed to represent information with two logical states, commonly called 0 and 1. Yet its electrical signals do not change instantaneously, and different parts of a circuit may respond at slightly different times. During those brief intervals, an output can momentarily take a value that was not intended. These short-lived changes are often called glitches or, in some contexts, hazards.
Why brief incorrect signals occur
Digital logic is built from physical components such as transistors, wires, and logic gates. A gate does not react with zero delay: after its inputs change, a small amount of time passes before its output settles. This is called propagation delay. The delay can vary with the type of gate, the electrical load, temperature, supply voltage, and manufacturing differences.
When a circuit has several paths from its inputs to an output, signals may travel along those paths at different speeds. If the paths are meant to produce matching results, one can arrive before another. For a moment, the output may reflect a mixture of old and new information. Once the signals have settled, the output may return to the value predicted by the circuit’s logic.
For example, imagine a circuit whose output should remain at 1 while one input changes from 0 to 1 and another changes from 1 to 0. If the first input’s effect reaches the output before the second input’s effect, the output could briefly fall to 0. The circuit may be logically correct after everything settles, but its physical timing has allowed a short pulse in between.
How path delays create a glitch
Consider a simple logic expression: an output is 1 if either input A and input B are both 1, or if both A and B are both 0. In Boolean notation, this is (A AND B) OR (NOT A AND NOT B). The expression describes two inputs that match. If A and B change from 0,1 to 1,0, the intended output is 0 at both ends of the change.
However, the two inputs rarely switch at precisely the same instant. Suppose A changes first. For a short time, the circuit may see A and B both as 1, making one part of the expression produce a 1. Later, B changes, and that temporary condition disappears. Depending on the circuit’s gate delays, the output can briefly rise even though its stable value before and after the transition is 0.
This illustrates an important distinction: a logic table describes the stable relationships among inputs and outputs, while timing describes what happens during changes. A circuit can meet its logical design and still produce a temporary output that the table does not show. Engineers therefore analyze both the logic and the time needed for signals to move through it.
Glitches, hazards, and pulses
A glitch is a brief, unintended change in a signal. The term is commonly used for a short pulse or an unexpected transition that disappears as the circuit settles. A hazard is a potential for such a glitch arising from the structure and timing of a logic circuit. In practice, the words are sometimes used loosely, but a hazard describes the underlying possibility, while a glitch describes the observed signal behavior.
A static hazard occurs when an output is supposed to remain at one stable value during an input change but briefly switches to the other value. A dynamic hazard occurs when an output that should change once instead changes several times before settling. These labels are useful in digital design, but a general reader does not need to memorize them to understand the basic cause: unequal signal arrival times can create temporary output changes.
Glitches can vary in width. Some last only a tiny fraction of a clock cycle; others last longer because of the circuit’s structure or operating conditions. Whether a short pulse matters depends on what is connected to the output. A slow indicator may not visibly react, while another logic input may detect the pulse and respond to it.
When a glitch matters
Many digital circuits use a clock: a repeating timing signal that coordinates when stored information is captured. If a glitch occurs between the moments when a receiving component samples its input, it may have no effect on the stored result. This is one reason that a circuit can contain internal glitches without failing every time it operates.
A pulse can cause trouble if it reaches a component that treats it as a valid event. For instance, a brief change on a clock or reset input may be interpreted as a real transition if the component’s timing requirements are met. A glitch on a data input can also matter if it is present while the receiving component is capturing data. The risk is not determined by pulse duration alone; the input’s behavior and the receiver’s requirements also matter.
Some signals are especially sensitive because they control many parts of a design or are expected to change only under particular conditions. An unintended pulse on such a control signal can lead to an incorrect operation, an unexpected state change, or a missed event. In contrast, a pulse on an output that is filtered, ignored, or never sampled may have no practical consequence.
Other sources of short incorrect signals
Asynchronous inputs and contact bounce
Not every signal changes in step with a circuit’s clock. A signal that can change at an unrelated time is called asynchronous. A button, sensor, or signal arriving from another electronic system may change close to the instant a clocked circuit is trying to read it. That timing can make the result uncertain for a short period.
Mechanical switches introduce a related problem called contact bounce. When contacts touch, they may make and break contact several times before settling, so one press can appear to be multiple rapid changes. The circuit is not necessarily generating the extra transitions; they can come from the physical input. Designers commonly address this with filtering or debouncing methods.
Metastability is related, but different
If an asynchronous signal changes too close to a clock edge, a storage element such as a flip-flop may enter metastability. Rather than settling promptly to a clear 0 or 1, its output can take longer than expected to resolve. This is not the same as a conventional logic glitch caused by different combinational paths, although both involve timing and can create uncertainty for downstream circuitry.
Metastability cannot be eliminated entirely when unrelated signals must cross into a clocked system, but its likelihood of causing a problem can be reduced through appropriate circuit design. A common approach is to pass the signal through a sequence of storage elements, giving an uncertain value more time to settle before it is used. The exact solution depends on the design and the signal’s purpose.
Electrical noise and power changes
Digital signals are electrical voltages, not abstract symbols. Noise from nearby activity, changes in the power supply, long or poorly controlled connections, or electrical interference can disturb a signal. If the disturbance is large enough to cross the receiving circuit’s threshold, it may be interpreted as a transition. Good circuit layout, suitable connections, and stable power help limit these effects.
Real components also have limits on how quickly they can switch and how much electrical load they can drive. A heavily loaded output may change more slowly than expected, and a signal that is not cleanly separated from the receiver’s threshold can be vulnerable to multiple interpretations. These effects are part of why timing and electrical conditions are considered together.
How engineers reduce unwanted glitches
One method is to simplify or restructure the logic so that likely timing differences do not create an unwanted pulse. In some circuits, adding a logically redundant term can keep an output asserted while signals are changing. This is called hazard reduction or hazard-free logic design. It is not a universal fix: designers must check the complete circuit and its timing.
Another method is to ensure that signals are used only after they have settled. A clocked design can capture data at carefully chosen times, with enough margin for the longest relevant path. Timing analysis estimates whether signals can arrive in time under specified operating conditions. Designers also avoid using ordinary logic outputs as clocks unless the design and components specifically support that arrangement.
For inputs that may change unpredictably, designers can use synchronizers, filters, or debouncing circuits, depending on the problem. A synchronizer helps manage the transfer of a signal into a clocked system; a debounce circuit reduces repeated transitions from a mechanical switch. These methods address different causes, so they are not interchangeable.
Testing can help reveal glitches, but a pulse may be too brief for a basic display or measurement tool to show. Engineers use suitable test equipment and methods to observe fast transitions, and they compare measurements with the circuit’s timing requirements. A signal that appears stable at a slow observation rate may still contain a short pulse.
Why digital circuits still work reliably
Brief glitches do not mean digital electronics are inherently unreliable. Circuit design accounts for finite delays, and components are specified to operate within defined timing and electrical conditions. Many internal transitions settle well before they are sampled or used. Design practices such as timing analysis, synchronization, and careful signal handling help make the intended behavior dependable.
It is also useful to distinguish an internal glitch from a visible system error. A temporary internal pulse may never affect stored data or an external output. Conversely, a very short pulse can matter if it reaches a sensitive input at the wrong time. The important questions are where the pulse occurs, how long it lasts, what receives it, and whether the receiver can respond to it.
Conclusion
Digital circuits sometimes produce brief incorrect signals because real components take time to respond, and different paths can have different delays. As inputs change, those timing differences can create temporary pulses called glitches. Asynchronous inputs, switch bounce, metastability, and electrical noise can also cause short-lived uncertainty. Careful timing, suitable synchronization, and sound circuit design help prevent these signals from causing errors.

