Professional Documents
Culture Documents
Menu
XOR Gate & XNOR Gates: Truth Table, Symbol & Boolean
Expression
Last updated October 11, 2020 by Electrical4U
Contents
XOR represents the inequality function, i.e. the output is true if the inputs are not alike;
otherwise, the output is false. A common way to remember the XOR is “must have one or
https://www.electrical4u.com/exclusive-or-gate/ 1/13
8/20/23, 10:57 AM XOR Gate & XNOR Gate: Truth Table, Symbol & Boolean Expression | Electrical4U
Another way to look at an XOR gate: a modulo sum of two variables in a binary system
looks like this:
The logic gate performs this modulo sum operation without including carry is known as
XOR gate. An XOR gate is normally two inputs logic gate where the output is only logical
1 when only one input is logical 1. When both inputs are equal, either are 1 or both are 0,
the output will be logical 0.
This is the reason an XOR gate is also called an anti-coincidence gate or inequality
detector. This gate is called XOR or exclusive OR gate because its output is only 1 when its
input is exclusively 1.
In digital electronics, other logic gates include NOT gates, OR gates, NAND gates, and
NOR Gates.
From this Boolean expression, one can easily realize the logical circuit of an XOR gate, and
this will be as shown,
https://www.electrical4u.com/exclusive-or-gate/ 3/13
8/20/23, 10:57 AM XOR Gate & XNOR Gate: Truth Table, Symbol & Boolean Expression | Electrical4U
More than two inputs XOR operation is that, when the odd number of inputs in the gate
area 1, the output is 1, and when none or even the number of inputs is 1, the output is
logical 0.
Now, as per the definition of XOR operation with more than three inputs, the truth table
would be,
https://www.electrical4u.com/exclusive-or-gate/ 4/13
8/20/23, 10:57 AM XOR Gate & XNOR Gate: Truth Table, Symbol & Boolean Expression | Electrical4U
From the above-elaborated truth table, it is found that the XOR operation of three binary
variables is equivalent to, XOR operation of one variable with the result of XOR
operations of the other two variables.
https://www.electrical4u.com/exclusive-or-gate/ 5/13
8/20/23, 10:57 AM XOR Gate & XNOR Gate: Truth Table, Symbol & Boolean Expression | Electrical4U
The XOR operation of inputs A and B is A ⊕ B; therefore, XNOR operation those inputs
will be (A + B) ̅. That means the output of the XOR gate is inverted in the XNOR gate.
In the XOR gate operation, the output is only 1 when only one input is 1. The output is
logical 0 when both inputs are the same, meaning they are either 1 or 0. But in the XNOR
gate, the inverse is true. Hence the output is 0 when only one input is 0, and the output is
1 when both inputs are the same (i.e. either two 0’s or two 1’s).
See the XNOR gate truth table below for a visual representation of this.
The logical XNOR operation is represented by ⊙. That is a dot surrounded by a circle. The
expression of XNOR operation between variables A and B is represented as A ⊙ B.
Now again, the truth table is satisfied by the equation AB + ĀB ̅.
https://www.electrical4u.com/exclusive-or-gate/ 6/13
8/20/23, 10:57 AM XOR Gate & XNOR Gate: Truth Table, Symbol & Boolean Expression | Electrical4U
Hence, it is proved that A ⊙ B = AB + ĀB ̅. The same can be proved by using K-map also.
https://www.electrical4u.com/exclusive-or-gate/ 7/13
8/20/23, 10:57 AM XOR Gate & XNOR Gate: Truth Table, Symbol & Boolean Expression | Electrical4U
XNOR operation with more than two inputs is like that. When there are odd numbers of
inputs in high or logical 1 condition, the output will be 0; otherwise, the output will be 1.
Now,
https://www.electrical4u.com/exclusive-or-gate/ 8/13
8/20/23, 10:57 AM XOR Gate & XNOR Gate: Truth Table, Symbol & Boolean Expression | Electrical4U
From this elaborate truth table, the logical symbol of three inputs XNOR gate can be
represented as,
To solve this problem while designing an adder’s circuit, an AND gate is added to the Ex-
OR gate in parallel. We will show the circuit of the adder in detail.
https://www.electrical4u.com/exclusive-or-gate/ 9/13
8/20/23, 10:57 AM XOR Gate & XNOR Gate: Truth Table, Symbol & Boolean Expression | Electrical4U
From the above diagram, we can see that the two inputs are going through an Exclusive-
OR gate and an AND gate parallelly in the half adder circuit. And with this circuit’s
operation, we get the total process of binary addition smoothly.
Your name
About Electrical4U
https://www.electrical4u.com/exclusive-or-gate/ 10/13
8/20/23, 10:57 AM XOR Gate & XNOR Gate: Truth Table, Symbol & Boolean Expression | Electrical4U
Electrical4U is dedicated to the teaching and sharing of all things related to electrical
and electronics engineering.
...
Leave a Comment
Name *
Email *
Website
Post Comment
Recent Posts
» Electric Current: What is it? (Formula, Units, AC vs DC)
» Voltage: What is it? (Definition, Formula And How To Measure Potential Difference)
https://www.electrical4u.com/exclusive-or-gate/ 11/13
8/20/23, 10:57 AM XOR Gate & XNOR Gate: Truth Table, Symbol & Boolean Expression | Electrical4U
https://www.electrical4u.com/exclusive-or-gate/ 12/13
8/20/23, 10:57 AM XOR Gate & XNOR Gate: Truth Table, Symbol & Boolean Expression | Electrical4U
Please feel free to contact us if you’d like to request a specific topic. Click here to see our
privacy policy.
© 2023 Electrical4U
https://www.electrical4u.com/exclusive-or-gate/ 13/13