ELI5: logic gates (xor etc) Logic gates are like YES/NO decisions a computer makes using electricity. Think of it like light switches! Each switch is either ON (1) or OFF (0). A logic gate takes one or two switches as input and decides if the light turns on. The gate is the RULE for when the light turns on. Switch A ON or OFF Switch B ON or OFF THE GATE (the RULE) Light ON or OFF Quick Cheat Sheet Gate Rule Light ON when... AND BOTH switches ON OR ANY switch ON XOR EXACTLY ONE switch ON NOT Switch is OFF (flip it!) AND Both must be ON Like two locked doors: You need BOTH keys to get in. One key? Nope. No keys? Nope. BOTH keys? Yes! Light ON. 0+0=OFF 1+0=OFF 1+1=ON OR At least one ON Like a picnic: Mum OR Dad can bring snacks. If either one brings them -- great! Only fails if NOBODY brings any. 0+0=OFF 1+0=ON 1+1=ON XOR Exactly ONE ON Like sharing one cookie: Only ONE person can have it. If both grab it -- it breaks! (OFF) If nobody grabs -- still OFF. 0+0=OFF 1+0=ON 1+1=OFF eli5.cc

ELI5: logic gates (xor etc

high confidence
June 9, 2026tech

// explanation

// eli5

What are logic gates?

Logic gates are tiny electronic switches that make decisions by looking at their inputs and deciding what to output [2]. They're like traffic lights that only turn green when certain conditions are met [3].

What are the basic types?

There are seven basic logic gates: AND, OR, XOR, NOT, NAND, NOR, and XNOR [2]. AND gate only says "yes" when both inputs say "yes," OR says "yes" if at least one input says "yes," and XOR is like "yes" only when the inputs are different from each other [4].

How do they actually work?

Logic gates are built using transistorsโ€”tiny electronic parts that can turn on and off [3]. When you put lots of transistors together in the right way, they create these decision-making gates [3].

Why do we need them?

Logic gates are the building blocks that make computers work, because computers think in yes-and-no answers, and these gates help process those answers super fast [2].

// sources

[1]Other than the 7 basic logic gates (and/or/not/xor/nand/nor/xnor ...

Sep 10, 2022 ... So AND is bitwise multiply, XOR is bitwise +, IMPLIES is bitwise <, etc. I haven't tried this, but the poster was asking for ideasย ...

[2]What are logic gates? | Definition from TechTarget

Mar 18, 2025 ... There are seven basic logic gates: AND, OR, XOR, NOT, NAND, NOR and XNOR. AND gate. The AND gate produces an output of true only when bothย ...

[3]How are logic gates (AND/OR/XOR, etc.) built? : r/askscience - Reddit

Nov 18, 2013 ... In a modern context, gates are built up through assembling transistors to work in concert to create the functionality.

[4]XOR gate - Wikipedia

The XOR gate is a digital logic gate that gives a true (1 or HIGH) output when the number of true inputs is odd. An XOR gate implements an exclusive orย ...

[5]I invented my own XOR gate! : r/computerscience - Reddit

Aug 27, 2025 ... It's made up of 2 NOR gates, and 1 AND gate. The expression is x = NOR(AND(a, b), NOR(a, b)) where x is the output. I just wanted toย ...

[6]Understanding Logic Gatesvideo

Video by Spanning Tree

Understanding Logic Gates
[7]Logic Gate - XOR #shortsvideo

Video by Electronics Simplified

Logic Gate - XOR #shorts
[8]Everything about Logic Gates in 12 Minutes | AND, OR, NOT, NOR, NAND, XOR, XNOR Gatesvideo

Video by Brain Station Advanced

Everything about Logic Gates in 12 Minutes | AND, OR, NOT, NOR, NAND, XOR, XNOR Gates

// related topics

quantum-computinghow wifi worksblockchaindata-scienceprompt-engineeringai-agents
industry partner slotavailable
reach people learning about logic gates (xor etc
your brand appears here as the exclusive industry partner โ€” seen by every reader actively studying this topic. one sponsor per page.
view all options โ†’
explain something else โ†’