A digital signal isn’t just or — it’s a voltage that’s interpreted as or . The convention is positive logic: is a low voltage (near ground) and is a high voltage (near ). The noise margin is the buffer between the worst-case voltage a gate guarantees as output and the worst-case voltage the next gate is willing to accept as input.

Two key margins:
- High-state noise margin
- Low-state noise margin
The four voltages above each name a guarantee from the gate’s data sheet:
- — minimum voltage the driving gate will produce when outputting .
- — minimum voltage the receiving gate is guaranteed to interpret as .
- — maximum voltage the driving gate will produce when outputting .
- — maximum voltage the receiving gate is guaranteed to interpret as .
Why margins matter
Real signals don’t arrive at the next gate as clean square waves. Wires couple capacitively to neighbors (crosstalk), the supply voltage dips when other parts of the chip switch, and ground bounces. All of that injects noise onto the signal between gates.
If your driver guarantees on a supply, and the receiver only needs to recognize , you have of headroom — the noise margin . Noise has to push the signal more than down before the receiver risks misreading it as . Note that you compute the margin from , not from : a gate’s actual output high voltage is normally a bit below the supply rail (because of saturation drops or pull-up impedance), so using would over-estimate the margin. Always pull the four voltages from the data sheet rather than assuming .
A gate with a small noise margin is fragile — you’ll see spurious bit flips and intermittent failures. A gate with a large noise margin is robust but typically slower or more power-hungry. CMOS happens to give large noise margins (close to on each side) at low static power, which is one of the main reasons it dominates digital design.
The reference voltages: is the positive supply, is the lowest voltage (usually ground). Output values cluster near for a and near for a , with the input thresholds set comfortably between.