The output of an exclusive-or (XOR) gate is true if one input is true and the other is false. Otherwise, it is false. The XOR gate output is true if the inputs are different from each other.