Skip to content
LearnTronics menu

LearnTronics

AND, OR, and XOR Gate Symbols

Tutorial Index

Three familiar two-input gate shapes

Now we can introduce the gates that combine two statements or two digital signals.

AND Y = A • B + OR Y = A + B XOR Y = A ⊕ B AND: both true OR: either or both XOR: exactly one

AND — Y = A • B

The traditional AND symbol has a flat input side and a rounded output side. The output is 1 only when both inputs are 1.

OR — Y = A + B

The OR symbol has a curved input side and a pointed output. The output is 1 when A, B, or both are 1.

XOR — Y = A ⊕ B

XOR looks much like OR, but it has an extra curved line at the input side. Its output is 1 when the two inputs are different.

All three truth tables together

ABA • BA + BA ⊕ B
00000
01011
10011
11110

Symbol standards vary

The curved shapes shown here are the traditional American/ANSI-style symbols commonly seen in electronics. IEC drawings may use rectangular logic symbols instead. The Boolean function is what matters.

On these lessons the gate body carries the Boolean symbol — , +, or — rather than spelling the gate name inside it.

Try these yourself

Which symbol has the extra curved line on its input side? AND Y = A • B + OR Y = A + B XOR Y = A ⊕ B AND: both true OR: either or both XOR: exactly one
XOR looks like an OR gate with one additional curved line on the input side.
Which Boolean symbol is used here for AND?
The centered dot • is a common Boolean-algebra symbol for AND.
For A = 1 and B = 1, which of these outputs is 0?
XOR is true only when exactly one input is true. With both inputs true, XOR is 0.