- GATE EC
- 2026–27 pattern practice
- Circuits and Signals
- Combinational logic
- Easy
What is the minimum number of two-input NAND gates needed to implement a two-input XOR gate?
Digital Circuits
Pick an option to check your answer.
Answer: B. Solution
XOR can be built from four NAND gates: , then , and . Fewer gates cannot produce XOR.
Why not the others
- is the count for a naive sum-of-products build, not the minimum.
- is not enough to form both cross terms.
- gives only NAND or AND-type functions.