Full 2-input truth table — AND gate

intro1 of 4 rows true

Answer

output column 0001

Why this example is worth doing

The complete two-input table, which is the object most of this page's search traffic is looking for. Exactly one row in four is true, and stating it as a fraction is the fastest way to characterise the gate: AND is the most selective of the two-input functions. The page prints the table with the row index beside it so the connection to minterm 3 is visible, and offers copy buttons for CSV and LaTeX because the table is usually being transcribed into a report.

Try your own input in the AND gate. Truth table, symbol and algebraic form for A·B, with a live two-input toggle.

How the answer is reached

Truth table

Truth table — columns #, A, B, A · B
#ABA · B
0000
1010
2100
3111

Compare with

Open the AND gate

This input is entered in the tool itself — it is too rich for a link to carry.

Note:

Notation this page assumes

  • Symbols: · is AND, + is OR, ⊕ is XOR, a prime or an overline is NOT. The field also takes ∧ ∨ ¬ ~ ! & | and the words.
  • Operator precedence, tightest first: NOT, then AND (including juxtaposition), then XOR/XNOR, then NAND/NOR, then OR, then IMPLIES, then IFF.
  • Gate symbols follow whichever standard the header toggle is set to: ANSI/IEEE Std 91-1984 distinctive shapes, or IEC 60617-12 rectangles.

Sources

  • ANSI/IEEE Std 91-1984, Graphic Symbols for Logic Functions
  • IEC 60617-12, Graphical Symbols for Diagrams — Binary Logic Elements