The Boolean expression for an EXOR gate with inputs A and B is A'B + AB'. This means the output is true if one input is true and the other is false.