Image for NAND gates

NAND gates

A NAND gate is a basic digital logic component that outputs a signal opposite to what an AND gate would produce. It takes two inputs: if both inputs are true (or "on"), the NAND gate outputs false ("off"); in all other cases—when at least one input is false—it outputs true ("on"). Think of it as a switch that turns off only when both switches are on. NAND gates are fundamental in digital electronics because any other logic function can be built from them.